feat: Add cross-encoder re-ranking after hybrid search (CF-1317)
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>
This commit is contained in:
@@ -8,6 +8,10 @@ POSTGRES_PORT=6432
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user