Doc RAG working

This commit is contained in:
Cyber MacGeddon 2025-04-22 10:52:11 +01:00
parent 6be7b30633
commit c9913297d2
14 changed files with 157 additions and 237 deletions

View file

@ -3,7 +3,12 @@
import pulsar
from trustgraph.clients.document_rag_client import DocumentRagClient
rag = DocumentRagClient(pulsar_host="pulsar://localhost:6650")
rag = DocumentRagClient(
pulsar_host="pulsar://localhost:6650",
subscriber="test1",
input_queue = "non-persistent://tg/request/document-rag:default",
output_queue = "non-persistent://tg/response/document-rag:default",
)
query="""
What was the cause of the space shuttle disaster?"""