Skip to content

fix: handle blank LanceDB vector store URI#2417

Open
Kevin-Li-2025 wants to merge 1 commit into
microsoft:mainfrom
Kevin-Li-2025:kevin/fix-vector-store-uri-strip
Open

fix: handle blank LanceDB vector store URI#2417
Kevin-Li-2025 wants to merge 1 commit into
microsoft:mainfrom
Kevin-Li-2025:kevin/fix-vector-store-uri-strip

Conversation

@Kevin-Li-2025

Copy link
Copy Markdown

Summary

  • call store.db_uri.strip() when validating LanceDB vector store configuration
  • preserve the intended default output/lancedb fallback for whitespace-only db_uri values
  • add regression coverage so whitespace-only LanceDB URIs no longer resolve to the current working directory

Fixes #2381.

Tests

  • uv run ruff check packages/graphrag/graphrag/config/models/graph_rag_config.py tests/unit/config/test_config.py
  • uv run ruff format --check packages/graphrag/graphrag/config/models/graph_rag_config.py tests/unit/config/test_config.py
  • uv run --package graphrag pytest tests/unit/config/test_config.py -q
  • git diff --check

Signed-off-by: Kevin-Li-2025 <2242139@qq.com>
@Kevin-Li-2025 Kevin-Li-2025 requested a review from a team as a code owner June 27, 2026 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: vector store db_uri whitespace check uses .strip without parentheses, always False

1 participant