@@ -15,9 +15,9 @@ the Arango team.
1515## Overview
1616
1717The Retriever service offers two distinct search methods:
18- - ** Global search** : Analyzes entire document to identify themes and patterns,
18+ - ** Instant search** : Analyzes entire document to identify themes and patterns,
1919 perfect for high-level insights and comprehensive summaries.
20- - ** Local search** : Focuses on specific entities and their relationships, ideal
20+ - ** Deep search** : Focuses on specific entities and their relationships, ideal
2121 for detailed queries about particular concepts.
2222
2323The service supports both private (Triton Inference Server) and public (OpenAI)
@@ -33,19 +33,19 @@ graph and get contextually relevant responses.
3333- Configurable community hierarchy levels
3434
3535{{< tip >}}
36- You can also use the GraphRAG Retriever service via the ArangoDB [ web interface] ( ../graphrag/web-interface.md ) .
36+ You can also use the GraphRAG Retriever service via the [ web interface] ( ../graphrag/web-interface.md ) .
3737{{< /tip >}}
3838
3939## Search methods
4040
4141The Retriever service enables intelligent search and retrieval of information
42- from your knowledge graph. It provides two powerful search methods, global Search
43- and local Search , that leverage the structured knowledge graph created by the Importer
42+ from your knowledge graph. It provides two powerful search methods, instant search
43+ and deep search , that leverage the structured knowledge graph created by the Importer
4444to deliver accurate and contextually relevant responses to your natural language queries.
4545
46- ### Global search
46+ ### Deep search
4747
48- Global search is designed for queries that require understanding and aggregation
48+ Deep search is designed for queries that require understanding and aggregation
4949of information across your entire document. It's particularly effective for questions
5050about overall themes, patterns, or high-level insights in your data.
5151
@@ -60,9 +60,9 @@ about overall themes, patterns, or high-level insights in your data.
6060- "Summarize the key findings across all documents"
6161- "What are the most important concepts discussed?"
6262
63- ### Local search
63+ ### Instant search
6464
65- Local search focuses on specific entities and their relationships within your
65+ Instant search focuses on specific entities and their relationships within your
6666knowledge graph. It is ideal for detailed queries about particular concepts,
6767entities, or relationships.
6868
@@ -210,28 +210,32 @@ it using the following HTTP endpoints, based on the selected search method.
210210
211211{{< tabs "executing-queries" >}}
212212
213- {{< tab "Local search" >}}
213+ {{< tab "Instant search" >}}
214214``` bash
215- curl -X POST /v1/graphrag-query \
215+ curl -X POST /v1/graphrag-query-stream \
216216 -H " Content-Type: application/json" \
217217 -d ' {
218218 "query": "What is the AR3 Drone?",
219- "query_type": 2,
220- "provider": 0
219+ "query_type": "UNIFIED",
220+ "provider": 0,
221+ "include_metadata": true,
222+ "use_llm_planner": false
221223 }'
222224```
223225{{< /tab >}}
224226
225- {{< tab "Global search" >}}
227+ {{< tab "Deep search" >}}
226228
227229``` bash
228230curl -X POST /v1/graphrag-query \
229231 -H " Content-Type: application/json" \
230232 -d ' {
231- "query": "What is the AR3 Drone ?",
233+ "query": "What are the main themes and topics discussed in the documents ?",
232234 "level": 1,
233- "query_type": 1,
234- "provider": 0
235+ "query_type": "LOCAL",
236+ "provider": 0,
237+ "include_metadata": true,
238+ "use_llm_planner": true
235239 }'
236240```
237241{{< /tab >}}
@@ -240,13 +244,15 @@ curl -X POST /v1/graphrag-query \
240244
241245The request parameters are the following:
242246- ` query ` : Your search query text.
243- - ` level ` : The community hierarchy level to use for the search (` 1 ` for top-level communities).
247+ - ` level ` : The community hierarchy level to use for the search (` 1 ` for top-level communities). Defaults to ` 2 ` if not provided.
244248- ` query_type ` : The type of search to perform.
245- - ` 1 ` : Global search.
246- - ` 2 ` : Local search.
247- - ` provider ` : The LLM provider to use
249+ - ` UNIFIED ` : Instant search.
250+ - ` LOCAL ` : Deep search.
251+ - ` provider ` : The LLM provider to use:
248252 - ` 0 ` : OpenAI (or OpenRouter)
249253 - ` 1 ` : Triton
254+ - ` include_metadata ` : Whether to include metadata in the response. If not specified, defaults to ` true ` .
255+ - ` use_llm_planner ` : Whether to use the LLM planner for intelligent query processing. If not specified, defaults to ` true ` .
250256
251257## Health check
252258
@@ -274,17 +280,6 @@ properties:
274280}
275281```
276282
277- ## Best Practices
278-
279- - ** Choose the right search method** :
280- - Use global search for broad, thematic queries.
281- - Use local search for specific entity or relationship queries.
282-
283-
284- - ** Performance considerations** :
285- - Global search may take longer due to its map-reduce process.
286- - Local search is typically faster for concrete queries.
287-
288283## API Reference
289284
290285For detailed API documentation, see the
0 commit comments