Add rerank() function calling LiteLLM /v1/rerank endpoint (Cohere-compatible). Plugged into all 3 search functions (sessions, session-docs, archives) after RRF merge. Disabled by default via RERANK_ENABLED env var. Graceful fallback to RRF-only ranking on API failure. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
19 lines
507 B
Plaintext
19 lines
507 B
Plaintext
# Session MCP Environment Variables (forked from task-mcp, CF-762)
|
|
|
|
# PostgreSQL connection via pgbouncer
|
|
POSTGRES_HOST=postgres.agiliton.internal
|
|
POSTGRES_PORT=6432
|
|
|
|
# Embedding service configuration
|
|
LLM_API_URL=https://api.agiliton.cloud/llm
|
|
LLM_API_KEY=your_llm_api_key_here
|
|
|
|
# Cross-encoder re-ranking (CF-1317)
|
|
RERANK_ENABLED=false
|
|
RERANK_MODEL=rerank-v3.5
|
|
|
|
# Jira Cloud (session tracking)
|
|
JIRA_URL=https://agiliton.atlassian.net
|
|
JIRA_USERNAME=your_email@agiliton.eu
|
|
JIRA_API_TOKEN=your_jira_api_token
|