mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-21 19:21:03 +02:00
Make sure nul output is specific
This commit is contained in:
parent
04e03c0707
commit
da37738478
1 changed files with 5 additions and 2 deletions
|
|
@ -27,8 +27,11 @@ def query(url, flow_id, query_text, user, collection, limit, token=None):
|
|||
)
|
||||
|
||||
chunk_ids = result.get("chunk_ids", [])
|
||||
for i, chunk_id in enumerate(chunk_ids, 1):
|
||||
print(f"{i}. {chunk_id}")
|
||||
if not chunk_ids:
|
||||
print("No matching chunks found.")
|
||||
else:
|
||||
for i, chunk_id in enumerate(chunk_ids, 1):
|
||||
print(f"{i}. {chunk_id}")
|
||||
|
||||
finally:
|
||||
# Clean up socket connection
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue