[OpenSearch] Small bug fixes in query

This commit is contained in:
Deshraj Yadav
2023-10-04 18:07:46 -07:00
parent 8863983c7b
commit f31351bedb
3 changed files with 4 additions and 4 deletions

View File

@@ -352,7 +352,7 @@ class EmbedChain(JSONSerializable):
# get existing ids, and discard doc if any common id exist.
where = {"url": src}
if self.config.id is not None:
where.update({"metadata.app_id": self.config.id})
where["app_id"] = self.config.id
db_result = self.db.get(ids=ids, where=where) # optional filter
existing_ids = set(db_result["ids"])