Skip to content

Develop to Master#7

Open
Intrinsical-AI wants to merge 59 commits intomasterfrom
develop
Open

Develop to Master#7
Intrinsical-AI wants to merge 59 commits intomasterfrom
develop

Conversation

@Intrinsical-AI
Copy link
Owner

Fixed tests, linters, typechecks and CI jobs. Ready for release. Opening features in new banches (from here).

…fix OpenAI client init, clean CLI entry points, and adjust coverage omit for infra wiring; all tests green (125), mypy+ruff passing
…xible. Added loaders, tests, validations; updated CI; polished styling; exhaustive linting and type-checking
… CHANGELOG entry; ensure pre-commit mypy plugin deps
- Use UV_CACHE_DIR=.uv-cache to avoid permission issues in restricted environments.
- Use `uv run --active --no-sync` for lint/type/test so commands don't trigger implicit sync/build.
- Keep targets compatible with the existing uv.lock-based workflow.
…tials

- Keep stable metric symbols even when prometheus-client isn't installed.
- Avoid invalid CORS config ("*" with credentials) by disabling credentials.
- Add a preflight test to assert headers are spec-compliant.
Move DI wiring into src/local_rag_backend/app/factory.py and keep src/local_rag_backend/app/dependencies.py as a thin re-export for backwards compatibility.

Add local_rag_backend.bootstrap.bootstrap_rag_service() for library usage.
Derive local_rag_backend.__version__ from dist metadata to avoid drift.
Update unit tests to patch the new composition module.
…dexing tests

Why:
- sentence-transformers pulls torch + CUDA wheels on many platforms; this makes the default "dense" extra hard to install and test in constrained environments.

What:
- Split extras: "dense" = FAISS only; "dense-st" = SentenceTransformers.
- Prefer OpenAI embeddings when OPENAI_API_KEY is configured; fall back to SentenceTransformers when installed.
- Align bootstrap/build_index and API router with the same embedder-selection behavior.
- Allow HistorySqlStorage to accept a session_factory for testability.
- Replace the SentenceTransformers integration test with an OpenAIEmbedder integration test that stubs the SDK.
- Add an end-to-end dense+hybrid test that works with the FAISS numpy fallback.
- Strengthen build_index sparse integration assertions.

Notes:
- uv.lock was updated to reflect the new extras; regeneration requires network access.
- Disable OpenRouter by default in .env.example to avoid a not_ready configuration without an API key.
- Update README badges and pip examples to use the actual dist name (rag-prototype).
- Keep dense installation instructions consistent with the split extras.
- Align architecture/advanced usage docs with current response shapes and messages.
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.

1 participant