Skip to content

fix(retrieval): move rag_config import to module top-level#58

Open
D4R102004 wants to merge 1 commit into
mainfrom
fix/issue-57-lsi-direct-import
Open

fix(retrieval): move rag_config import to module top-level#58
D4R102004 wants to merge 1 commit into
mainfrom
fix/issue-57-lsi-direct-import

Conversation

@D4R102004

Copy link
Copy Markdown
Owner

What

Move rag_config import from inside search() function body to module top-level.

Why

The deferred import used ranking.ranking as intermediary to reach rag.config. This adds an unnecessary dependency on the entire ranking module just to get a config object, and hides the dependency inside a function body where it re-executes on every call.

Tests

182 passed, 10 failed — all failures are pre-existing in main (test_system.py references stale API).

Closes #57

Replace deferred indirect import via ranking.ranking with direct
import from rag.config at module top-level. Same object, no circular
imports, consistent with all other modules.

Closes #57
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: replace deferred indirect import of rag_config in lsi_model.py

1 participant