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,8 +3,22 @@ services:
|
||||
build:
|
||||
context: ../..
|
||||
dockerfile: ml/Dockerfile
|
||||
environment:
|
||||
# giga loads the pinned model baked into the image; fake is the hash
|
||||
# encoder for stands without the model; none keeps the service not ready.
|
||||
ML_EMBEDDER: ${ML_EMBEDDER:-giga}
|
||||
ML_TORCH_THREADS: ${ML_TORCH_THREADS:-4}
|
||||
ML_MICRO_BATCH: ${ML_MICRO_BATCH:-1}
|
||||
ML_VERIFY_WEIGHTS: ${ML_VERIFY_WEIGHTS:-true}
|
||||
# Loopback only: the backend reaches the service over the app network by
|
||||
# the alias below, never through a published port.
|
||||
ports:
|
||||
- "${ML_BIND_ADDRESS:-127.0.0.1}:${ML_HTTP_PORT:-8000}:8000"
|
||||
networks:
|
||||
default:
|
||||
app:
|
||||
aliases:
|
||||
- ml
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
@@ -21,9 +35,16 @@ services:
|
||||
options:
|
||||
max-size: 10m
|
||||
max-file: "3"
|
||||
# The float32 model takes about 3.6 GiB resident with four torch threads
|
||||
# (research CPU benchmark); the limits leave headroom for a request batch.
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "2.0"
|
||||
memory: 4G
|
||||
cpus: "4.0"
|
||||
memory: 5G
|
||||
|
||||
networks:
|
||||
# The core project network; start the core project first (make -C deploy up).
|
||||
app:
|
||||
name: ${APP_NETWORK:-app_default}
|
||||
external: true
|
||||
@@ -242,6 +242,20 @@ services:
|
||||
IDENTITY_SESSION_IDLE_TIMEOUT: ${IDENTITY_SESSION_IDLE_TIMEOUT:-24h}
|
||||
IDENTITY_SESSION_ABSOLUTE_LIFETIME: ${IDENTITY_SESSION_ABSOLUTE_LIFETIME:-168h}
|
||||
ASSESSMENT_DEMO_CATEGORIES_ENABLED: ${ASSESSMENT_DEMO_CATEGORIES_ENABLED:-false}
|
||||
# Semantic matching (see docs/en/DEPLOY.md#semantic-matching). Off by
|
||||
# default: searches then use the neutral Sem. When on, vector jobs call
|
||||
# the separate ML project, which joins this network as "ml".
|
||||
SEMANTIC_MATCHING_ENABLED: ${SEMANTIC_MATCHING_ENABLED:-false}
|
||||
ML_SERVICE_URL: ${ML_SERVICE_URL:-http://ml:8000}
|
||||
ML_REQUEST_TIMEOUT: ${ML_REQUEST_TIMEOUT:-30s}
|
||||
ML_CIRCUIT_FAILURES: ${ML_CIRCUIT_FAILURES:-3}
|
||||
ML_CIRCUIT_OPEN: ${ML_CIRCUIT_OPEN:-30s}
|
||||
# Checks of linked project repositories on api.github.com only. The
|
||||
# optional read-only token raises the GitHub rate limit; it is a secret.
|
||||
GITHUB_REPOSITORY_CHECKS_ENABLED: ${GITHUB_REPOSITORY_CHECKS_ENABLED:-false}
|
||||
GITHUB_TOKEN: ${GITHUB_TOKEN:-}
|
||||
GITHUB_TIMEOUT: ${GITHUB_TIMEOUT:-10s}
|
||||
REPOSITORY_CHECK_INTERVAL: ${REPOSITORY_CHECK_INTERVAL:-10m}
|
||||
# Own code runner (see docs/en/DEPLOY.md#code-runner-client). Off while
|
||||
# CODE_RUNNER_URL is empty: practice then reports the runner as
|
||||
# unavailable and runs nothing. The token and the run key are secrets;
|
||||
|
||||
Reference in new issue
Block a user