A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
F
- FAIL - enum entry in dev.langchain4j.rag.query.router.LanguageModelQueryRouter.FallbackStrategy
In this case, an original exception will be re-thrown, and the RAG flow will fail.
- fallbackStrategy(dev.langchain4j.rag.query.router.LanguageModelQueryRouter.FallbackStrategy) - function in dev.langchain4j.rag.query.router.LanguageModelQueryRouter.LanguageModelQueryRouterBuilder
- fillInStackTrace() - function in java.lang.Throwable
- filter(dev.langchain4j.store.embedding.filter.Filter) - function in dev.langchain4j.rag.content.retriever.EmbeddingStoreContentRetriever.EmbeddingStoreContentRetrieverBuilder
- filter() - function in dev.langchain4j.store.embedding.EmbeddingSearchRequest
- filter(dev.langchain4j.store.embedding.filter.Filter) - function in dev.langchain4j.store.embedding.EmbeddingSearchRequest.EmbeddingSearchRequestBuilder
- Filter - class in dev.langchain4j.store.embedding.filter
- This class represents a filter that can be applied during search in an EmbeddingStore.
- FilterParser - class in dev.langchain4j.store.embedding.filter
- Parses a filter expression string into a Filter object.
- findRelevant(java.lang.String) - function in dev.langchain4j.retriever.EmbeddingStoreRetriever
- Find relevant items for the given text.
- findRelevant(Object,java.lang.String) - function in dev.langchain4j.retriever.Retriever
- Find relevant items for the given text and memoryId.
- findRelevant(Object,java.lang.String) - function in dev.langchain4j.retriever.Retriever
- Find relevant items for the given text and memoryId.
- findRelevant(java.lang.String) - function in dev.langchain4j.retriever.Retriever
- Find relevant items for the given text.
- findRelevant(dev.langchain4j.data.embedding.Embedding,int) - function in dev.langchain4j.store.embedding.EmbeddingStore
- Finds the most relevant (closest in space) embeddings to the provided reference embedding.
- findRelevant(dev.langchain4j.data.embedding.Embedding,int,double) - function in dev.langchain4j.store.embedding.EmbeddingStore
- Finds the most relevant (closest in space) embeddings to the provided reference embedding.
- findRelevant(Object,dev.langchain4j.data.embedding.Embedding,int) - function in dev.langchain4j.store.embedding.EmbeddingStore
- Finds the most relevant (closest in space) embeddings to the provided reference embedding.
- findRelevant(Object,dev.langchain4j.data.embedding.Embedding,int,double) - function in dev.langchain4j.store.embedding.EmbeddingStore
- Finds the most relevant (closest in space) embeddings to the provided reference embedding.
- finishReason() - function in dev.langchain4j.model.chat.listener.ChatModelResponse
- finishReason(dev.langchain4j.model.output.FinishReason) - function in dev.langchain4j.model.chat.listener.ChatModelResponse.ChatModelResponseBuilder
- finishReason() - function in dev.langchain4j.model.chat.response.ChatResponse
- finishReason(dev.langchain4j.model.output.FinishReason) - function in dev.langchain4j.model.chat.response.ChatResponse.Builder
- finishReason() - function in dev.langchain4j.model.chat.response.ChatResponseMetadata
- finishReason(dev.langchain4j.model.output.FinishReason) - function in dev.langchain4j.model.chat.response.ChatResponseMetadata.Builder
- FinishReason - class in dev.langchain4j.model.output
- The reason why a model call finished.
- finishReason() - function in dev.langchain4j.model.output.Response
- Get the finish reason.
- firstChars(java.lang.String,int) - function in dev.langchain4j.internal.Utils
- Returns the first
numberOfChars
characters of the given string. - flagged() - function in dev.langchain4j.model.moderation.Moderation
- Returns true if the text was flagged.
- flagged(java.lang.String) - function in dev.langchain4j.model.moderation.Moderation
- Constructs a Moderation object that is flagged.
- flaggedText() - function in dev.langchain4j.model.moderation.Moderation
- Returns the text that was flagged.
- frequencyPenalty() - function in dev.langchain4j.model.chat.request.ChatRequestParameters
- frequencyPenalty() - function in dev.langchain4j.model.chat.request.DefaultChatRequestParameters
- frequencyPenalty(java.lang.Double) - function in dev.langchain4j.model.chat.request.DefaultChatRequestParameters.Builder
- from(java.lang.String,Object) - function in dev.langchain4j.agent.tool.JsonSchemaProperty
- Construct a property with key and value.
- from(java.lang.String) - function in dev.langchain4j.data.document.Document
- Creates a new Document from the given text.
- from(java.lang.String) - function in dev.langchain4j.data.document.Document
- Creates a new Document from the given text.
- from(java.lang.String,dev.langchain4j.data.document.Metadata) - function in dev.langchain4j.data.document.Document
- Creates a new Document from the given text.
- from(java.lang.String,dev.langchain4j.data.document.Metadata) - function in dev.langchain4j.data.document.Document
- Creates a new Document from the given text.
- from(java.lang.String,Object) - function in dev.langchain4j.data.document.Metadata
- from(java.lang.String,java.lang.String) - function in dev.langchain4j.data.document.Metadata
- Constructs a Metadata object from a single key-value pair.
- from(java.util.Map) - function in dev.langchain4j.data.document.Metadata
- Constructs a Metadata object from a map of key-value pairs.
- from(kotlin.Array) - function in dev.langchain4j.data.embedding.Embedding
- Creates a new Embedding from the given vector.
- from(java.util.List) - function in dev.langchain4j.data.embedding.Embedding
- Creates a new Embedding from the given vector.
- from(kotlin.Array) - function in dev.langchain4j.data.message.AiMessage
- Create a new AiMessage with the given tool execution requests.
- from(java.lang.String) - function in dev.langchain4j.data.message.AiMessage
- Create a new AiMessage with the given text.
- from(java.lang.String,java.util.List) - function in dev.langchain4j.data.message.AiMessage
- Create a new AiMessage with the given text and tool execution requests.
- from(java.util.List) - function in dev.langchain4j.data.message.AiMessage
- Create a new AiMessage with the given tool execution requests.
- from(dev.langchain4j.data.audio.Audio) - function in dev.langchain4j.data.message.AudioContent
- Create a new AudioContent from the given Audio.
- from(java.lang.String) - function in dev.langchain4j.data.message.AudioContent
- Create a new AudioContent from the given url.
- from(java.lang.String,java.lang.String) - function in dev.langchain4j.data.message.AudioContent
- Create a new AudioContent from the given base64 data and mime type.
- from(java.net.URI) - function in dev.langchain4j.data.message.AudioContent
- Create a new AudioContent from the given url.
- from(java.util.Map) - function in dev.langchain4j.data.message.CustomMessage
- Creates a new custom message.
- from(dev.langchain4j.data.image.Image) - function in dev.langchain4j.data.message.ImageContent
- Create a new ImageContent from the given image.
- from(dev.langchain4j.data.image.Image,dev.langchain4j.data.message.ImageContent.DetailLevel) - function in dev.langchain4j.data.message.ImageContent
- Create a new ImageContent from the given image.
- from(java.lang.String) - function in dev.langchain4j.data.message.ImageContent
- Create a new ImageContent from the given url.
- from(java.lang.String,dev.langchain4j.data.message.ImageContent.DetailLevel) - function in dev.langchain4j.data.message.ImageContent
- Create a new ImageContent from the given url and detail level.
- from(java.lang.String,java.lang.String) - function in dev.langchain4j.data.message.ImageContent
- Create a new ImageContent from the given base64 data and mime type.
- from(java.lang.String,java.lang.String,dev.langchain4j.data.message.ImageContent.DetailLevel) - function in dev.langchain4j.data.message.ImageContent
- Create a new ImageContent from the given base64 data and mime type.
- from(java.net.URI) - function in dev.langchain4j.data.message.ImageContent
- Create a new ImageContent from the given url.
- from(java.net.URI,dev.langchain4j.data.message.ImageContent.DetailLevel) - function in dev.langchain4j.data.message.ImageContent
- Create a new ImageContent from the given url and detail level.
- from(dev.langchain4j.data.pdf.PdfFile) - function in dev.langchain4j.data.message.PdfFileContent
- Create a new PdfFileContent from the given PDF.
- from(java.lang.String) - function in dev.langchain4j.data.message.PdfFileContent
- Create a new PdfFileContent from the given url.
- from(java.lang.String,java.lang.String) - function in dev.langchain4j.data.message.PdfFileContent
- Create a new PdfFileContent from the given base64 data and mime type.
- from(java.net.URI) - function in dev.langchain4j.data.message.PdfFileContent
- Create a new PdfFileContent from the given url.
- from(java.lang.String) - function in dev.langchain4j.data.message.SystemMessage
- Creates a new system message.
- from(java.lang.String) - function in dev.langchain4j.data.message.TextContent
- Creates a new text content.
- from(dev.langchain4j.data.text.TextFile) - function in dev.langchain4j.data.message.TextFileContent
- Create a new TextFileContent from the given text file.
- from(java.lang.String) - function in dev.langchain4j.data.message.TextFileContent
- Create a new TextFileContent from the given url.
- from(java.lang.String,java.lang.String) - function in dev.langchain4j.data.message.TextFileContent
- Create a new TextFileContent from the given base64 data and mime type.
- from(java.net.URI) - function in dev.langchain4j.data.message.TextFileContent
- Create a new TextFileContent from the given url.
- from(dev.langchain4j.agent.tool.ToolExecutionRequest,java.lang.String) - function in dev.langchain4j.data.message.ToolExecutionResultMessage
- Creates a ToolExecutionResultMessage from a ToolExecutionRequest and the result of the tool execution.
- from(java.lang.String,java.lang.String,java.lang.String) - function in dev.langchain4j.data.message.ToolExecutionResultMessage
- Creates a ToolExecutionResultMessage from a ToolExecutionRequest and the result of the tool execution.
- from(kotlin.Array) - function in dev.langchain4j.data.message.UserMessage
- Create a UserMessage from contents.
- from(java.lang.String) - function in dev.langchain4j.data.message.UserMessage
- Create a UserMessage from a text.
- from(java.lang.String,kotlin.Array) - function in dev.langchain4j.data.message.UserMessage
- Create a UserMessage from a name and contents.
- from(java.lang.String,java.lang.String) - function in dev.langchain4j.data.message.UserMessage
- Create a UserMessage from a name and a text.
- from(java.lang.String,java.util.List) - function in dev.langchain4j.data.message.UserMessage
- Create a UserMessage from a name and contents.
- from(java.util.List) - function in dev.langchain4j.data.message.UserMessage
- Create a UserMessage from contents.
- from(dev.langchain4j.data.video.Video) - function in dev.langchain4j.data.message.VideoContent
- Create a new VideoContent from the given video.
- from(java.lang.String) - function in dev.langchain4j.data.message.VideoContent
- Create a new VideoContent from the given url.
- from(java.lang.String,java.lang.String) - function in dev.langchain4j.data.message.VideoContent
- Create a new VideoContent from the given base64 data and mime type.
- from(java.net.URI) - function in dev.langchain4j.data.message.VideoContent
- Create a new VideoContent from the given url.
- from(java.lang.String) - function in dev.langchain4j.data.segment.TextSegment
- Creates a new text segment.
- from(java.lang.String,dev.langchain4j.data.document.Metadata) - function in dev.langchain4j.data.segment.TextSegment
- Creates a new text segment.
- from(java.lang.String) - function in dev.langchain4j.model.input.Prompt
- Create a new Prompt.
- from(java.lang.String) - function in dev.langchain4j.model.input.PromptTemplate
- Create a new PromptTemplate.
- from(T) - function in dev.langchain4j.model.output.Response
- Create a new Response.
- from(T,dev.langchain4j.model.output.TokenUsage) - function in dev.langchain4j.model.output.Response
- Create a new Response.
- from(T,dev.langchain4j.model.output.TokenUsage,dev.langchain4j.model.output.FinishReason) - function in dev.langchain4j.model.output.Response
- Create a new Response.
- from(T,dev.langchain4j.model.output.TokenUsage,dev.langchain4j.model.output.FinishReason,java.util.Map) - function in dev.langchain4j.model.output.Response
- Create a new Response.
- from(dev.langchain4j.data.segment.TextSegment) - function in dev.langchain4j.rag.content.Content
- from(dev.langchain4j.data.segment.TextSegment) - function in dev.langchain4j.rag.content.Content
- from(dev.langchain4j.data.segment.TextSegment,java.util.Map) - function in dev.langchain4j.rag.content.Content
- from(dev.langchain4j.data.segment.TextSegment,java.util.Map) - function in dev.langchain4j.rag.content.Content
- from(java.lang.String) - function in dev.langchain4j.rag.content.Content
- from(java.lang.String) - function in dev.langchain4j.rag.content.Content
- from(dev.langchain4j.store.embedding.EmbeddingStore) - function in dev.langchain4j.rag.content.retriever.EmbeddingStoreContentRetriever
- Creates an instance of an
EmbeddingStoreContentRetriever
from the specified EmbeddingStore and EmbeddingModel found through SPI (see EmbeddingModelFactory). - from(dev.langchain4j.data.message.UserMessage,Object,java.util.List) - function in dev.langchain4j.rag.query.Metadata
- from(java.lang.String) - function in dev.langchain4j.rag.query.Query
- from(java.lang.String,dev.langchain4j.rag.query.Metadata) - function in dev.langchain4j.rag.query.Query
- from(dev.langchain4j.store.embedding.EmbeddingStore,dev.langchain4j.model.embedding.EmbeddingModel) - function in dev.langchain4j.retriever.EmbeddingStoreRetriever
- from(dev.langchain4j.store.embedding.EmbeddingStore,dev.langchain4j.model.embedding.EmbeddingModel,int) - function in dev.langchain4j.retriever.EmbeddingStoreRetriever
- from(dev.langchain4j.store.embedding.EmbeddingStore,dev.langchain4j.model.embedding.EmbeddingModel,int,double) - function in dev.langchain4j.retriever.EmbeddingStoreRetriever
- from(java.lang.Long) - function in dev.langchain4j.web.search.WebSearchInformationResult
- Creates a new WebSearchInformationResult with the specified total results.
- from(java.lang.Long,java.lang.Integer,java.util.Map) - function in dev.langchain4j.web.search.WebSearchInformationResult
- Creates a new WebSearchInformationResult with the specified total results, page number, and metadata.
- from(java.lang.String,java.net.URI) - function in dev.langchain4j.web.search.WebSearchOrganicResult
- Creates a WebSearchOrganicResult object from the given title and URL.
- from(java.lang.String,java.net.URI,java.lang.String,java.lang.String) - function in dev.langchain4j.web.search.WebSearchOrganicResult
- Creates a WebSearchOrganicResult object from the given title, URL, snippet and/or content.
- from(java.lang.String,java.net.URI,java.lang.String,java.lang.String,java.util.Map) - function in dev.langchain4j.web.search.WebSearchOrganicResult
- Creates a WebSearchOrganicResult object from the given title, URL, snippet and/or content, and result metadata.
- from(java.lang.String) - function in dev.langchain4j.web.search.WebSearchRequest
- Create a web search request with the given search terms.
- from(java.lang.String,java.lang.Integer) - function in dev.langchain4j.web.search.WebSearchRequest
- Create a web search request with the given search terms and maximum number of results.
- from(dev.langchain4j.web.search.WebSearchInformationResult,java.util.List) - function in dev.langchain4j.web.search.WebSearchResults
- Creates a new instance of WebSearchResults from the specified parameters.
- from(java.util.Map,dev.langchain4j.web.search.WebSearchInformationResult,java.util.List) - function in dev.langchain4j.web.search.WebSearchResults
- Creates a new instance of WebSearchResults from the specified parameters.
- from(dev.langchain4j.web.search.WebSearchEngine) - function in dev.langchain4j.web.search.WebSearchTool
- Creates a new WebSearchTool with the specified web search engine.
- fromCosineSimilarity(double) - function in dev.langchain4j.store.embedding.RelevanceScore
- Converts cosine similarity into relevance score.
- fromJson(java.lang.String,java.lang.Class) - function in dev.langchain4j.internal.Json
- Convert the given JSON string to an object of the given class.
- fromJson(java.lang.String,java.lang.reflect.Type) - function in dev.langchain4j.internal.Json
- Convert the given JSON string to an object of the given type.
- fromJson(java.lang.String,java.lang.Class) - function in dev.langchain4j.internal.Json.JsonCodec
- Convert the given JSON string to an object of the given class.
- fromJson(java.lang.String,java.lang.reflect.Type) - function in dev.langchain4j.internal.Json.JsonCodec
- Convert the given JSON string to an object of the given type.
- fromRelevanceScore(double) - function in dev.langchain4j.store.embedding.CosineSimilarity
- Converts relevance score into cosine similarity.
- fuse(java.util.Collection) - function in dev.langchain4j.rag.content.aggregator.ReciprocalRankFuser
- Fuses multiple
List<Content>
into a singleList<Content>
using the Reciprocal Rank Fusion (RRF) algorithm with k=60. - fuse(java.util.Collection,int) - function in dev.langchain4j.rag.content.aggregator.ReciprocalRankFuser
- Fuses multiple
List<Content>
into a singleList<Content>
using the Reciprocal Rank Fusion (RRF) algorithm.