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

Commit

Permalink
small fix with entity
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-wu-97 committed Jan 2, 2024
1 parent 2bb2484 commit 20a7bec
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def entity_to_document(entity: IEntity) -> Document:
metadata=dict(id=entity.get_identity()), page_content=entity.get_identity()
)

if entity.get_description:
doc.page_content += f" ({entity.get_description})"
if entity.get_description():
doc.page_content += f" ({entity.get_description()})"

return doc

Expand Down

0 comments on commit 20a7bec

Please sign in to comment.