mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-22 03:31:02 +02:00
Doc RAG working
This commit is contained in:
parent
6be7b30633
commit
c9913297d2
14 changed files with 157 additions and 237 deletions
|
|
@ -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?"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue