Uses of Class
dev.langchain4j.rag.content.Content
Package
Description
-
Uses of Content in dev.langchain4j.experimental.rag.content.retriever.sql
-
Uses of Content in dev.langchain4j.rag
Modifier and TypeMethodDescriptionModifierConstructorDescriptionAugmentationResult
(ChatMessage chatMessage, List<Content> contents) -
Uses of Content in dev.langchain4j.rag.content
-
Uses of Content in dev.langchain4j.rag.content.aggregator
Modifier and TypeMethodDescriptionReciprocalRankFuser.fuse
(Collection<List<Content>> listsOfContents) Fuses multipleList<Content>
into a singleList<Content>
using the Reciprocal Rank Fusion (RRF) algorithm with k=60.ReciprocalRankFuser.fuse
(Collection<List<Content>> listsOfContents, int k) Fuses multipleList<Content>
into a singleList<Content>
using the Reciprocal Rank Fusion (RRF) algorithm.ReRankingContentAggregator.reRankAndFilter
(List<Content> contents, Query query) Modifier and TypeMethodDescriptionReciprocalRankFuser.fuse
(Collection<List<Content>> listsOfContents) Fuses multipleList<Content>
into a singleList<Content>
using the Reciprocal Rank Fusion (RRF) algorithm with k=60.ReciprocalRankFuser.fuse
(Collection<List<Content>> listsOfContents, int k) Fuses multipleList<Content>
into a singleList<Content>
using the Reciprocal Rank Fusion (RRF) algorithm.ReRankingContentAggregator.ReRankingContentAggregatorBuilder.querySelector
(Function<Map<Query, Collection<List<Content>>>, Query> querySelector) ReRankingContentAggregator.reRankAndFilter
(List<Content> contents, Query query) ModifierConstructorDescriptionReRankingContentAggregator
(ScoringModel scoringModel, Function<Map<Query, Collection<List<Content>>>, Query> querySelector, Double minScore) ReRankingContentAggregator
(ScoringModel scoringModel, Function<Map<Query, Collection<List<Content>>>, Query> querySelector, Double minScore, Integer maxResults) -
Uses of Content in dev.langchain4j.rag.content.injector
Modifier and TypeMethodDescriptionprotected Prompt
DefaultContentInjector.createPrompt
(ChatMessage chatMessage, List<Content> contents) protected Prompt
DefaultContentInjector.createPrompt
(UserMessage userMessage, List<Content> contents) Deprecated.protected String
default ChatMessage
ContentInjector.inject
(List<Content> contents, ChatMessage chatMessage) Injects givenContent
s into a givenChatMessage
.ContentInjector.inject
(List<Content> contents, UserMessage userMessage) Deprecated.Use/implementContentInjector.inject(List, ChatMessage)
instead.DefaultContentInjector.inject
(List<Content> contents, ChatMessage chatMessage) DefaultContentInjector.inject
(List<Content> contents, UserMessage userMessage) Deprecated.useDefaultContentInjector.inject(List, ChatMessage)
instead. -
Uses of Content in dev.langchain4j.rag.content.retriever
-
Uses of Content in dev.langchain4j.rag.content.retriever.azure.search
-
Uses of Content in dev.langchain4j.rag.content.retriever.neo4j
-
Uses of Content in dev.langchain4j.service
Modifier and TypeMethodDescriptionAiServiceTokenStream.onRetrieved
(Consumer<List<Content>> contentsHandler) TokenStream.onRetrieved
(Consumer<List<Content>> contentHandler) The provided consumer will be invoked if anyContent
s are retrieved usingRetrievalAugmentor
.ModifierConstructorDescriptionResult
(T content, TokenUsage tokenUsage, List<Content> sources, FinishReason finishReason, List<ToolExecution> toolExecutions)
DefaultContentInjector.createPrompt(ChatMessage, List)
instead.