Skip to content

Commit 9f02444

Browse files
committed
instant and deep search
1 parent 5c6505c commit 9f02444

File tree

2 files changed

+54
-64
lines changed

2 files changed

+54
-64
lines changed

site/content/3.12/data-science/graphrag/services/retriever.md

Lines changed: 27 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ the ArangoDB team.
1818
## Overview
1919

2020
The Retriever service offers two distinct search methods:
21-
- **Global search**: Analyzes entire document to identify themes and patterns,
21+
- **Instant search**: Analyzes entire document to identify themes and patterns,
2222
perfect for high-level insights and comprehensive summaries.
23-
- **Local search**: Focuses on specific entities and their relationships, ideal
23+
- **Deep search**: Focuses on specific entities and their relationships, ideal
2424
for detailed queries about particular concepts.
2525

2626
The service supports both private (Triton Inference Server) and public (OpenAI)
@@ -36,19 +36,19 @@ graph and get contextually relevant responses.
3636
- Configurable community hierarchy levels
3737

3838
{{< tip >}}
39-
You can also use the GraphRAG Retriever service via the ArangoDB [web interface](../web-interface.md).
39+
You can also use the GraphRAG Retriever service via the [web interface](../web-interface.md).
4040
{{< /tip >}}
4141

4242
## Search methods
4343

4444
The Retriever service enables intelligent search and retrieval of information
45-
from your knowledge graph. It provides two powerful search methods, global Search
46-
and local Search, that leverage the structured knowledge graph created by the Importer
45+
from your knowledge graph. It provides two powerful search methods, instant search
46+
and deep search, that leverage the structured knowledge graph created by the Importer
4747
to deliver accurate and contextually relevant responses to your natural language queries.
4848

49-
### Global search
49+
### Deep search
5050

51-
Global search is designed for queries that require understanding and aggregation
51+
Deep search is designed for queries that require understanding and aggregation
5252
of information across your entire document. It's particularly effective for questions
5353
about overall themes, patterns, or high-level insights in your data.
5454

@@ -63,9 +63,9 @@ about overall themes, patterns, or high-level insights in your data.
6363
- "Summarize the key findings across all documents"
6464
- "What are the most important concepts discussed?"
6565

66-
### Local search
66+
### Instant search
6767

68-
Local search focuses on specific entities and their relationships within your
68+
Instant search focuses on specific entities and their relationships within your
6969
knowledge graph. It is ideal for detailed queries about particular concepts,
7070
entities, or relationships.
7171

@@ -213,28 +213,32 @@ it using the following HTTP endpoints, based on the selected search method.
213213

214214
{{< tabs "executing-queries" >}}
215215

216-
{{< tab "Local search" >}}
216+
{{< tab "Instant search" >}}
217217
```bash
218-
curl -X POST /v1/graphrag-query \
218+
curl -X POST /v1/graphrag-query-stream \
219219
-H "Content-Type: application/json" \
220220
-d '{
221221
"query": "What is the AR3 Drone?",
222-
"query_type": 2,
223-
"provider": 0
222+
"query_type": "UNIFIED",
223+
"provider": 0,
224+
"include_metadata": true,
225+
"use_llm_planner": false
224226
}'
225227
```
226228
{{< /tab >}}
227229

228-
{{< tab "Global search" >}}
230+
{{< tab "Deep search" >}}
229231

230232
```bash
231233
curl -X POST /v1/graphrag-query \
232234
-H "Content-Type: application/json" \
233235
-d '{
234-
"query": "What is the AR3 Drone?",
236+
"query": "What are the main themes and topics discussed in the documents?",
235237
"level": 1,
236-
"query_type": 1,
237-
"provider": 0
238+
"query_type": "LOCAL",
239+
"provider": 0,
240+
"include_metadata": true,
241+
"use_llm_planner": true
238242
}'
239243
```
240244
{{< /tab >}}
@@ -243,13 +247,15 @@ curl -X POST /v1/graphrag-query \
243247

244248
The request parameters are the following:
245249
- `query`: Your search query text.
246-
- `level`: The community hierarchy level to use for the search (`1` for top-level communities).
250+
- `level`: The community hierarchy level to use for the search (`1` for top-level communities). Defaults to `2` if not provided.
247251
- `query_type`: The type of search to perform.
248-
- `1`: Global search.
249-
- `2`: Local search.
250-
- `provider`: The LLM provider to use
252+
- `UNIFIED`: Instant search.
253+
- `LOCAL`: Deep search.
254+
- `provider`: The LLM provider to use:
251255
- `0`: OpenAI (or OpenRouter)
252256
- `1`: Triton
257+
- `include_metadata`: Whether to include metadata in the response. If not specified, defaults to `true`.
258+
- `use_llm_planner`: Whether to use the LLM planner for intelligent query processing. If not specified, defaults to `true`.
253259

254260
## Health check
255261

