Skip to content

Commit f19441f

Browse files
committed
More Pyright
1 parent 955b9ff commit f19441f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

graphrag/config/defaults.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,13 @@
9797
overwrite: true\
9898
"""
9999

100+
VECTOR_STORE_DICT = {
101+
"type": VectorStoreType.LanceDB.value,
102+
"db_uri": str((Path(STORAGE_BASE_DIR) / "lancedb")),
103+
"container_name": "default",
104+
"overwrite": True,
105+
}
106+
100107
# Local Search
101108
LOCAL_SEARCH_TEXT_UNIT_PROP = 0.5
102109
LOCAL_SEARCH_COMMUNITY_PROP = 0.1

graphrag/config/models/text_embedding_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ class TextEmbeddingConfig(LLMConfig):
2525
default=defs.EMBEDDING_TARGET,
2626
)
2727
skip: list[str] = Field(description="The specific embeddings to skip.", default=[])
28-
vector_store: dict | str | None = Field(
29-
description="The vector storage configuration", default=defs.VECTOR_STORE
28+
vector_store: dict | None = Field(
29+
description="The vector storage configuration", default=defs.VECTOR_STORE_DICT
3030
)
3131
strategy: dict | None = Field(
3232
description="The override strategy to use.", default=None

0 commit comments

Comments
 (0)