Uses of Interface
dev.langchain4j.rag.content.Content
Packages that use Content
Package
Description
-
Uses of Content in dev.langchain4j.experimental.rag.content.retriever.sql
Methods in dev.langchain4j.experimental.rag.content.retriever.sql that return types with arguments of type Content -
Uses of Content in dev.langchain4j.rag
Methods in dev.langchain4j.rag that return types with arguments of type ContentMethod parameters in dev.langchain4j.rag with type arguments of type ContentModifier and TypeMethodDescriptionConstructor parameters in dev.langchain4j.rag with type arguments of type ContentModifierConstructorDescriptionAugmentationResult
(ChatMessage chatMessage, List<Content> contents) -
Uses of Content in dev.langchain4j.rag.content
Classes in dev.langchain4j.rag.content that implement ContentMethods in dev.langchain4j.rag.content that return ContentModifier and TypeMethodDescriptionstatic Content
Content.from
(TextSegment textSegment) static Content
Content.from
(TextSegment textSegment, Map<ContentMetadata, Object> metadata) static Content
-
Uses of Content in dev.langchain4j.rag.content.aggregator
Fields in dev.langchain4j.rag.content.aggregator with type parameters of type ContentMethods in dev.langchain4j.rag.content.aggregator that return types with arguments of type ContentModifier 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) Method parameters in dev.langchain4j.rag.content.aggregator with type arguments of type ContentModifier 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) Constructor parameters in dev.langchain4j.rag.content.aggregator with type arguments of type ContentModifierConstructorDescriptionReRankingContentAggregator
(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
Methods in dev.langchain4j.rag.content.injector with parameters of type ContentMethod parameters in dev.langchain4j.rag.content.injector with type arguments of type ContentModifier 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
Methods in dev.langchain4j.rag.content.retriever that return types with arguments of type Content -
Uses of Content in dev.langchain4j.rag.content.retriever.azure.search
Methods in dev.langchain4j.rag.content.retriever.azure.search that return types with arguments of type Content -
Uses of Content in dev.langchain4j.rag.content.retriever.neo4j
Methods in dev.langchain4j.rag.content.retriever.neo4j that return types with arguments of type Content -
Uses of Content in dev.langchain4j.service
Methods in dev.langchain4j.service that return types with arguments of type ContentMethod parameters in dev.langchain4j.service with type arguments of type ContentModifier 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
.Constructor parameters in dev.langchain4j.service with type arguments of type ContentModifierConstructorDescriptionResult
(T content, TokenUsage tokenUsage, List<Content> sources, FinishReason finishReason, List<ToolExecution> toolExecutions)
DefaultContentInjector.createPrompt(ChatMessage, List)
instead.