Open
Conversation
…ag-prototype into fix/CI-workflow
…ag-prototype into fix/CI-workflow
…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
…on inputs referencing env
…x missing venv error
…ack linting errors
…ack linting errors
…ack linting errors
…ack linting errors
…ack linting errors
…ack linting errors
…ack linting errors
- 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.
…v if exists in root dir
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixed tests, linters, typechecks and CI jobs. Ready for release. Opening features in new banches (from here).