Skip to content

Commit

Permalink
removing id from constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
TuanaCelik committed Sep 20, 2023
1 parent cc0cb59 commit ffa0350
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/chroma_haystack/document_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ def _get_result_to_documents(self, result: GetResult) -> List[Document]:
metadata = result["metadatas"][i]
mime_type = metadata.pop("_mime_type")
document_dict = {
"id": result["ids"][i],
"text": result["documents"][i],
"metadata": metadata,
"mime_type": mime_type,
Expand All @@ -287,7 +286,6 @@ def _query_result_to_documents(self, result: QueryResult) -> List[List[Document]
mime_type = metadata.pop("_mime_type")

document_dict = {
"id": result["ids"][i][j],
"text": result["documents"][i][j].text,
"metadata": metadata,
"mime_type": mime_type,
Expand Down

0 comments on commit ffa0350

Please sign in to comment.