GraphRAG
Use a GraphRAG query
to generate a response.
- curl
- Python
curl http://localhost:8088/api/v1/graph-rag \
--header "content-type: application/json" \
--data \
'{
"query": "Give me 10 facts."
}'
Install the TrustGraph
SDK:
pip install trustgraph-cli
import trustgraph.api as tg
client = tg.Api()
response = client.graph_rag("Give me 10 facts.")
print(response)