Skip to content

graphrag #9002

Answered by dosubot bot
Gsj123-cyber asked this question in Q&A
Jul 23, 2025 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

To see the returned graph information and scores when retrieving with GraphRAG, use the /retrieval_test endpoint and include the parameter use_kg=true in your request. This will trigger the graph-based retriever, and the API response will include a special graph summary chunk at the front of the chunks array. The graph data—including entities, relations, and their scores—will be in the content_with_weight field of that chunk, typically formatted as a CSV or table with columns like Entity, From Entity, To Entity, Score, and Description. You can extract and parse this field to access the graph structure and associated scores directly from the response. For more details on the response stru…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Gsj123-cyber
Comment options

@dosubot
Comment options

Answer selected by Gsj123-cyber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant