trustgraph/tests/test-graph-rag

16 lines
311 B
Text
Raw Normal View History

2024-07-10 23:20:06 +01:00
#!/usr/bin/env python3
import pulsar
from trustgraph.graph_rag_client import GraphRagClient
rag = GraphRagClient(pulsar_host="pulsar://localhost:6650")
2024-07-15 18:58:03 +01:00
query="""
Identify any facts which provide an explanation of the explosion of the
space shuttle rocket boosters"""
2024-07-10 23:20:06 +01:00
resp = rag.request(query)
print(resp)