Log document uri, meta in search results
This commit is contained in:
parent
8e77d6b9c1
commit
954e96370a
1 changed files with 6 additions and 0 deletions
|
|
@ -99,6 +99,12 @@ class HaikuRAGApp:
|
||||||
f"[repr.attrib_name]document_id[/repr.attrib_name]: {chunk.document_id} "
|
f"[repr.attrib_name]document_id[/repr.attrib_name]: {chunk.document_id} "
|
||||||
f"[repr.attrib_name]score[/repr.attrib_name]: {score:.4f}"
|
f"[repr.attrib_name]score[/repr.attrib_name]: {score:.4f}"
|
||||||
)
|
)
|
||||||
|
if chunk.document_uri:
|
||||||
|
self.console.print("[repr.attrib_name]document uri[/repr.attrib_name]:")
|
||||||
|
self.console.print(chunk.document_uri)
|
||||||
|
if chunk.document_meta:
|
||||||
|
self.console.print("[repr.attrib_name]document meta[/repr.attrib_name]:")
|
||||||
|
self.console.print(chunk.document_meta)
|
||||||
self.console.print("[repr.attrib_name]content[/repr.attrib_name]:")
|
self.console.print("[repr.attrib_name]content[/repr.attrib_name]:")
|
||||||
self.console.print(content)
|
self.console.print(content)
|
||||||
self.console.rule()
|
self.console.rule()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue