Skip to content

Fix RAG indexing env loading (#41) - #48

Merged
askmy-stack merged 1 commit into
mainfrom
fix/meridian-41-rag-env
Aug 2, 2026
Merged

Fix RAG indexing env loading (#41)#48
askmy-stack merged 1 commit into
mainfrom
fix/meridian-41-rag-env

Conversation

@askmy-stack

Copy link
Copy Markdown
Owner

Summary

  • Add src/rag/env.py with one-shot ensure_rag_env() for repo-root .env
  • Call it from indexing import and from embedder/Qdrant singleton getters
  • Add unit tests covering dotenv load, non-override, and singleton ordering

Closes #41

Test plan

  • python3 -m pytest tests/unit/test_rag_indexing_env.py -q

Made with Cursor

ensure_rag_env() centralizes dotenv loading and is called from
indexing plus lazy singleton getters, so QDRANT_URL and RAG_EMBED_MODE
from the repo .env are visible at construction time.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cursor

cursor Bot commented Aug 2, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@askmy-stack
askmy-stack merged commit f9c7087 into main Aug 2, 2026
5 checks passed
@askmy-stack
askmy-stack deleted the fix/meridian-41-rag-env branch August 2, 2026 22:40
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.

Fix RAG indexing env loading

1 participant