Skip to content

Commit

Permalink
Fix document retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
vmesel committed May 11, 2024
1 parent 7e1b776 commit 4e8de79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions dialog_lib/embeddings/retrievers.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ def _get_relevant_documents(self, query, *, run_manager):
)
return [
Document(
document_id=content.id,
document=f"{content.question}\n\n{content.content}",
page_content=f"{content.question}\n\n{content.content}",
metadata={
"title": content.question,
"category": content.category,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dialog-lib"
version = "0.0.1.17"
version = "0.0.1.18"
description = ""
authors = ["Talkd.AI <foss@talkd.ai>"]
license = "MIT"
Expand Down

0 comments on commit 4e8de79

Please sign in to comment.