A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
R
- randomUUID() - function in dev.langchain4j.internal.Utils
- Returns a random UUID.
- rawDelayMs(int) - function in dev.langchain4j.internal.RetryUtils.RetryPolicy
- This method returns the raw delay in milliseconds for a given attempt.
- readBytes(java.lang.String) - function in dev.langchain4j.internal.Utils
- Reads the content as bytes from the given URL as a GET request for HTTP/HTTPS resources, and from files stored on the local filesystem.
- ReciprocalRankFuser - class in dev.langchain4j.rag.content.aggregator
- Implementation of Reciprocal Rank Fusion.
- reference() - function in dev.langchain4j.model.chat.request.json.JsonReferenceSchema
- reference(java.lang.String) - function in dev.langchain4j.model.chat.request.json.JsonReferenceSchema.Builder
- RelevanceScore - class in dev.langchain4j.store.embedding
- Utility class for converting between cosine similarity and relevance score.
- remove(java.lang.String) - function in dev.langchain4j.data.document.Metadata
- Removes the given key from the metadata.
- remove(java.lang.String) - function in dev.langchain4j.store.embedding.EmbeddingStore
- Removes a single embedding from the store by ID.
- removeAll() - function in dev.langchain4j.store.embedding.EmbeddingStore
- Removes all embeddings from the store.
- removeAll(dev.langchain4j.store.embedding.filter.Filter) - function in dev.langchain4j.store.embedding.EmbeddingStore
- Removes all embeddings that match the specified Filter from the store.
- removeAll(java.util.Collection) - function in dev.langchain4j.store.embedding.EmbeddingStore
- Removes all embeddings that match the specified IDs from the store.
- render(java.util.Map) - function in dev.langchain4j.spi.prompt.PromptTemplateFactory.Template
- Render the template.
- repeat(java.lang.String,int) - function in dev.langchain4j.internal.Utils
- Returns a string consisting of the given string repeated
times
times. - request() - function in dev.langchain4j.model.chat.listener.ChatModelErrorContext
- request() - function in dev.langchain4j.model.chat.listener.ChatModelRequestContext
- request() - function in dev.langchain4j.model.chat.listener.ChatModelResponseContext
- required() - function in dev.langchain4j.agent.tool.P
- Whether the parameter is required
- required() - function in dev.langchain4j.agent.tool.ToolParameters
- Returns the required properties of the tool.
- required(java.util.List) - function in dev.langchain4j.agent.tool.ToolParameters.Builder
- Sets the
required
. - REQUIRED - enum entry in dev.langchain4j.model.chat.request.ToolChoice
The language model is required to call one or more tools.
- required() - function in dev.langchain4j.model.chat.request.json.JsonObjectSchema
- required(kotlin.Array) - function in dev.langchain4j.model.chat.request.json.JsonObjectSchema.Builder
- required(java.util.List) - function in dev.langchain4j.model.chat.request.json.JsonObjectSchema.Builder
- RERANKED_SCORE - enum entry in dev.langchain4j.rag.content.ContentMetadata
- ReRankingContentAggregator - class in dev.langchain4j.rag.content.aggregator
- A ContentAggregator that performs re-ranking using a ScoringModel, such as Cohere.
- ReRankingContentAggregator.ReRankingContentAggregatorBuilder - class in dev.langchain4j.rag.content.aggregator.ReRankingContentAggregator
- response() - function in dev.langchain4j.model.chat.listener.ChatModelResponseContext
- Response - class in dev.langchain4j.model.output
- Represents the response from various types of models, including language, chat, embedding, and moderation models.
- RESPONSE_FORMAT_JSON_SCHEMA - enum entry in dev.langchain4j.model.chat.Capability
Indicates whether ChatLanguageModel or StreamingChatLanguageModel supports responding in JSON format according to the specified JSON schema.
- responseFormat() - function in dev.langchain4j.model.chat.request.ChatRequest
- responseFormat(dev.langchain4j.model.chat.request.ResponseFormat) - function in dev.langchain4j.model.chat.request.ChatRequest.Builder
- responseFormat() - function in dev.langchain4j.model.chat.request.ChatRequestParameters
- responseFormat() - function in dev.langchain4j.model.chat.request.DefaultChatRequestParameters
- responseFormat(dev.langchain4j.model.chat.request.ResponseFormat) - function in dev.langchain4j.model.chat.request.DefaultChatRequestParameters.Builder
- responseFormat(dev.langchain4j.model.chat.request.json.JsonSchema) - function in dev.langchain4j.model.chat.request.DefaultChatRequestParameters.Builder
- ResponseFormat - class in dev.langchain4j.model.chat.request
- ResponseFormat.Builder - class in dev.langchain4j.model.chat.request.ResponseFormat
- ResponseFormatType - class in dev.langchain4j.model.chat.request
- results() - function in dev.langchain4j.web.search.WebSearchResults
- Gets the list of organic search results.
- RetrievalAugmentor - class in dev.langchain4j.rag
- Augments the provided ChatMessage with retrieved Contents.
- retrieve(dev.langchain4j.rag.query.Query) - function in dev.langchain4j.rag.content.retriever.ContentRetriever
- Retrieves relevant Contents using a given Query.
- retrieve(dev.langchain4j.rag.query.Query) - function in dev.langchain4j.rag.content.retriever.EmbeddingStoreContentRetriever
- Retrieves relevant Contents using a given Query.
- retrieve(dev.langchain4j.rag.query.Query) - function in dev.langchain4j.rag.content.retriever.WebSearchContentRetriever
- Retrieves relevant Contents using a given Query.
- Retriever - class in dev.langchain4j.retriever
- Interface for retrieving relevant items.
- retrieverToDescription(java.util.Map) - function in dev.langchain4j.rag.query.router.LanguageModelQueryRouter.LanguageModelQueryRouterBuilder
- retryPolicyBuilder() - function in dev.langchain4j.internal.RetryUtils
- This method returns a RetryPolicy.Builder.
- RetryUtils - class in dev.langchain4j.internal
- Utility class for retrying actions.
- RetryUtils.RetryPolicy - class in dev.langchain4j.internal.RetryUtils
- This class encapsulates a retry policy.
- RetryUtils.RetryPolicy.Builder - class in dev.langchain4j.internal.RetryUtils.RetryPolicy
- This class encapsulates a retry policy builder.
- revisedPrompt() - function in dev.langchain4j.data.image.Image
- Get the revised prompt of the image.
- revisedPrompt(java.lang.String) - function in dev.langchain4j.data.image.Image.Builder
- Set the revised prompt of the image.
- right() - function in dev.langchain4j.store.embedding.filter.logical.And
- right() - function in dev.langchain4j.store.embedding.filter.logical.Or
- rootElement() - function in dev.langchain4j.model.chat.request.json.JsonSchema
- rootElement(dev.langchain4j.model.chat.request.json.JsonSchemaElement) - function in dev.langchain4j.model.chat.request.json.JsonSchema.Builder
- route(dev.langchain4j.rag.query.Query) - function in dev.langchain4j.rag.query.router.DefaultQueryRouter
- Routes the given Query to one or multiple ContentRetrievers.
- route(dev.langchain4j.rag.query.Query) - function in dev.langchain4j.rag.query.router.LanguageModelQueryRouter
- Routes the given Query to one or multiple ContentRetrievers.
- route(dev.langchain4j.rag.query.Query) - function in dev.langchain4j.rag.query.router.QueryRouter
- Routes the given Query to one or multiple ContentRetrievers.
- ROUTE_TO_ALL - enum entry in dev.langchain4j.rag.query.router.LanguageModelQueryRouter.FallbackStrategy
In this case, the Query will be routed to all ContentRetrievers.
- runtime(java.lang.String,kotlin.Array) - function in dev.langchain4j.internal.Exceptions
- Constructs an RuntimeException with the given formatted result.