Skip to content

Commit 4e8de79

Browse files
committed
Fix document retrieval
1 parent 7e1b776 commit 4e8de79

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

‎dialog_lib/embeddings/retrievers.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ def _get_relevant_documents(self, query, *, run_manager):
2929
)
3030
return [
3131
Document(
32-
document_id=content.id,
33-
document=f"{content.question}\n\n{content.content}",
32+
page_content=f"{content.question}\n\n{content.content}",
3433
metadata={
3534
"title": content.question,
3635
"category": content.category,

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "dialog-lib"
3-
version = "0.0.1.17"
3+
version = "0.0.1.18"
44
description = ""
55
authors = ["Talkd.AI <foss@talkd.ai>"]
66
license = "MIT"

0 commit comments

Comments
 (0)