mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-06 03:42:11 +02:00
Keep 2 tests
This commit is contained in:
parent
c4a218b6f5
commit
7a607bf90d
2 changed files with 17 additions and 2 deletions
|
|
@ -5,8 +5,9 @@ from trustgraph.graph_rag_client import GraphRagClient
|
||||||
|
|
||||||
rag = GraphRagClient(pulsar_host="pulsar://localhost:6650")
|
rag = GraphRagClient(pulsar_host="pulsar://localhost:6650")
|
||||||
|
|
||||||
query="""List 20 key points to describe the research that led to the discovery of Leo VI.
|
query="""
|
||||||
"""
|
Identify any facts which provide an explanation of the explosion of the
|
||||||
|
space shuttle rocket boosters"""
|
||||||
|
|
||||||
resp = rag.request(query)
|
resp = rag.request(query)
|
||||||
|
|
||||||
|
|
|
||||||
14
tests/test-graph-rag2
Executable file
14
tests/test-graph-rag2
Executable file
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/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)
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue