Updated tests

This commit is contained in:
Cyber MacGeddon 2025-07-11 16:43:27 +01:00
parent 4ff85cd6bd
commit d25c2f4d10
40 changed files with 301 additions and 485 deletions

19
tests.manual/test-doc-rag Executable file
View file

@ -0,0 +1,19 @@
#!/usr/bin/env python3
import pulsar
from trustgraph.clients.document_rag_client import DocumentRagClient
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?"""
resp = rag.request(query)
print(resp)