Repository navigation
Cross-encoder reranking implementation for DocumentPostProcessor #6893
varalakshmi-iyer
started this conversation in
Ideas
Replies: 1 comment
|
I would keep the core contract small and provider-neutral, while placing provider integrations in a dedicated A few design points that would make v1 easier to evolve:
Spring AI already presents |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The RAG reference docs explicitly call out reranking as an intended use case for DocumentPostProcessor. However, there's currently no shipped implementation. Reranking is one of the highest-ROI steps in production RAG pipelines, initial vector similarity search is a fast, approximate first pass; a cross-encoder reranker re-scores the (query, document) pair directly and reorders the top-K results, typically improving precision significantly.
Proposed scope (phased):
Open questions for maintainers:
Should this live in spring-ai-core alongside the existing RAG package, or a new spring-ai-advisors-rerank module (matching the spring-ai-advisors-vector-store pattern)?
Any preference on which reranking provider to support first?
I'd like to pick this up. Happy to open a tracked issue and a draft PR once there's initial sign-off on the interface shape.
All reactions