From 9e77953d096468ecdd4f24977c3b8a36817aa0ec Mon Sep 17 00:00:00 2001 From: glorenzo972 Date: Wed, 4 Sep 2024 18:48:14 +0200 Subject: [PATCH] modify: source --- CHANGELOG.md | 4 ++++ pyproject.toml | 2 +- tilellm/models/item_model.py | 10 +++++----- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c62ab5..e08c4bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ *Andrea Sponziello* ### **Copyrigth**: *Tiledesk SRL* +## [2024-09-04] +### 0.2.14 +- modify: citations without quote +- ## [2024-09-04] ### 0.2.13 - modify: source on qa diff --git a/pyproject.toml b/pyproject.toml index 393cc3a..44e2f4d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "tilellm" -version = "0.2.13" +version = "0.2.14" description = "tiledesk for RAG" authors = ["Gianluca Lorenzo "] repository = "https://github.com/Tiledesk/tiledesk-llm" diff --git a/tilellm/models/item_model.py b/tilellm/models/item_model.py index 62c5f31..e8473d1 100644 --- a/tilellm/models/item_model.py +++ b/tilellm/models/item_model.py @@ -180,12 +180,12 @@ class Citation(BaseModel): ) source_name: str = Field( ..., - description="The Article Source of a SPECIFIC source which justifies the answer.", - ) - quote: str = Field( - ..., - description="The VERBATIM quote from the specified source that justifies the answer.", + description="The Article Source (URL if available) of a SPECIFIC source which justifies the answer.", ) + #quote: str = Field( + # ..., + # description="The VERBATIM quote from the specified source that justifies the answer.", + #) class QuotedAnswer(BaseModel): """Answer the user question based only on the given sources, and cite the sources used."""