ContextDeduplication
org.llm4s.rag.ContextDeduplication
@Experimental
enum ContextDeduplication
Which retrieved chunks RAG drops as repeats before budgeting an answer's prompt (#3024): the same passage in two documents, or a chunk that a neighbour's overlap or a larger chunk already holds. Texts are compared normalised, lower case with runs of whitespace as one space; the higher-ranked chunk is always the one kept.
Attributes
- Source
- RAGAnswerContext.scala
- Graph
-
- Supertypes
Members list
In this article
