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
+17
-1
@@ -5,8 +5,13 @@ description = "Operational scaffold for the Lincodex ML service"
|
||||
requires-python = ">=3.14,<3.15"
|
||||
dependencies = [
|
||||
"fastapi==0.142.2",
|
||||
"numpy==2.5.3",
|
||||
"prometheus-client==0.26.0",
|
||||
"pydantic==2.13.5",
|
||||
"safetensors==0.8.0",
|
||||
"tokenizers==0.23.3",
|
||||
"torch==2.11.0",
|
||||
"transformers==5.19.0",
|
||||
"uvicorn[standard]==0.54.0",
|
||||
]
|
||||
|
||||
@@ -28,6 +33,16 @@ build-backend = "hatchling.build"
|
||||
[tool.uv]
|
||||
required-version = "==0.12.22"
|
||||
|
||||
# CPU-only PyTorch wheels: the default index resolves Linux torch with CUDA
|
||||
# libraries of several gigabytes that a CPU host never uses.
|
||||
[[tool.uv.index]]
|
||||
name = "pytorch-cpu"
|
||||
url = "https://download.pytorch.org/whl/cpu"
|
||||
explicit = true
|
||||
|
||||
[tool.uv.sources]
|
||||
torch = { index = "pytorch-cpu" }
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["src/lincodex_ml"]
|
||||
|
||||
@@ -47,4 +62,5 @@ files = ["src"]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests"]
|
||||
addopts = "-ra"
|
||||
addopts = "-ra -m 'not slow'"
|
||||
markers = ["slow: needs the pinned model weights in ML_MODEL_DIR (make test-model)"]
|
||||
Reference in new issue
Block a user