Skip to content

Commit 9ec11af

Browse files
committed
add: internal informations
1 parent 947a785 commit 9ec11af

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

core/quivr_core/brain/brain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ async def asearch(
483483
query, k=n_results, filter=filter, fetch_k=fetch_n_neighbors
484484
)
485485

486-
return [SearchResult(chunk=d, distance=s) for d, s in result]
486+
return [SearchResult(chunk=chunk, distance=chunk.metadata["similarity"]) for chunk in result] #FIXME : Why did this work before ?
487487

488488
def get_chat_history(self, chat_id: UUID):
489489
return self._chats[chat_id]

core/quivr_core/rag/prompts.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,11 @@ def _define_custom_prompts() -> dict[TemplatePromptName, BasePromptTemplate]:
300300
{ticket_metadata}
301301
</ticket_metadata>
302302
303+
Here are relevant extract of internal and external documentation that can help you to answer:
304+
<documentation>
305+
{ticket_metadata}
306+
</documentation>
307+
303308
304309
Here are the most relevant similar tickets that can help you to answer:
305310
<similar_tickets>

0 commit comments

Comments
 (0)