You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Phase 3: Integrate Jina reranking into cloud_search_impl()
Adds intelligent reranking layer after SurrealDB HNSW search:
- Overretrieve 3x results for better reranking pool
- Create JinaEmbeddingProvider with reranker-v3 model
- Prepare documents from node name + content
- Call jina_provider.rerank() with query
- Return top-N reranked results with relevance scores
Graceful degradation on errors:
- Skip reranking if JINA_API_KEY not set
- Fallback to HNSW scores if provider creation fails
- Fallback to HNSW scores if rerank API call fails
Performance tracking:
- Separate reranking_ms metric
- reranking_enabled flag in response
- Detailed logging at each step
Feature flags: Reranking only active when jina feature enabled.
Related: DUAL_MODE_SEARCH_PLAN.md Phase 3
0 commit comments