Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
fix bug (#1387)
Browse files Browse the repository at this point in the history
Signed-off-by: XuhuiRen <[email protected]>
  • Loading branch information
XuhuiRen authored Mar 18, 2024
1 parent 4db5cb6 commit 8797cfe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def _get_relevant_documents(self, query: str, *, run_manager: CallbackManagerFor
ids.append(d.metadata['identify_id'])

retrieved_documents = self.parentstore.get(ids)
for i in range(len(retrieved_documents)):
for i in range(len(retrieved_documents['ids'])):
metadata = retrieved_documents['metadatas'][i]
context = retrieved_documents['documents'][i]
instance = Document(page_content=context, metadata=metadata)
Expand Down

0 comments on commit 8797cfe

Please sign in to comment.