Skip to content

Commit

Permalink
fix the return with wrong datatype of segment (#3525)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnJyong authored Apr 16, 2024
1 parent 38dd58e commit 9e6d4ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/core/docstore/dataset_docstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def add_documents(
if not isinstance(doc, Document):
raise ValueError("doc must be a Document")

segment_document = self.get_document(doc_id=doc.metadata['doc_id'], raise_error=False)
segment_document = self.get_document_segment(doc_id=doc.metadata['doc_id'])

# NOTE: doc could already exist in the store, but we overwrite it
if not allow_update and segment_document:
Expand Down

0 comments on commit 9e6d4ee

Please sign in to comment.