[Bug fix] Fix search API for pinecone vector db

This commit is contained in:
Deshraj Yadav
2024-03-01 16:44:42 -08:00
parent 91044ec591
commit 7e1d2ffdd7
3 changed files with 7 additions and 2 deletions

View File

@@ -230,6 +230,9 @@ class PineconeDB(BaseVectorDB):
@staticmethod
def _generate_filter(where: dict):
query = {}
if where is None:
return query
for k, v in where.items():
query[k] = {"$eq": v}
return query