Skip to content

Commit 1557ce3

Browse files
Fix init defaults for vector store and img in drift docs (#1357)
* Fix init defaults for vector store and img in drift docs * Adde more doc * Spellcheck * Remove example
1 parent d9f985a commit 1557ce3

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "patch",
3+
"description": "Fix init defaults for vector store and drift img in docs"
4+
}

docs/query/drift_search.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ DRIFT search (Dynamic Reasoning and Inference with Flexible Traversal) builds up
99
## Methodology
1010

1111
<p align="center">
12-
<img src="img/drift-search-diagram.png" alt="Figure 1. An entire DRIFT search hierarchy highlighting the three core phases of the DRIFT search process. A (Primer): DRIFT compares the user’s query with the top K most semantically relevant community reports, generating a broad initial answer and follow-up questions to steer further exploration. B (Follow-Up): DRIFT uses local search to refine queries, producing additional intermediate answers and follow-up questions that enhance specificity, guiding the engine towards context-rich information. A glyph on each node in the diagram shows the confidence the algorithm has to continue the query expansion step. C (Output Hierarchy): The final output is a hierarchical structure of questions and answers ranked by relevance, reflecting a balanced mix of global insights and local refinements, making the results adaptable and comprehensive." width="450" align="center" />
12+
<img src="../../img/drift-search-diagram.png" alt="Figure 1. An entire DRIFT search hierarchy highlighting the three core phases of the DRIFT search process." align="center" />
1313
</p>
14+
<p align="center"><i>
15+
Figure 1. An entire DRIFT search hierarchy highlighting the three core phases of the DRIFT search process. A (Primer): DRIFT compares the user’s query with the top K most semantically relevant community reports, generating a broad initial answer and follow-up questions to steer further exploration. B (Follow-Up): DRIFT uses local search to refine queries, producing additional intermediate answers and follow-up questions that enhance specificity, guiding the engine towards context-rich information. A glyph on each node in the diagram shows the confidence the algorithm has to continue the query expansion step. C (Output Hierarchy): The final output is a hierarchical structure of questions and answers ranked by relevance, reflecting a balanced mix of global insights and local refinements, making the results adaptable and comprehensive.</i></p>
1416
<p align="center">
1517

1618
DRIFT Search introduces a new approach to local search queries by including community information in the search process. This greatly expands the breadth of the query’s starting point and leads to retrieval and usage of a far higher variety of facts in the final answer. This addition expands the GraphRAG query engine by providing a more comprehensive option for local search, which uses community insights to refine a query into detailed follow-up questions.

graphrag/config/defaults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
VECTOR_STORE = f"""
9494
type: {VectorStoreType.LanceDB.value}
9595
db_uri: '{(Path(STORAGE_BASE_DIR) / "lancedb")!s}'
96-
collection_name: default
96+
container_name: default # A prefix for the vector store to create embedding containers. Default: 'default'.
9797
overwrite: true\
9898
"""
9999

graphrag/index/init_content.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
# api_key: <api_key> # if not set, will attempt to use managed identity. Expects the `Search Index Data Contributor` RBAC role in this case.
5050
# audience: <optional> # if using managed identity, the audience to use for the token
5151
# overwrite: true # or false. Only applicable at index creation time
52-
# collection_name: <collection_name> # the name of the collection to use. Default: 'default'
52+
# container_name: default # A prefix for the AzureAISearch to create indexes. Default: 'default'.
5353
llm:
5454
api_key: ${{GRAPHRAG_API_KEY}}
5555
type: {defs.EMBEDDING_TYPE.value} # or azure_openai_embedding

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ test_smoke = "pytest ./tests/smoke"
139139
test_notebook = "pytest ./tests/notebook"
140140
test_verbs = "pytest ./tests/verbs"
141141
index = "python -m graphrag index"
142+
init = "python -m graphrag init"
142143
query = "python -m graphrag query"
143144
prompt_tune = "python -m graphrag prompt-tune"
144145
# Pass in a test pattern

0 commit comments

Comments
 (0)