query()
Query the knowledge base with natural language. Returns either a complete result dict or a streaming response.Parameters
If
True, return a StreamingResponse that yields tokens as they arrive.Override the retrieval depth independently of response mode. Values:
"basic", "thinking", "research".If
True, maintain conversation state across queries. The client tracks the session ID automatically.Non-streaming response
Streaming response
Response modes
query_facts()
Fast fact retrieval without AI summary generation. Returns the same dict structure but with raw graph facts and vector chunks only.Parameters
Returns
Same dict structure asquery() but summary will be empty or minimal since no LLM generation occurs.
Insufficient coverage
When the knowledge base has zero relevant facts for a query, Vrin returns early without calling the LLM:resp.insufficient_coverage after iteration completes.