trustgraph/tests/test-graph-rag

15 lines
290 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-08-06 09:37:19 -07:00
query="""List 20 key points to describe the research that led to the discovery of Leo VI.
2024-08-05 17:11:30 -07:00
"""
2024-07-10 23:20:06 +01:00
resp = rag.request(query)
print(resp)