@@ -277,17 +283,6 @@ properties:
277283
}
278284
```
279285

280-
## Best Practices
281-
282-
- **Choose the right search method**:
283-
- Use global search for broad, thematic queries.
284-
- Use local search for specific entity or relationship queries.
285-
286-
287-
- **Performance considerations**:
288-
- Global search may take longer due to its map-reduce process.
289-
- Local search is typically faster for concrete queries.
290-
291286
## API Reference
292287

293288
For detailed API documentation, see the

site/content/3.13/data-science/graphrag/services/retriever.md

Lines changed: 27 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ the ArangoDB team.
1818
## Overview
1919

2020
The Retriever service offers two distinct search methods:
21-
- **Global search**: Analyzes entire document to identify themes and patterns,
21+
- **Instant search**: Analyzes entire document to identify themes and patterns,
2222
perfect for high-level insights and comprehensive summaries.
23-
- **Local search**: Focuses on specific entities and their relationships, ideal
23+
- **Deep search**: Focuses on specific entities and their relationships, ideal
2424
for detailed queries about particular concepts.
2525

2626
The service supports both private (Triton Inference Server) and public (OpenAI)
@@ -36,19 +36,19 @@ graph and get contextually relevant responses.
3636
- Configurable community hierarchy levels
3737

3838
{{< tip >}}
39-
You can also use the GraphRAG Retriever service via the ArangoDB [web interface](../web-interface.md).
39+
You can also use the GraphRAG Retriever service via the [web interface](../web-interface.md).
4040
{{< /tip >}}
4141

4242
## Search methods
4343

4444
The Retriever service enables intelligent search and retrieval of information
45-
from your knowledge graph. It provides two powerful search methods, global Search
46-
and local Search, that leverage the structured knowledge graph created by the Importer
45+
from your knowledge graph. It provides two powerful search methods, instant search
46+
and deep search, that leverage the structured knowledge graph created by the Importer
4747
to deliver accurate and contextually relevant responses to your natural language queries.
4848

49-
### Global search
49+
### Deep search
5050

51-
Global search is designed for queries that require understanding and aggregation
51+
Deep search is designed for queries that require understanding and aggregation
5252
of information across your entire document. It's particularly effective for questions
5353
about overall themes, patterns, or high-level insights in your data.
5454

@@ -63,9 +63,9 @@ about overall themes, patterns, or high-level insights in your data.
6363
- "Summarize the key findings across all documents"
6464
- "What are the most important concepts discussed?"
6565

66-
### Local search
66+
### Instant search
6767

68-
Local search focuses on specific entities and their relationships within your
68+
Instant search focuses on specific entities and their relationships within your
6969
knowledge graph. It is ideal for detailed queries about particular concepts,
7070
entities, or relationships.
7171

@@ -213,28 +213,32 @@ it using the following HTTP endpoints, based on the selected search method.
213213

214214
{{< tabs "executing-queries" >}}
215215

216-
{{< tab "Local search" >}}
216+
{{< tab "Instant search" >}}
217217
```bash
218-
curl -X POST /v1/graphrag-query \
218+
curl -X POST /v1/graphrag-query-stream \
219219
-H "Content-Type: application/json" \
220220
-d '{
221221
"query": "What is the AR3 Drone?",
222-
"query_type": 2,
223-
"provider": 0
222+
"query_type": "UNIFIED",
223+
"provider": 0,
224+
"include_metadata": true,
225+
"use_llm_planner": false
224226
}'
225227
```
226228
{{< /tab >}}
227229

228-
{{< tab "Global search" >}}
230+
{{< tab "Deep search" >}}
229231

230232
```bash
231233
curl -X POST /v1/graphrag-query \
232234
-H "Content-Type: application/json" \
233235
-d '{
234-
"query": "What is the AR3 Drone?",
236+
"query": "What are the main themes and topics discussed in the documents?",
235237
"level": 1,
236-
"query_type": 1,
237-
"provider": 0
238+
"query_type": "LOCAL",
239+
"provider": 0,
240+
"include_metadata": true,
241+
"use_llm_planner": true
238242
}'
239243
```
240244
{{< /tab >}}
@@ -243,13 +247,15 @@ curl -X POST /v1/graphrag-query \
243247

244248
The request parameters are the following:
245249
- `query`: Your search query text.
246-
- `level`: The community hierarchy level to use for the search (`1` for top-level communities).
250+
- `level`: The community hierarchy level to use for the search (`1` for top-level communities). Defaults to `2` if not provided.
247251
- `query_type`: The type of search to perform.
248-
- `1`: Global search.
249-
- `2`: Local search.
250-
- `provider`: The LLM provider to use
252+
- `UNIFIED`: Instant search.
253+
- `LOCAL`: Deep search.
254+
- `provider`: The LLM provider to use:
251255
- `0`: OpenAI (or OpenRouter)
252256
- `1`: Triton
257+
- `include_metadata`: Whether to include metadata in the response. If not specified, defaults to `true`.
258+
- `use_llm_planner`: Whether to use the LLM planner for intelligent query processing. If not specified, defaults to `true`.
253259

254260
## Health check
255261

@@ -277,17 +283,6 @@ properties:
277283
}
278284
```
279285

280-
## Best Practices
281-
282-
- **Choose the right search method**:
283-
- Use global search for broad, thematic queries.
284-
- Use local search for specific entity or relationship queries.
285-
286-
287-
- **Performance considerations**:
288-
- Global search may take longer due to its map-reduce process.
289-
- Local search is typically faster for concrete queries.
290-
291286
## API Reference
292287

293288
For detailed API documentation, see the

0 commit comments

Comments
 (0)