feat(matching): rank with semantic embeddings and explain matches by evidence
This commit is contained in:
1 parent
facc1789b1
commit
24b64d698a
215 files changed
+16951
-327
No files matched your search
+3
-2
@@ -2,11 +2,12 @@
|
||||
|
||||
[Русский](README.md) | English
|
||||
|
||||
A separate Python service using FastAPI for future resume analysis and candidate matching. It currently provides an HTTP scaffold with `/healthz`, `/readyz`, and metrics. No model is connected yet, so `/readyz` returns 503.
|
||||
A separate Python service using FastAPI. It serves `POST /v1/embeddings` with the pinned Giga-Embeddings-instruct-480M model on CPU for semantic matching (the optional `model` field names the model; a request for a model the service has not loaded gets 400), plus `/healthz`, `/readyz`, and metrics. `/readyz` returns 503 until the model is loaded and warmed up, and always without a model (`ML_EMBEDDER=none`, the default outside the image). The model files are fetched at image build time by `model/giga-embeddings-480m.lock.json` and verified by SHA-256; see [deployment](../docs/en/DEPLOY.md#separate-ml-compose-project).
|
||||
|
||||
- `src/lincodex_ml/` contains the application, HTTP routes, and infrastructure code.
|
||||
- `codegen/` configures Pydantic model generation from `api/ml/`.
|
||||
- `tests/` checks service health and contract conformance.
|
||||
- `tests/` checks service health, the embedding contract with a fake encoder, the model lock, and (marked `slow`, `make -C ml test-model`) the real model against the study vectors.
|
||||
- `model/` pins the model revision and the SHA-256 of its files.
|
||||
- `scripts/` checks Pydantic models generated from the OpenAPI 3.2 fixture.
|
||||
- `pyproject.toml` and `uv.lock` define dependencies and Python tool settings.
|
||||
|
||||
|
||||
Reference in new issue
Block a user