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
+10
-1
@@ -1,7 +1,10 @@
|
||||
.DEFAULT_GOAL := help
|
||||
UV ?= uv
|
||||
API_PREPARED ?= 0
|
||||
.PHONY: help install generate check-generated check-pydantic-compat build run fmt fmt-check lint lint-fix typecheck test test-contract check verify
|
||||
# Local directory of the pinned model weights for test-model and run.
|
||||
ML_MODEL_DIR ?= $(HOME)/.cache/lincodex-ml/giga-480m
|
||||
MODEL_LOCK := model/giga-embeddings-480m.lock.json
|
||||
.PHONY: help install generate check-generated check-pydantic-compat build run fmt fmt-check lint lint-fix typecheck test test-contract test-model model-fetch check verify
|
||||
|
||||
help: ## Show available ML service commands.
|
||||
@awk 'BEGIN {FS = ":.*## "} /^[a-zA-Z0-9_-]+:.*## / {printf "%-14s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
|
||||
@@ -49,6 +52,12 @@ test: ## Run service tests.
|
||||
test-contract: ## Check implementation against the shared OpenAPI contract.
|
||||
$(UV) run pytest tests/test_contract.py
|
||||
|
||||
model-fetch: ## Download the pinned model files into ML_MODEL_DIR and verify their SHA-256 (about 1 GB).
|
||||
$(UV) run python -m lincodex_ml.model_files fetch --lock $(MODEL_LOCK) --out "$(ML_MODEL_DIR)"
|
||||
|
||||
test-model: ## Run the slow parity test of the real model against the research vectors (needs model-fetch).
|
||||
ML_MODEL_DIR="$(ML_MODEL_DIR)" $(UV) run pytest -m slow -p no:cacheprovider tests/test_giga_model.py
|
||||
|
||||
check: ## Run formatting, lint, type, tests, and package build.
|
||||
$(MAKE) fmt-check lint typecheck test build
|
||||
|
||||
|
||||
Reference in new issue
Block a user