Package com.bytedesk.ai.springai.rag
Class DashScopeDocumentRanker
java.lang.Object
com.bytedesk.ai.springai.rag.DashScopeDocumentRanker
- All Implemented Interfaces:
BiFunction<org.springframework.ai.rag.Query,
,List<org.springframework.ai.document.Document>, List<org.springframework.ai.document.Document>> org.springframework.ai.rag.postretrieval.ranking.DocumentRanker
public class DashScopeDocumentRanker
extends Object
implements org.springframework.ai.rag.postretrieval.ranking.DocumentRanker
Post-Retrieval
处理从联网搜索种获得的 Document,以获得最佳输出。
https://java2ai.com/blog/spring-ai-alibaba-module-rag/?spm=0.29160081.0.0.75c73b5blqQmqQ
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiFunction
andThen
Methods inherited from interface org.springframework.ai.rag.postretrieval.ranking.DocumentRanker
apply
-
Constructor Details
-
DashScopeDocumentRanker
public DashScopeDocumentRanker()
-
-
Method Details