trustgraph/tests/test-graph-rag2
Jack Colquitt f349c8a72e
Bedrock, Cohere, and Mixed Support (#6)
* Added Cohere support
* Tweaks to rag prompt
* Bedrock support
* Version to 0.5.7
2024-08-07 19:27:37 +01:00

14 lines
290 B
Python
Executable file

#!/usr/bin/env python3
import pulsar
from trustgraph.graph_rag_client import GraphRagClient
rag = GraphRagClient(pulsar_host="pulsar://localhost:6650")
query="""List 20 key points to describe the research that led to the discovery of Leo VI.
"""
resp = rag.request(query)
print(resp)