Index

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

ABSOLUTE_DIRECTORY_PATH - Static variable in class dev.langchain4j.data.document.Document
Common metadata key for the absolute path of the directory from which the document was loaded.
AbstractAzureAiSearchEmbeddingStore - Class in dev.langchain4j.store.embedding.azure.search
 
AbstractAzureAiSearchEmbeddingStore() - Constructor for class dev.langchain4j.store.embedding.azure.search.AbstractAzureAiSearchEmbeddingStore
 
AbstractBedrockChatModel<T> - Class in dev.langchain4j.model.bedrock.internal
Bedrock chat model
AbstractBedrockChatModel() - Constructor for class dev.langchain4j.model.bedrock.internal.AbstractBedrockChatModel
 
AbstractBedrockEmbeddingModel<T> - Class in dev.langchain4j.model.bedrock.internal
Abstract bedrock embedding model
AbstractBedrockEmbeddingModel() - Constructor for class dev.langchain4j.model.bedrock.internal.AbstractBedrockEmbeddingModel
 
accessToken(String) - Method in class dev.langchain4j.model.huggingface.HuggingFaceChatModel.Builder
 
accessToken(String) - Method in class dev.langchain4j.model.huggingface.HuggingFaceLanguageModel.Builder
 
accessToken(String) - Method in class dev.langchain4j.model.qianfan.client.chat.ChatTokenResponse.Builder
 
add(Document) - Method in class dev.langchain4j.rag.content.retriever.azure.search.AzureAiSearchContentRetriever
Add Document to the full text search engine.
add(Embedding) - Method in class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore
Add a new embedding to the store.
add(Embedding, TextSegment) - Method in class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore
Add a new embedding to the store.
add(Embedding) - Method in class dev.langchain4j.store.embedding.astradb.AstraDbEmbeddingStore
Adds a given embedding to the store.
add(Embedding) - Method in class dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore.AzureCosmosDbMongoVCoreEmbeddingStore
 
add(Embedding) - Method in class dev.langchain4j.store.embedding.azure.search.AbstractAzureAiSearchEmbeddingStore
Add an embedding to the store.
add(Embedding) - Method in class dev.langchain4j.store.embedding.chroma.ChromaEmbeddingStore
 
add(Embedding) - Method in class dev.langchain4j.store.embedding.elasticsearch.ElasticsearchEmbeddingStore
 
add(Embedding) - Method in interface dev.langchain4j.store.embedding.EmbeddingStore
Adds a given embedding to the store.
add(Embedding) - Method in class dev.langchain4j.store.embedding.infinispan.InfinispanEmbeddingStore
 
add(Embedding) - Method in class dev.langchain4j.store.embedding.inmemory.InMemoryEmbeddingStore
 
add(Embedding) - Method in class dev.langchain4j.store.embedding.milvus.MilvusEmbeddingStore
 
add(Embedding) - Method in class dev.langchain4j.store.embedding.mongodb.MongoDbEmbeddingStore
 
add(Embedding) - Method in class dev.langchain4j.store.embedding.neo4j.Neo4jEmbeddingStore
 
add(Embedding) - Method in class dev.langchain4j.store.embedding.opensearch.OpenSearchEmbeddingStore
 
add(Embedding) - Method in class dev.langchain4j.store.embedding.pgvector.PgVectorEmbeddingStore
Adds a given embedding to the store.
add(Embedding) - Method in class dev.langchain4j.store.embedding.pinecone.PineconeEmbeddingStore
 
add(Embedding) - Method in class dev.langchain4j.store.embedding.qdrant.QdrantEmbeddingStore
 
add(Embedding) - Method in class dev.langchain4j.store.embedding.redis.RedisEmbeddingStore
 
add(Embedding) - Method in class dev.langchain4j.store.embedding.vearch.VearchEmbeddingStore
 
add(Embedding) - Method in class dev.langchain4j.store.embedding.vespa.VespaEmbeddingStore
 
add(Embedding) - Method in class dev.langchain4j.store.embedding.weaviate.WeaviateEmbeddingStore
 
add(Embedding, TextSegment) - Method in class dev.langchain4j.store.embedding.astradb.AstraDbEmbeddingStore
Adds a given embedding and the corresponding content that has been embedded to the store.
add(Embedding, TextSegment) - Method in class dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore.AzureCosmosDbMongoVCoreEmbeddingStore
 
add(Embedding, TextSegment) - Method in class dev.langchain4j.store.embedding.azure.search.AbstractAzureAiSearchEmbeddingStore
Add an embedding and the related content to the store.
add(Embedding, TextSegment) - Method in class dev.langchain4j.store.embedding.chroma.ChromaEmbeddingStore
 
add(Embedding, TextSegment) - Method in class dev.langchain4j.store.embedding.elasticsearch.ElasticsearchEmbeddingStore
 
add(Embedding, TextSegment) - Method in class dev.langchain4j.store.embedding.infinispan.InfinispanEmbeddingStore
 
add(Embedding, TextSegment) - Method in class dev.langchain4j.store.embedding.milvus.MilvusEmbeddingStore
 
add(Embedding, TextSegment) - Method in class dev.langchain4j.store.embedding.mongodb.MongoDbEmbeddingStore
 
add(Embedding, TextSegment) - Method in class dev.langchain4j.store.embedding.neo4j.Neo4jEmbeddingStore
 
add(Embedding, TextSegment) - Method in class dev.langchain4j.store.embedding.opensearch.OpenSearchEmbeddingStore
 
add(Embedding, TextSegment) - Method in class dev.langchain4j.store.embedding.pgvector.PgVectorEmbeddingStore
Adds a given embedding and the corresponding content that has been embedded to the store.
add(Embedding, TextSegment) - Method in class dev.langchain4j.store.embedding.pinecone.PineconeEmbeddingStore
 
add(Embedding, TextSegment) - Method in class dev.langchain4j.store.embedding.qdrant.QdrantEmbeddingStore
 
add(Embedding, TextSegment) - Method in class dev.langchain4j.store.embedding.redis.RedisEmbeddingStore
 
add(Embedding, TextSegment) - Method in class dev.langchain4j.store.embedding.vearch.VearchEmbeddingStore
 
add(Embedding, TextSegment) - Method in class dev.langchain4j.store.embedding.vespa.VespaEmbeddingStore
 
add(Embedding, TextSegment) - Method in class dev.langchain4j.store.embedding.weaviate.WeaviateEmbeddingStore
 
add(Embedding, Embedded) - Method in interface dev.langchain4j.store.embedding.EmbeddingStore
Adds a given embedding and the corresponding content that has been embedded to the store.
add(Embedding, Embedded) - Method in class dev.langchain4j.store.embedding.inmemory.InMemoryEmbeddingStore
 
add(ChatMessage) - Method in class dev.langchain4j.memory.chat.MessageWindowChatMemory
 
add(ChatMessage) - Method in class dev.langchain4j.memory.chat.TokenWindowChatMemory
 
add(ChatMessage) - Method in interface dev.langchain4j.memory.ChatMemory
Adds a message to the chat memory.
add(TextSegment) - Method in class dev.langchain4j.rag.content.retriever.azure.search.AzureAiSearchContentRetriever
Add TextSegment to the full text search engine.
add(TokenUsage) - Method in class dev.langchain4j.model.output.TokenUsage
Adds the token usage of two responses together.
add(Usage) - Method in class dev.langchain4j.model.zhipu.shared.Usage
 
add(String, Embedding) - Method in class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore
Add a new embedding to the store.
add(String) - Method in class dev.langchain4j.rag.content.retriever.azure.search.AzureAiSearchContentRetriever
Add content to the full text search engine.
add(String, Embedding) - Method in class dev.langchain4j.store.embedding.astradb.AstraDbEmbeddingStore
Adds a given embedding to the store.
add(String, Embedding) - Method in class dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore.AzureCosmosDbMongoVCoreEmbeddingStore
 
add(String, Embedding) - Method in class dev.langchain4j.store.embedding.azure.search.AbstractAzureAiSearchEmbeddingStore
Add an embedding to the store.
add(String, Embedding) - Method in class dev.langchain4j.store.embedding.chroma.ChromaEmbeddingStore
 
add(String, Embedding) - Method in class dev.langchain4j.store.embedding.elasticsearch.ElasticsearchEmbeddingStore
 
add(String, Embedding) - Method in interface dev.langchain4j.store.embedding.EmbeddingStore
Adds a given embedding to the store.
add(String, Embedding) - Method in class dev.langchain4j.store.embedding.infinispan.InfinispanEmbeddingStore
 
add(String, Embedding) - Method in class dev.langchain4j.store.embedding.inmemory.InMemoryEmbeddingStore
 
add(String, Embedding) - Method in class dev.langchain4j.store.embedding.milvus.MilvusEmbeddingStore
 
add(String, Embedding) - Method in class dev.langchain4j.store.embedding.mongodb.MongoDbEmbeddingStore
 
add(String, Embedding) - Method in class dev.langchain4j.store.embedding.neo4j.Neo4jEmbeddingStore
 
add(String, Embedding) - Method in class dev.langchain4j.store.embedding.opensearch.OpenSearchEmbeddingStore
 
add(String, Embedding) - Method in class dev.langchain4j.store.embedding.pgvector.PgVectorEmbeddingStore
Adds a given embedding to the store.
add(String, Embedding) - Method in class dev.langchain4j.store.embedding.pinecone.PineconeEmbeddingStore
 
add(String, Embedding) - Method in class dev.langchain4j.store.embedding.qdrant.QdrantEmbeddingStore
 
add(String, Embedding) - Method in class dev.langchain4j.store.embedding.redis.RedisEmbeddingStore
 
add(String, Embedding) - Method in class dev.langchain4j.store.embedding.vearch.VearchEmbeddingStore
 
add(String, Embedding) - Method in class dev.langchain4j.store.embedding.vespa.VespaEmbeddingStore
Adds a new embedding with provided ID to the store.
add(String, Embedding) - Method in class dev.langchain4j.store.embedding.weaviate.WeaviateEmbeddingStore
Adds a new embedding with provided ID to the store.
add(String, Embedding, Embedded) - Method in class dev.langchain4j.store.embedding.inmemory.InMemoryEmbeddingStore
 
add(String, Object) - Method in class dev.langchain4j.data.document.Metadata
Adds a key-value pair to the metadata.
add(String, String) - Method in class dev.langchain4j.data.document.Metadata
Adds a key-value pair to the metadata.
add(List<TextSegment>) - Method in class dev.langchain4j.rag.content.retriever.azure.search.AzureAiSearchContentRetriever
Add a list of TextSegments to the full text search engine.
addAll(List<Embedding>) - Method in class dev.langchain4j.store.embedding.astradb.AstraDbEmbeddingStore
Adds multiple embeddings to the store.
addAll(List<Embedding>) - Method in class dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore.AzureCosmosDbMongoVCoreEmbeddingStore
 
addAll(List<Embedding>) - Method in class dev.langchain4j.store.embedding.azure.search.AbstractAzureAiSearchEmbeddingStore
Add a list of embeddings to the store.
addAll(List<Embedding>) - Method in class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore
Add multiple embeddings as a single action.
addAll(List<Embedding>) - Method in class dev.langchain4j.store.embedding.chroma.ChromaEmbeddingStore
 
addAll(List<Embedding>) - Method in class dev.langchain4j.store.embedding.elasticsearch.ElasticsearchEmbeddingStore
 
addAll(List<Embedding>) - Method in interface dev.langchain4j.store.embedding.EmbeddingStore
Adds multiple embeddings to the store.
addAll(List<Embedding>) - Method in class dev.langchain4j.store.embedding.infinispan.InfinispanEmbeddingStore
 
addAll(List<Embedding>) - Method in class dev.langchain4j.store.embedding.inmemory.InMemoryEmbeddingStore
 
addAll(List<Embedding>) - Method in class dev.langchain4j.store.embedding.milvus.MilvusEmbeddingStore
 
addAll(List<Embedding>) - Method in class dev.langchain4j.store.embedding.mongodb.MongoDbEmbeddingStore
 
addAll(List<Embedding>) - Method in class dev.langchain4j.store.embedding.neo4j.Neo4jEmbeddingStore
 
addAll(List<Embedding>) - Method in class dev.langchain4j.store.embedding.opensearch.OpenSearchEmbeddingStore
 
addAll(List<Embedding>) - Method in class dev.langchain4j.store.embedding.pgvector.PgVectorEmbeddingStore
Adds multiple embeddings to the store.
addAll(List<Embedding>) - Method in class dev.langchain4j.store.embedding.pinecone.PineconeEmbeddingStore
 
addAll(List<Embedding>) - Method in class dev.langchain4j.store.embedding.qdrant.QdrantEmbeddingStore
 
addAll(List<Embedding>) - Method in class dev.langchain4j.store.embedding.redis.RedisEmbeddingStore
 
addAll(List<Embedding>) - Method in class dev.langchain4j.store.embedding.vearch.VearchEmbeddingStore
 
addAll(List<Embedding>) - Method in class dev.langchain4j.store.embedding.vespa.VespaEmbeddingStore
 
addAll(List<Embedding>) - Method in class dev.langchain4j.store.embedding.weaviate.WeaviateEmbeddingStore
 
addAll(List<Embedding>, List<TextSegment>) - Method in class dev.langchain4j.store.embedding.astradb.AstraDbEmbeddingStore
Add multiple embeddings as a single action.
addAll(List<Embedding>, List<TextSegment>) - Method in class dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore.AzureCosmosDbMongoVCoreEmbeddingStore
 
addAll(List<Embedding>, List<TextSegment>) - Method in class dev.langchain4j.store.embedding.azure.search.AbstractAzureAiSearchEmbeddingStore
Add a list of embeddings, and the list of related content, to the store.
addAll(List<Embedding>, List<TextSegment>) - Method in class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore
Add multiple embeddings as a single action.
addAll(List<Embedding>, List<TextSegment>) - Method in class dev.langchain4j.store.embedding.chroma.ChromaEmbeddingStore
 
addAll(List<Embedding>, List<TextSegment>) - Method in class dev.langchain4j.store.embedding.elasticsearch.ElasticsearchEmbeddingStore
 
addAll(List<Embedding>, List<TextSegment>) - Method in class dev.langchain4j.store.embedding.infinispan.InfinispanEmbeddingStore
 
addAll(List<Embedding>, List<TextSegment>) - Method in class dev.langchain4j.store.embedding.milvus.MilvusEmbeddingStore
 
addAll(List<Embedding>, List<TextSegment>) - Method in class dev.langchain4j.store.embedding.mongodb.MongoDbEmbeddingStore
 
addAll(List<Embedding>, List<TextSegment>) - Method in class dev.langchain4j.store.embedding.neo4j.Neo4jEmbeddingStore
 
addAll(List<Embedding>, List<TextSegment>) - Method in class dev.langchain4j.store.embedding.opensearch.OpenSearchEmbeddingStore
 
addAll(List<Embedding>, List<TextSegment>) - Method in class dev.langchain4j.store.embedding.pgvector.PgVectorEmbeddingStore
Adds multiple embeddings and their corresponding contents that have been embedded to the store.
addAll(List<Embedding>, List<TextSegment>) - Method in class dev.langchain4j.store.embedding.pinecone.PineconeEmbeddingStore
 
addAll(List<Embedding>, List<TextSegment>) - Method in class dev.langchain4j.store.embedding.qdrant.QdrantEmbeddingStore
 
addAll(List<Embedding>, List<TextSegment>) - Method in class dev.langchain4j.store.embedding.redis.RedisEmbeddingStore
 
addAll(List<Embedding>, List<TextSegment>) - Method in class dev.langchain4j.store.embedding.vearch.VearchEmbeddingStore
 
addAll(List<Embedding>, List<TextSegment>) - Method in class dev.langchain4j.store.embedding.vespa.VespaEmbeddingStore
 
addAll(List<Embedding>, List<TextSegment>) - Method in class dev.langchain4j.store.embedding.weaviate.WeaviateEmbeddingStore
 
addAll(List<Embedding>, List<Embedded>) - Method in interface dev.langchain4j.store.embedding.EmbeddingStore
Adds multiple embeddings and their corresponding contents that have been embedded to the store.
addAll(List<Embedding>, List<Embedded>) - Method in class dev.langchain4j.store.embedding.inmemory.InMemoryEmbeddingStore
 
addAssistantMessage(String) - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionRequest.Builder
 
addAssistantMessage(String) - Method in class dev.langchain4j.model.zhipu.chat.ChatCompletionRequest.Builder
 
addColumn(String, String) - Method in class dev.langchain4j.store.embedding.filter.builder.sql.TableDefinition.Builder
 
addColumn(String, String, String) - Method in class dev.langchain4j.store.embedding.filter.builder.sql.TableDefinition.Builder
 
addFunction(Function) - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionRequest.Builder
 
addFunctionMessage(String, String) - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionRequest.Builder
 
additionalParams() - Method in class dev.langchain4j.web.search.WebSearchRequest
Get the additional parameters for the search request.
additionalParams(Map<String, Object>) - Method in class dev.langchain4j.web.search.WebSearchRequest.Builder
Set the additional parameters for the search request.
addOptionalParameter(String, JsonSchemaProperty...) - Method in class dev.langchain4j.agent.tool.ToolSpecification.Builder
Adds an optional parameter to the tool.
addOptionalParameter(String, JsonSchemaProperty...) - Method in class dev.langchain4j.model.zhipu.chat.Function.Builder
 
addOptionalParameter(String, JsonSchemaProperty...) - Method in class dev.langchain4j.model.qianfan.client.chat.Function.Builder
 
addOptionalParameter(String, Iterable<JsonSchemaProperty>) - Method in class dev.langchain4j.agent.tool.ToolSpecification.Builder
Adds an optional parameter to the tool.
addParameter(String, JsonSchemaProperty...) - Method in class dev.langchain4j.agent.tool.ToolSpecification.Builder
Adds a parameter to the tool.
addParameter(String, JsonSchemaProperty...) - Method in class dev.langchain4j.model.zhipu.chat.Function.Builder
 
addParameter(String, JsonSchemaProperty...) - Method in class dev.langchain4j.model.qianfan.client.chat.Function.Builder
 
addParameter(String, Iterable<JsonSchemaProperty>) - Method in class dev.langchain4j.agent.tool.ToolSpecification.Builder
Adds a parameter to the tool.
addSystemMessage(String) - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionRequest.Builder
 
addSystemMessage(String) - Method in class dev.langchain4j.model.zhipu.chat.ChatCompletionRequest.Builder
 
addToolMessage(String, String) - Method in class dev.langchain4j.model.zhipu.chat.ChatCompletionRequest.Builder
 
addUserMessage(String) - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionRequest.Builder
 
addUserMessage(String) - Method in class dev.langchain4j.model.zhipu.chat.ChatCompletionRequest.Builder
 
aggregate(Map<Query, Collection<List<Content>>>) - Method in interface dev.langchain4j.rag.content.aggregator.ContentAggregator
Aggregates all Contents retrieved by all ContentRetrievers using all Querys.
aggregate(Map<Query, Collection<List<Content>>>) - Method in class dev.langchain4j.rag.content.aggregator.DefaultContentAggregator
 
aggregate(Map<Query, Collection<List<Content>>>) - Method in class dev.langchain4j.rag.content.aggregator.ReRankingContentAggregator
 
AI - Enum constant in enum class dev.langchain4j.data.message.ChatMessageType
A message from the AI.
aiMessage(ToolExecutionRequest...) - Static method in class dev.langchain4j.data.message.AiMessage
Create a new AiMessage with the given tool execution requests.
aiMessage(String) - Static method in class dev.langchain4j.data.message.AiMessage
Create a new AiMessage with the given text.
aiMessage(List<ToolExecutionRequest>) - Static method in class dev.langchain4j.data.message.AiMessage
Create a new AiMessage with the given tool execution requests.
AiMessage - Class in dev.langchain4j.data.message
Represents a response message from an AI (language model).
AiMessage(String) - Constructor for class dev.langchain4j.data.message.AiMessage
Create a new AiMessage with the given text.
AiMessage(String, List<ToolExecutionRequest>) - Constructor for class dev.langchain4j.data.message.AiMessage
Create a new AiMessage with the given text and tool execution requests.
AiMessage(List<ToolExecutionRequest>) - Constructor for class dev.langchain4j.data.message.AiMessage
Create a new AiMessage with the given tool execution requests.
aiMessageFrom(ChatCompletionResponse) - Static method in class dev.langchain4j.model.openai.InternalOpenAiHelper
 
aiMessageFrom(MistralAiChatCompletionResponse) - Static method in class dev.langchain4j.model.mistralai.DefaultMistralAiHelper
 
aiMessageFrom(ChatCompletionResponse) - Static method in class dev.langchain4j.model.qianfan.InternalQianfanHelper
 
aiServiceClass - Variable in class dev.langchain4j.service.AiServiceContext
 
AiServiceContext - Class in dev.langchain4j.service
 
AiServiceContext(Class<?>) - Constructor for class dev.langchain4j.service.AiServiceContext
 
AiServices<T> - Class in dev.langchain4j.service
AI Services provide a simpler and more flexible alternative to chains.
AiServices(AiServiceContext) - Constructor for class dev.langchain4j.service.AiServices
 
AiServicesFactory - Interface in dev.langchain4j.spi.services
 
AiServiceTokenStream - Class in dev.langchain4j.service
 
AiServiceTokenStream(List<ChatMessage>, AiServiceContext, Object) - Constructor for class dev.langchain4j.service.AiServiceTokenStream
 
ALL - Enum constant in enum class dev.langchain4j.model.bedrock.BedrockCohereChatModel.ReturnLikelihood
 
AmazonS3DocumentLoader - Class in dev.langchain4j.data.document.loader.amazon.s3
 
AmazonS3DocumentLoader(S3Client) - Constructor for class dev.langchain4j.data.document.loader.amazon.s3.AmazonS3DocumentLoader
 
AmazonS3DocumentLoader.Builder - Class in dev.langchain4j.data.document.loader.amazon.s3
 
AmazonS3Source - Class in dev.langchain4j.data.document.source.amazon.s3
 
AmazonS3Source(InputStream, String, String) - Constructor for class dev.langchain4j.data.document.source.amazon.s3.AmazonS3Source
 
AnalogFilm - Enum constant in enum class dev.langchain4j.model.bedrock.BedrockStabilityAIChatModel.StylePreset
 
and(Filter) - Method in interface dev.langchain4j.store.embedding.filter.Filter
 
and(Filter, Filter) - Static method in interface dev.langchain4j.store.embedding.filter.Filter
 
And - Class in dev.langchain4j.store.embedding.filter.logical
 
And(Filter, Filter) - Constructor for class dev.langchain4j.store.embedding.filter.logical.And
 
Anime - Enum constant in enum class dev.langchain4j.model.bedrock.BedrockStabilityAIChatModel.StylePreset
 
AnthropicApi - Interface in dev.langchain4j.model.anthropic.internal.api
 
AnthropicChatModel - Class in dev.langchain4j.model.anthropic
Represents an Anthropic language model with a Messages (chat) API.
AnthropicChatModel.AnthropicChatModelBuilder - Class in dev.langchain4j.model.anthropic
 
AnthropicChatModelBuilder() - Constructor for class dev.langchain4j.model.anthropic.AnthropicChatModel.AnthropicChatModelBuilder
 
AnthropicChatModelName - Enum Class in dev.langchain4j.model.anthropic
See more details here.
AnthropicClaude3HaikuV1 - Enum constant in enum class dev.langchain4j.model.bedrock.BedrockAnthropicMessageChatModel.Types
 
AnthropicClaude3SonnetV1 - Enum constant in enum class dev.langchain4j.model.bedrock.BedrockAnthropicCompletionChatModel.Types
 
AnthropicClaude3SonnetV1 - Enum constant in enum class dev.langchain4j.model.bedrock.BedrockAnthropicMessageChatModel.Types
 
AnthropicClaudeInstantV1 - Enum constant in enum class dev.langchain4j.model.bedrock.BedrockAnthropicCompletionChatModel.Types
 
AnthropicClaudeInstantV1 - Enum constant in enum class dev.langchain4j.model.bedrock.BedrockAnthropicMessageChatModel.Types
 
AnthropicClaudeV1 - Enum constant in enum class dev.langchain4j.model.bedrock.BedrockAnthropicCompletionChatModel.Types
 
AnthropicClaudeV2 - Enum constant in enum class dev.langchain4j.model.bedrock.BedrockAnthropicCompletionChatModel.Types
 
AnthropicClaudeV2 - Enum constant in enum class dev.langchain4j.model.bedrock.BedrockAnthropicMessageChatModel.Types
 
AnthropicClaudeV2_1 - Enum constant in enum class dev.langchain4j.model.bedrock.BedrockAnthropicCompletionChatModel.Types
 
AnthropicClaudeV2_1 - Enum constant in enum class dev.langchain4j.model.bedrock.BedrockAnthropicMessageChatModel.Types
 
AnthropicClient - Class in dev.langchain4j.model.anthropic.internal.client
 
AnthropicClient() - Constructor for class dev.langchain4j.model.anthropic.internal.client.AnthropicClient
 
AnthropicClient.Builder<T,B> - Class in dev.langchain4j.model.anthropic.internal.client
 
AnthropicClientBuilderFactory - Interface in dev.langchain4j.model.anthropic.internal.client
 
AnthropicContent - Class in dev.langchain4j.model.anthropic.internal.api
 
AnthropicContent() - Constructor for class dev.langchain4j.model.anthropic.internal.api.AnthropicContent
 
AnthropicCreateMessageRequest - Class in dev.langchain4j.model.anthropic.internal.api
 
AnthropicCreateMessageRequest() - Constructor for class dev.langchain4j.model.anthropic.internal.api.AnthropicCreateMessageRequest
 
AnthropicCreateMessageResponse - Class in dev.langchain4j.model.anthropic.internal.api
 
AnthropicCreateMessageResponse() - Constructor for class dev.langchain4j.model.anthropic.internal.api.AnthropicCreateMessageResponse
 
AnthropicDelta - Class in dev.langchain4j.model.anthropic.internal.api
 
AnthropicDelta() - Constructor for class dev.langchain4j.model.anthropic.internal.api.AnthropicDelta
 
AnthropicHttpException - Exception Class in dev.langchain4j.model.anthropic.internal.client
 
AnthropicHttpException(Integer, String) - Constructor for exception class dev.langchain4j.model.anthropic.internal.client.AnthropicHttpException
 
AnthropicImageContent - Class in dev.langchain4j.model.anthropic.internal.api
 
AnthropicImageContent(String, String) - Constructor for class dev.langchain4j.model.anthropic.internal.api.AnthropicImageContent
 
AnthropicImageContentSource - Class in dev.langchain4j.model.anthropic.internal.api
 
AnthropicImageContentSource() - Constructor for class dev.langchain4j.model.anthropic.internal.api.AnthropicImageContentSource
 
AnthropicMapper - Class in dev.langchain4j.model.anthropic.internal.mapper
 
AnthropicMapper() - Constructor for class dev.langchain4j.model.anthropic.internal.mapper.AnthropicMapper
 
AnthropicMessage - Class in dev.langchain4j.model.anthropic.internal.api
 
AnthropicMessage() - Constructor for class dev.langchain4j.model.anthropic.internal.api.AnthropicMessage
 
AnthropicMessageContent - Class in dev.langchain4j.model.anthropic.internal.api
 
AnthropicMessageContent(String) - Constructor for class dev.langchain4j.model.anthropic.internal.api.AnthropicMessageContent
 
AnthropicResponseMessage - Class in dev.langchain4j.model.anthropic.internal.api
 
AnthropicResponseMessage() - Constructor for class dev.langchain4j.model.anthropic.internal.api.AnthropicResponseMessage
 
AnthropicRole - Enum Class in dev.langchain4j.model.anthropic.internal.api
 
AnthropicStreamingChatModel - Class in dev.langchain4j.model.anthropic
Represents an Anthropic language model with a Messages (chat) API.
AnthropicStreamingChatModel.AnthropicStreamingChatModelBuilder - Class in dev.langchain4j.model.anthropic
 
AnthropicStreamingChatModelBuilder() - Constructor for class dev.langchain4j.model.anthropic.AnthropicStreamingChatModel.AnthropicStreamingChatModelBuilder
 
AnthropicStreamingData - Class in dev.langchain4j.model.anthropic.internal.api
 
AnthropicStreamingData() - Constructor for class dev.langchain4j.model.anthropic.internal.api.AnthropicStreamingData
 
AnthropicTextContent - Class in dev.langchain4j.model.anthropic.internal.api
 
AnthropicTextContent(String) - Constructor for class dev.langchain4j.model.anthropic.internal.api.AnthropicTextContent
 
AnthropicTool - Class in dev.langchain4j.model.anthropic.internal.api
 
AnthropicTool() - Constructor for class dev.langchain4j.model.anthropic.internal.api.AnthropicTool
 
AnthropicToolResultContent - Class in dev.langchain4j.model.anthropic.internal.api
 
AnthropicToolResultContent(String, String, Boolean) - Constructor for class dev.langchain4j.model.anthropic.internal.api.AnthropicToolResultContent
 
AnthropicToolSchema - Class in dev.langchain4j.model.anthropic.internal.api
 
AnthropicToolSchema() - Constructor for class dev.langchain4j.model.anthropic.internal.api.AnthropicToolSchema
 
AnthropicToolUseContent - Class in dev.langchain4j.model.anthropic.internal.api
 
AnthropicToolUseContent(String, String, Map<String, Object>) - Constructor for class dev.langchain4j.model.anthropic.internal.api.AnthropicToolUseContent
 
AnthropicUsage - Class in dev.langchain4j.model.anthropic.internal.api
 
AnthropicUsage() - Constructor for class dev.langchain4j.model.anthropic.internal.api.AnthropicUsage
 
ANY - Enum constant in enum class dev.langchain4j.model.mistralai.MistralAiToolChoiceName
 
ApachePdfBoxDocumentParser - Class in dev.langchain4j.data.document.parser.apache.pdfbox
Parses PDF file into a Document using Apache PDFBox library
ApachePdfBoxDocumentParser() - Constructor for class dev.langchain4j.data.document.parser.apache.pdfbox.ApachePdfBoxDocumentParser
 
ApachePoiDocumentParser - Class in dev.langchain4j.data.document.parser.apache.poi
Parses Microsoft Office file into a Document using Apache POI library.
ApachePoiDocumentParser() - Constructor for class dev.langchain4j.data.document.parser.apache.poi.ApachePoiDocumentParser
 
ApacheTikaDocumentParser - Class in dev.langchain4j.data.document.parser.apache.tika
Parses files into Documents using Apache Tika library, automatically detecting the file format.
ApacheTikaDocumentParser() - Constructor for class dev.langchain4j.data.document.parser.apache.tika.ApacheTikaDocumentParser
Creates an instance of an ApacheTikaDocumentParser with the default Tika components.
ApacheTikaDocumentParser(Supplier<Parser>, Supplier<ContentHandler>, Supplier<Metadata>, Supplier<ParseContext>) - Constructor for class dev.langchain4j.data.document.parser.apache.tika.ApacheTikaDocumentParser
Creates an instance of an ApacheTikaDocumentParser with the provided suppliers for Tika components.
ApacheTikaDocumentParser(Parser, ContentHandler, Metadata, ParseContext) - Constructor for class dev.langchain4j.data.document.parser.apache.tika.ApacheTikaDocumentParser
Deprecated.
Use the constructor with suppliers for Tika components if you intend to use this parser for multiple files.
ApacheTikaDocumentParserFactory - Class in dev.langchain4j.data.document.parser.apache.tika
 
ApacheTikaDocumentParserFactory() - Constructor for class dev.langchain4j.data.document.parser.apache.tika.ApacheTikaDocumentParserFactory
 
apiKey - Variable in class dev.langchain4j.model.anthropic.internal.client.AnthropicClient.Builder
 
apiKey - Variable in class dev.langchain4j.model.mistralai.MistralAiClient.Builder
 
apiKey() - Method in interface dev.langchain4j.model.huggingface.spi.HuggingFaceClientFactory.Input
 
apiKey(String) - Method in class dev.langchain4j.model.anthropic.internal.client.AnthropicClient.Builder
 
apiKey(String) - Method in class dev.langchain4j.model.azure.AzureOpenAiChatModel.Builder
Sets the Azure OpenAI API key.
apiKey(String) - Method in class dev.langchain4j.model.azure.AzureOpenAiEmbeddingModel.Builder
Sets the Azure OpenAI API key.
apiKey(String) - Method in class dev.langchain4j.model.azure.AzureOpenAiImageModel.Builder
Sets the Azure OpenAI API key.
apiKey(String) - Method in class dev.langchain4j.model.azure.AzureOpenAiLanguageModel.Builder
Sets the Azure OpenAI API key.
apiKey(String) - Method in class dev.langchain4j.model.azure.AzureOpenAiStreamingChatModel.Builder
Sets the Azure OpenAI API key.
apiKey(String) - Method in class dev.langchain4j.model.azure.AzureOpenAiStreamingLanguageModel.Builder
Sets the Azure OpenAI API key.
apiKey(String) - Method in class dev.langchain4j.model.mistralai.MistralAiClient.Builder
 
apiKey(String) - Method in class dev.langchain4j.model.qianfan.client.QianfanClient.Builder
 
apiKey(String) - Method in class dev.langchain4j.model.zhipu.ZhipuAiClient.Builder
 
apiKey(String) - Method in class dev.langchain4j.rag.content.retriever.azure.search.AzureAiSearchContentRetriever.Builder
Sets the Azure AI Search API key.
apiKey(String) - Method in class dev.langchain4j.store.embedding.azure.search.AzureAiSearchEmbeddingStore.Builder
Sets the Azure AI Search API key.
apiKey(String) - Method in class dev.langchain4j.store.embedding.elasticsearch.ElasticsearchEmbeddingStore.Builder
 
apiKey(String) - Method in class dev.langchain4j.store.embedding.opensearch.OpenSearchEmbeddingStore.Builder
 
apiKey(String) - Method in class dev.langchain4j.store.embedding.pinecone.PineconeEmbeddingStore.Builder
 
apiKey(String) - Method in class dev.langchain4j.store.embedding.qdrant.QdrantEmbeddingStore.Builder
 
apiUrl(String) - Method in class dev.langchain4j.data.document.loader.github.GitHubDocumentLoader.Builder
 
append(GenerationResult) - Method in class dev.langchain4j.model.dashscope.QwenStreamingResponseBuilder
 
append(MultiModalConversationResult) - Method in class dev.langchain4j.model.dashscope.QwenStreamingResponseBuilder
 
append(ChatCompletionResponse) - Method in class dev.langchain4j.model.openai.OpenAiStreamingResponseBuilder
 
append(CompletionResponse) - Method in class dev.langchain4j.model.openai.OpenAiStreamingResponseBuilder
 
append(ChatCompletionResponse) - Method in class dev.langchain4j.model.qianfan.client.QianfanStreamingResponseBuilder
 
append(CompletionResponse) - Method in class dev.langchain4j.model.qianfan.client.QianfanStreamingResponseBuilder
 
applicationName(String) - Method in class dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore.AzureCosmosDbMongoVCoreEmbeddingStore.Builder
 
apply(Object) - Method in class dev.langchain4j.model.input.PromptTemplate
Applies a value to a template containing a single variable.
apply(Map<String, Object>) - Method in class dev.langchain4j.model.input.PromptTemplate
Applies multiple values to a template containing multiple variables.
AQUILACHAT_7B - Enum constant in enum class dev.langchain4j.model.qianfan.QianfanChatModelNameEnum
 
areNotNullOrBlank(String...) - Static method in class dev.langchain4j.internal.Utils
Are all the given strings not null and not blank?
argument(ToolExecutionRequest, String) - Static method in class dev.langchain4j.agent.tool.ToolExecutionRequestUtil
Get an argument value from ToolExecutionRequest.
argument(String) - Method in class dev.langchain4j.model.qianfan.client.chat.FunctionCall
 
arguments() - Method in class dev.langchain4j.agent.tool.ToolExecutionRequest
Returns the arguments of the tool.
arguments() - Method in class dev.langchain4j.model.qianfan.client.chat.FunctionCall
 
arguments(String) - Method in class dev.langchain4j.agent.tool.ToolExecutionRequest.Builder
Sets the arguments.
arguments(String) - Method in class dev.langchain4j.model.qianfan.client.chat.FunctionCall.Builder
 
arguments(String) - Method in class dev.langchain4j.model.zhipu.chat.FunctionCall.Builder
 
argumentsAsMap() - Method in class dev.langchain4j.model.qianfan.client.chat.FunctionCall
 
argumentsAsMap(String) - Static method in class dev.langchain4j.agent.tool.ToolExecutionRequestUtil
Convert arguments to map.
ARRAY - Static variable in class dev.langchain4j.agent.tool.JsonSchemaProperty
A property with key "type" and value "array".
ARRAY - Static variable in class dev.langchain4j.model.qianfan.client.chat.JsonSchemaProperty
 
Artifact() - Constructor for class dev.langchain4j.model.bedrock.BedrockStabilityAIChatModelResponse.Artifact
 
asMap() - Method in class dev.langchain4j.data.document.Metadata
Get a copy of the metadata as a map of key-value pairs.
ASSISTANT - Enum constant in enum class dev.langchain4j.model.anthropic.internal.api.AnthropicRole
 
ASSISTANT - Enum constant in enum class dev.langchain4j.model.mistralai.MistralAiRole
 
ASSISTANT - Enum constant in enum class dev.langchain4j.model.qianfan.client.chat.Role
 
ASSISTANT - Enum constant in enum class dev.langchain4j.model.zhipu.chat.Role
 
assistantMessage(String) - Static method in class dev.langchain4j.model.qianfan.client.chat.Message
 
AssistantMessage - Class in dev.langchain4j.model.zhipu.chat
 
AssistantMessage.Builder - Class in dev.langchain4j.model.zhipu.chat
 
AstraDbEmbeddingStore - Class in dev.langchain4j.store.embedding.astradb
Implementation of EmbeddingStore using AstraDB.
AstraDbEmbeddingStore(AstraDBCollection) - Constructor for class dev.langchain4j.store.embedding.astradb.AstraDbEmbeddingStore
Initialization of the store with an EXISTING collection.
AstraDbEmbeddingStore(AstraDBCollection, int, int) - Constructor for class dev.langchain4j.store.embedding.astradb.AstraDbEmbeddingStore
Initialization of the store with an EXISTING collection.
AsyncRequestExecutor<Response,ResponseContent> - Class in dev.langchain4j.model.qianfan.client
 
AsyncResponseHandling - Interface in dev.langchain4j.model.qianfan.client
 
Attribute() - Constructor for class dev.langchain4j.store.embedding.azure.search.Document.Metadata.Attribute
 
augment(UserMessage, Metadata) - Method in class dev.langchain4j.rag.DefaultRetrievalAugmentor
 
augment(UserMessage, Metadata) - Method in interface dev.langchain4j.rag.RetrievalAugmentor
Augments the provided UserMessage with retrieved content.
AuthorizationHeaderInjector - Class in dev.langchain4j.model.qianfan.client
 
AuthorizationHeaderInjector(String) - Constructor for class dev.langchain4j.model.qianfan.client.AuthorizationHeaderInjector
 
AUTO - Enum constant in enum class dev.langchain4j.data.message.ImageContent.DetailLevel
Auto detail.
AUTO - Enum constant in enum class dev.langchain4j.model.mistralai.MistralAiToolChoiceName
 
AUTO - Enum constant in enum class dev.langchain4j.model.zhipu.chat.ToolChoiceMode
 
availableModels() - Method in class dev.langchain4j.model.mistralai.MistralAiModels
Retrieves the list of all available models.
availableModels() - Method in class dev.langchain4j.model.ollama.OllamaModels
 
awsCredentials(AwsCredentials) - Method in class dev.langchain4j.data.document.loader.amazon.s3.AmazonS3DocumentLoader.Builder
Set the AWS credentials.
AwsCredentials - Class in dev.langchain4j.data.document.loader.amazon.s3
Represents an AWS credentials object, including access key ID, secret access key, and optional session token.
AwsCredentials(String, String) - Constructor for class dev.langchain4j.data.document.loader.amazon.s3.AwsCredentials
 
AwsCredentials(String, String, String) - Constructor for class dev.langchain4j.data.document.loader.amazon.s3.AwsCredentials
 
AzureAiSearchContentRetriever - Class in dev.langchain4j.rag.content.retriever.azure.search
Represents Azure AI Search Service as a ContentRetriever.
AzureAiSearchContentRetriever(String, AzureKeyCredential, TokenCredential, boolean, int, SearchIndex, EmbeddingModel, int, double, AzureAiSearchQueryType) - Constructor for class dev.langchain4j.rag.content.retriever.azure.search.AzureAiSearchContentRetriever
 
AzureAiSearchContentRetriever.Builder - Class in dev.langchain4j.rag.content.retriever.azure.search
 
AzureAiSearchEmbeddingStore - Class in dev.langchain4j.store.embedding.azure.search
Azure AI Search EmbeddingStore Implementation
AzureAiSearchEmbeddingStore(String, AzureKeyCredential, boolean, int) - Constructor for class dev.langchain4j.store.embedding.azure.search.AzureAiSearchEmbeddingStore
 
AzureAiSearchEmbeddingStore(String, AzureKeyCredential, boolean, SearchIndex) - Constructor for class dev.langchain4j.store.embedding.azure.search.AzureAiSearchEmbeddingStore
 
AzureAiSearchEmbeddingStore(String, TokenCredential, boolean, int) - Constructor for class dev.langchain4j.store.embedding.azure.search.AzureAiSearchEmbeddingStore
 
AzureAiSearchEmbeddingStore(String, TokenCredential, boolean, SearchIndex) - Constructor for class dev.langchain4j.store.embedding.azure.search.AzureAiSearchEmbeddingStore
 
AzureAiSearchEmbeddingStore.Builder - Class in dev.langchain4j.store.embedding.azure.search
 
AzureAiSearchQueryType - Enum Class in dev.langchain4j.rag.content.retriever.azure.search
 
AzureAiSearchRuntimeException - Exception Class in dev.langchain4j.store.embedding.azure.search
 
AzureAiSearchRuntimeException() - Constructor for exception class dev.langchain4j.store.embedding.azure.search.AzureAiSearchRuntimeException
 
AzureAiSearchRuntimeException(String) - Constructor for exception class dev.langchain4j.store.embedding.azure.search.AzureAiSearchRuntimeException
 
AzureAiSearchRuntimeException(String, Throwable) - Constructor for exception class dev.langchain4j.store.embedding.azure.search.AzureAiSearchRuntimeException
 
AzureBlobStorageDocumentLoader - Class in dev.langchain4j.data.document.loader.azure.storage.blob
 
AzureBlobStorageDocumentLoader(BlobServiceClient) - Constructor for class dev.langchain4j.data.document.loader.azure.storage.blob.AzureBlobStorageDocumentLoader
 
AzureBlobStorageSource - Class in dev.langchain4j.data.document.source.azure.storage.blob
 
AzureBlobStorageSource(InputStream, String, String, String, BlobProperties) - Constructor for class dev.langchain4j.data.document.source.azure.storage.blob.AzureBlobStorageSource
 
AzureCosmosDbMongoVCoreDocument - Class in dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore
 
AzureCosmosDbMongoVCoreDocument() - Constructor for class dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore.AzureCosmosDbMongoVCoreDocument
 
AzureCosmosDbMongoVCoreEmbeddingStore - Class in dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore
Represents an Azure CosmosDB Mongo vCore as an embedding store.
AzureCosmosDbMongoVCoreEmbeddingStore(MongoClient, String, String, String, String, String, CreateCollectionOptions, Boolean, String, Integer, Integer, Integer, Integer, Integer) - Constructor for class dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore.AzureCosmosDbMongoVCoreEmbeddingStore
 
AzureCosmosDbMongoVCoreEmbeddingStore.Builder - Class in dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore
 
AzureCosmosDbMongoVCoreEmbeddingStore.SimilarityMetric - Enum Class in dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore
 
AzureCosmosDbMongoVCoreEmbeddingStore.VectorIndexType - Enum Class in dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore
 
AzureCosmosDbMongoVCoreMatchedDocument - Class in dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore
 
AzureCosmosDbMongoVCoreMatchedDocument() - Constructor for class dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore.AzureCosmosDbMongoVCoreMatchedDocument
 
AzureOpenAiChatModel - Class in dev.langchain4j.model.azure
Represents an OpenAI language model, hosted on Azure, that has a chat completion interface, such as gpt-3.5-turbo.
AzureOpenAiChatModel(OpenAIClient, String, Tokenizer, Integer, Double, Double, Map<String, Integer>, String, Integer, List<String>, Double, Double, List<AzureChatExtensionConfiguration>, AzureChatEnhancementConfiguration, Long, ChatCompletionsResponseFormat) - Constructor for class dev.langchain4j.model.azure.AzureOpenAiChatModel
 
AzureOpenAiChatModel(String, String, KeyCredential, String, Tokenizer, Integer, Double, Double, Map<String, Integer>, String, Integer, List<String>, Double, Double, List<AzureChatExtensionConfiguration>, AzureChatEnhancementConfiguration, Long, ChatCompletionsResponseFormat, Duration, Integer, ProxyOptions, boolean) - Constructor for class dev.langchain4j.model.azure.AzureOpenAiChatModel
 
AzureOpenAiChatModel(String, String, TokenCredential, String, Tokenizer, Integer, Double, Double, Map<String, Integer>, String, Integer, List<String>, Double, Double, List<AzureChatExtensionConfiguration>, AzureChatEnhancementConfiguration, Long, ChatCompletionsResponseFormat, Duration, Integer, ProxyOptions, boolean) - Constructor for class dev.langchain4j.model.azure.AzureOpenAiChatModel
 
AzureOpenAiChatModel(String, String, String, String, Tokenizer, Integer, Double, Double, Map<String, Integer>, String, Integer, List<String>, Double, Double, List<AzureChatExtensionConfiguration>, AzureChatEnhancementConfiguration, Long, ChatCompletionsResponseFormat, Duration, Integer, ProxyOptions, boolean) - Constructor for class dev.langchain4j.model.azure.AzureOpenAiChatModel
 
AzureOpenAiChatModel.Builder - Class in dev.langchain4j.model.azure
 
AzureOpenAiChatModelBuilderFactory - Interface in dev.langchain4j.model.azure.spi
A factory for building AzureOpenAiChatModel.Builder instances.
AzureOpenAiEmbeddingModel - Class in dev.langchain4j.model.azure
Represents an OpenAI embedding model, hosted on Azure, such as text-embedding-ada-002.
AzureOpenAiEmbeddingModel(String, String, KeyCredential, String, Tokenizer, Duration, Integer, ProxyOptions, boolean) - Constructor for class dev.langchain4j.model.azure.AzureOpenAiEmbeddingModel
 
AzureOpenAiEmbeddingModel(String, String, TokenCredential, String, Tokenizer, Duration, Integer, ProxyOptions, boolean) - Constructor for class dev.langchain4j.model.azure.AzureOpenAiEmbeddingModel
 
AzureOpenAiEmbeddingModel(String, String, String, String, Tokenizer, Duration, Integer, ProxyOptions, boolean) - Constructor for class dev.langchain4j.model.azure.AzureOpenAiEmbeddingModel
 
AzureOpenAiEmbeddingModel.Builder - Class in dev.langchain4j.model.azure
 
AzureOpenAiEmbeddingModelBuilderFactory - Interface in dev.langchain4j.model.azure.spi
A factory for building AzureOpenAiEmbeddingModel.Builder instances.
AzureOpenAiImageModel - Class in dev.langchain4j.model.azure
Represents an OpenAI image model, hosted on Azure, such as dall-e-3.
AzureOpenAiImageModel(OpenAIClient, String, String, String, String, String, String) - Constructor for class dev.langchain4j.model.azure.AzureOpenAiImageModel
 
AzureOpenAiImageModel(String, String, KeyCredential, String, String, String, String, String, String, Duration, Integer, ProxyOptions, boolean) - Constructor for class dev.langchain4j.model.azure.AzureOpenAiImageModel
 
AzureOpenAiImageModel(String, String, TokenCredential, String, String, String, String, String, String, Duration, Integer, ProxyOptions, boolean) - Constructor for class dev.langchain4j.model.azure.AzureOpenAiImageModel
 
AzureOpenAiImageModel(String, String, String, String, String, String, String, String, String, Duration, Integer, ProxyOptions, boolean) - Constructor for class dev.langchain4j.model.azure.AzureOpenAiImageModel
 
AzureOpenAiImageModel.Builder - Class in dev.langchain4j.model.azure
 
AzureOpenAiImageModelBuilderFactory - Interface in dev.langchain4j.model.azure.spi
A factory for building AzureOpenAiImageModel.Builder instances.
AzureOpenAiLanguageModel - Class in dev.langchain4j.model.azure
Represents an OpenAI language model, hosted on Azure, such as gpt-3.5-turbo-instruct.
AzureOpenAiLanguageModel(OpenAIClient, String, Tokenizer, Integer, Double, Double, Map<String, Integer>, String, Integer, Integer, Boolean, List<String>, Double, Double, Integer) - Constructor for class dev.langchain4j.model.azure.AzureOpenAiLanguageModel
 
AzureOpenAiLanguageModel(String, String, KeyCredential, String, Tokenizer, Integer, Double, Double, Map<String, Integer>, String, Integer, Integer, Boolean, List<String>, Double, Double, Integer, Duration, Integer, ProxyOptions, boolean) - Constructor for class dev.langchain4j.model.azure.AzureOpenAiLanguageModel
 
AzureOpenAiLanguageModel(String, String, TokenCredential, String, Tokenizer, Integer, Double, Double, Map<String, Integer>, String, Integer, Integer, Boolean, List<String>, Double, Double, Integer, Duration, Integer, ProxyOptions, boolean) - Constructor for class dev.langchain4j.model.azure.AzureOpenAiLanguageModel
 
AzureOpenAiLanguageModel(String, String, String, String, Tokenizer, Integer, Double, Double, Map<String, Integer>, String, Integer, Integer, Boolean, List<String>, Double, Double, Integer, Duration, Integer, ProxyOptions, boolean) - Constructor for class dev.langchain4j.model.azure.AzureOpenAiLanguageModel
 
AzureOpenAiLanguageModel.Builder - Class in dev.langchain4j.model.azure
 
AzureOpenAiLanguageModelBuilderFactory - Interface in dev.langchain4j.model.azure.spi
A factory for building AzureOpenAiLanguageModel.Builder instances.
AzureOpenAiModelName - Class in dev.langchain4j.model.azure
 
AzureOpenAiModelName() - Constructor for class dev.langchain4j.model.azure.AzureOpenAiModelName
 
AzureOpenAiStreamingChatModel - Class in dev.langchain4j.model.azure
Represents an OpenAI language model, hosted on Azure, that has a chat completion interface, such as gpt-3.5-turbo.
AzureOpenAiStreamingChatModel(OpenAIClient, OpenAIAsyncClient, String, Tokenizer, Integer, Double, Double, Map<String, Integer>, String, Integer, List<String>, Double, Double, List<AzureChatExtensionConfiguration>, AzureChatEnhancementConfiguration, Long, ChatCompletionsResponseFormat) - Constructor for class dev.langchain4j.model.azure.AzureOpenAiStreamingChatModel
 
AzureOpenAiStreamingChatModel(String, String, KeyCredential, String, Tokenizer, Integer, Double, Double, Map<String, Integer>, String, Integer, List<String>, Double, Double, List<AzureChatExtensionConfiguration>, AzureChatEnhancementConfiguration, Long, ChatCompletionsResponseFormat, Duration, Integer, ProxyOptions, boolean, boolean) - Constructor for class dev.langchain4j.model.azure.AzureOpenAiStreamingChatModel
 
AzureOpenAiStreamingChatModel(String, String, TokenCredential, String, Tokenizer, Integer, Double, Double, Map<String, Integer>, String, Integer, List<String>, Double, Double, List<AzureChatExtensionConfiguration>, AzureChatEnhancementConfiguration, Long, ChatCompletionsResponseFormat, Duration, Integer, ProxyOptions, boolean, boolean) - Constructor for class dev.langchain4j.model.azure.AzureOpenAiStreamingChatModel
 
AzureOpenAiStreamingChatModel(String, String, String, String, Tokenizer, Integer, Double, Double, Map<String, Integer>, String, Integer, List<String>, Double, Double, List<AzureChatExtensionConfiguration>, AzureChatEnhancementConfiguration, Long, ChatCompletionsResponseFormat, Duration, Integer, ProxyOptions, boolean, boolean) - Constructor for class dev.langchain4j.model.azure.AzureOpenAiStreamingChatModel
 
AzureOpenAiStreamingChatModel.Builder - Class in dev.langchain4j.model.azure
 
AzureOpenAiStreamingChatModelBuilderFactory - Interface in dev.langchain4j.model.azure.spi
A factory for building AzureOpenAiStreamingChatModel.Builder instances.
AzureOpenAiStreamingLanguageModel - Class in dev.langchain4j.model.azure
Represents an OpenAI language model, hosted on Azure, such as gpt-3.5-turbo-instruct.
AzureOpenAiStreamingLanguageModel(OpenAIClient, String, Tokenizer, Integer, Double, Double, Map<String, Integer>, String, Integer, Integer, Boolean, List<String>, Double, Double) - Constructor for class dev.langchain4j.model.azure.AzureOpenAiStreamingLanguageModel
 
AzureOpenAiStreamingLanguageModel(String, String, KeyCredential, String, Tokenizer, Integer, Double, Double, Map<String, Integer>, String, Integer, Integer, Boolean, List<String>, Double, Double, Duration, Integer, ProxyOptions, boolean) - Constructor for class dev.langchain4j.model.azure.AzureOpenAiStreamingLanguageModel
 
AzureOpenAiStreamingLanguageModel(String, String, TokenCredential, String, Tokenizer, Integer, Double, Double, Map<String, Integer>, String, Integer, Integer, Boolean, List<String>, Double, Double, Duration, Integer, ProxyOptions, boolean) - Constructor for class dev.langchain4j.model.azure.AzureOpenAiStreamingLanguageModel
 
AzureOpenAiStreamingLanguageModel(String, String, String, String, Tokenizer, Integer, Double, Double, Map<String, Integer>, String, Integer, Integer, Boolean, List<String>, Double, Double, Duration, Integer, ProxyOptions, boolean) - Constructor for class dev.langchain4j.model.azure.AzureOpenAiStreamingLanguageModel
 
AzureOpenAiStreamingLanguageModel.Builder - Class in dev.langchain4j.model.azure
 
AzureOpenAiStreamingLanguageModelBuilderFactory - Interface in dev.langchain4j.model.azure.spi
A factory for building AzureOpenAiStreamingLanguageModel.Builder instances.

B

backoffExp(double) - Method in class dev.langchain4j.internal.RetryUtils.RetryPolicy.Builder
Sets the backoff exponent.
banRound(Integer) - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionResponse.Builder
 
base64Data() - Method in class dev.langchain4j.data.image.Image
Get the base64 data of the image.
base64Data(String) - Method in class dev.langchain4j.data.image.Image.Builder
Set the base64 data of the image.
baseUrl - Variable in class dev.langchain4j.model.anthropic.internal.client.AnthropicClient.Builder
 
baseUrl - Variable in class dev.langchain4j.model.mistralai.MistralAiClient.Builder
 
baseUrl(String) - Method in class dev.langchain4j.model.anthropic.internal.client.AnthropicClient.Builder
 
baseUrl(String) - Method in class dev.langchain4j.model.mistralai.MistralAiClient.Builder
 
baseUrl(String) - Method in class dev.langchain4j.model.qianfan.client.QianfanClient.Builder
 
baseUrl(String) - Method in class dev.langchain4j.model.zhipu.ZhipuAiClient.Builder
 
baseUrl(String) - Method in class dev.langchain4j.store.embedding.chroma.ChromaEmbeddingStore.Builder
 
baseUrl(String) - Method in class dev.langchain4j.store.embedding.vearch.VearchEmbeddingStore.Builder
 
BedrockAI21LabsChatModel - Class in dev.langchain4j.model.bedrock
 
BedrockAI21LabsChatModel() - Constructor for class dev.langchain4j.model.bedrock.BedrockAI21LabsChatModel
 
BedrockAI21LabsChatModel.Types - Enum Class in dev.langchain4j.model.bedrock
Bedrock AI21 Labs model ids
BedrockAI21LabsChatModelResponse - Class in dev.langchain4j.model.bedrock
Bedrock AI21 Labs model invoke response
BedrockAI21LabsChatModelResponse() - Constructor for class dev.langchain4j.model.bedrock.BedrockAI21LabsChatModelResponse
 
BedrockAI21LabsChatModelResponse.Completion - Class in dev.langchain4j.model.bedrock
 
BedrockAI21LabsChatModelResponse.CompletionReason - Class in dev.langchain4j.model.bedrock
 
BedrockAI21LabsChatModelResponse.GeneratedToken - Class in dev.langchain4j.model.bedrock
 
BedrockAI21LabsChatModelResponse.Prompt - Class in dev.langchain4j.model.bedrock
 
BedrockAI21LabsChatModelResponse.TextRange - Class in dev.langchain4j.model.bedrock
 
BedrockAI21LabsChatModelResponse.Token - Class in dev.langchain4j.model.bedrock
 
BedrockAnthropicCompletionChatModel - Class in dev.langchain4j.model.bedrock
 
BedrockAnthropicCompletionChatModel() - Constructor for class dev.langchain4j.model.bedrock.BedrockAnthropicCompletionChatModel
 
BedrockAnthropicCompletionChatModel.Types - Enum Class in dev.langchain4j.model.bedrock
Bedrock Anthropic model ids
BedrockAnthropicCompletionChatModelResponse - Class in dev.langchain4j.model.bedrock
Bedrock Anthropic Text Completions API Invoke response ...
BedrockAnthropicCompletionChatModelResponse() - Constructor for class dev.langchain4j.model.bedrock.BedrockAnthropicCompletionChatModelResponse
 
BedrockAnthropicContent - Class in dev.langchain4j.model.bedrock
 
BedrockAnthropicContent(String, BedrockAnthropicImageSource) - Constructor for class dev.langchain4j.model.bedrock.BedrockAnthropicContent
 
BedrockAnthropicContent(String, String) - Constructor for class dev.langchain4j.model.bedrock.BedrockAnthropicContent
 
BedrockAnthropicImageSource - Class in dev.langchain4j.model.bedrock
 
BedrockAnthropicImageSource() - Constructor for class dev.langchain4j.model.bedrock.BedrockAnthropicImageSource
 
BedrockAnthropicMessage - Class in dev.langchain4j.model.bedrock
 
BedrockAnthropicMessage() - Constructor for class dev.langchain4j.model.bedrock.BedrockAnthropicMessage
 
BedrockAnthropicMessageChatModel - Class in dev.langchain4j.model.bedrock
 
BedrockAnthropicMessageChatModel() - Constructor for class dev.langchain4j.model.bedrock.BedrockAnthropicMessageChatModel
 
BedrockAnthropicMessageChatModel.Types - Enum Class in dev.langchain4j.model.bedrock
Bedrock Anthropic model ids
BedrockAnthropicMessageChatModelResponse - Class in dev.langchain4j.model.bedrock
Bedrock Anthropic Messages API Invoke response ...
BedrockAnthropicMessageChatModelResponse() - Constructor for class dev.langchain4j.model.bedrock.BedrockAnthropicMessageChatModelResponse
 
BedrockAnthropicMessageChatModelResponse.BedrockAnthropicUsage - Class in dev.langchain4j.model.bedrock
 
BedrockAnthropicUsage() - Constructor for class dev.langchain4j.model.bedrock.BedrockAnthropicMessageChatModelResponse.BedrockAnthropicUsage
 
BedrockChatModelResponse - Interface in dev.langchain4j.model.bedrock.internal
Bedrock Chat model response
BedrockCohereChatModel - Class in dev.langchain4j.model.bedrock
 
BedrockCohereChatModel() - Constructor for class dev.langchain4j.model.bedrock.BedrockCohereChatModel
 
BedrockCohereChatModel.ReturnLikelihood - Enum Class in dev.langchain4j.model.bedrock
 
BedrockCohereChatModel.Types - Enum Class in dev.langchain4j.model.bedrock
Bedrock Cohere model ids
BedrockCohereChatModelResponse - Class in dev.langchain4j.model.bedrock
Bedrock Cohere model invoke response
BedrockCohereChatModelResponse() - Constructor for class dev.langchain4j.model.bedrock.BedrockCohereChatModelResponse
 
BedrockCohereChatModelResponse.Generation - Class in dev.langchain4j.model.bedrock
 
BedrockCohereChatModelResponse.TokenLikelihood - Class in dev.langchain4j.model.bedrock
 
BedrockEmbeddingResponse - Interface in dev.langchain4j.model.bedrock.internal
Bedrock embedding response
BedrockLlamaChatModel - Class in dev.langchain4j.model.bedrock
 
BedrockLlamaChatModel() - Constructor for class dev.langchain4j.model.bedrock.BedrockLlamaChatModel
 
BedrockLlamaChatModel.Types - Enum Class in dev.langchain4j.model.bedrock
Bedrock Llama model ids
BedrockLlamaChatModelResponse - Class in dev.langchain4j.model.bedrock
Bedrock Llama Invoke response
BedrockLlamaChatModelResponse() - Constructor for class dev.langchain4j.model.bedrock.BedrockLlamaChatModelResponse
 
BedrockMistralAiChatModel - Class in dev.langchain4j.model.bedrock
 
BedrockMistralAiChatModel() - Constructor for class dev.langchain4j.model.bedrock.BedrockMistralAiChatModel
 
BedrockMistralAiChatModel.Types - Enum Class in dev.langchain4j.model.bedrock
Bedrock Mistral model ids
BedrockStabilityAIChatModel - Class in dev.langchain4j.model.bedrock
Bedrock stability AI model This is for image generation.
BedrockStabilityAIChatModel() - Constructor for class dev.langchain4j.model.bedrock.BedrockStabilityAIChatModel
 
BedrockStabilityAIChatModel.StylePreset - Enum Class in dev.langchain4j.model.bedrock
 
BedrockStabilityAIChatModel.Types - Enum Class in dev.langchain4j.model.bedrock
Bedrock Amazon Stability AI model ids
BedrockStabilityAIChatModelResponse - Class in dev.langchain4j.model.bedrock
Bedrock Anthropic Invoke response
BedrockStabilityAIChatModelResponse() - Constructor for class dev.langchain4j.model.bedrock.BedrockStabilityAIChatModelResponse
 
BedrockStabilityAIChatModelResponse.Artifact - Class in dev.langchain4j.model.bedrock
 
BedrockTitanChatModel - Class in dev.langchain4j.model.bedrock
Bedrock Amazon Titan chat model
BedrockTitanChatModel() - Constructor for class dev.langchain4j.model.bedrock.BedrockTitanChatModel
 
BedrockTitanChatModel.Types - Enum Class in dev.langchain4j.model.bedrock
Bedrock Amazon Titan model ids
BedrockTitanChatModelResponse - Class in dev.langchain4j.model.bedrock
Bedrock Titan Chat response
BedrockTitanChatModelResponse() - Constructor for class dev.langchain4j.model.bedrock.BedrockTitanChatModelResponse
 
BedrockTitanChatModelResponse.Result - Class in dev.langchain4j.model.bedrock
 
BedrockTitanEmbeddingModel - Class in dev.langchain4j.model.bedrock
Bedrock Amazon Titan embedding model
BedrockTitanEmbeddingModel() - Constructor for class dev.langchain4j.model.bedrock.BedrockTitanEmbeddingModel
 
BedrockTitanEmbeddingModel.Types - Enum Class in dev.langchain4j.model.bedrock
 
BedrockTitanEmbeddingResponse - Class in dev.langchain4j.model.bedrock
Bedrock Titan embedding response
BedrockTitanEmbeddingResponse() - Constructor for class dev.langchain4j.model.bedrock.BedrockTitanEmbeddingResponse
 
bestOf(Integer) - Method in class dev.langchain4j.model.azure.AzureOpenAiLanguageModel.Builder
 
beta - Variable in class dev.langchain4j.model.anthropic.internal.client.AnthropicClient.Builder
 
beta(String) - Method in class dev.langchain4j.model.anthropic.internal.client.AnthropicClient.Builder
 
between(Embedding, Embedding) - Static method in class dev.langchain4j.store.embedding.CosineSimilarity
Calculates cosine similarity between two vectors.
BGE_LARGE_EN - Enum constant in enum class dev.langchain4j.model.qianfan.QianfanEmbeddingModelNameEnum
 
BGE_LARGE_ZH - Enum constant in enum class dev.langchain4j.model.qianfan.QianfanEmbeddingModelNameEnum
 
BigDecimalOutputParser - Class in dev.langchain4j.model.output
 
BigDecimalOutputParser() - Constructor for class dev.langchain4j.model.output.BigDecimalOutputParser
 
BigIntegerOutputParser - Class in dev.langchain4j.model.output
 
BigIntegerOutputParser() - Constructor for class dev.langchain4j.model.output.BigIntegerOutputParser
 
BINARYIVF - Enum constant in enum class dev.langchain4j.store.embedding.vearch.RetrievalType
 
BINARYIVFParam() - Constructor for class dev.langchain4j.store.embedding.vearch.RetrievalParam.BINARYIVFParam
 
BlankDocumentException - Exception Class in dev.langchain4j.data.document
 
BlankDocumentException() - Constructor for exception class dev.langchain4j.data.document.BlankDocumentException
 
BLOOMZ_7B - Enum constant in enum class dev.langchain4j.model.qianfan.QianfanChatModelNameEnum
 
BOOLEAN - Static variable in class dev.langchain4j.agent.tool.JsonSchemaProperty
A property with key "type" and value "boolean".
BOOLEAN - Static variable in class dev.langchain4j.model.qianfan.client.chat.JsonSchemaProperty
 
BooleanOutputParser - Class in dev.langchain4j.model.output
 
BooleanOutputParser() - Constructor for class dev.langchain4j.model.output.BooleanOutputParser
 
build() - Method in class dev.langchain4j.agent.tool.ToolExecutionRequest.Builder
Returns a ToolExecutionRequest built from the parameters previously set.
build() - Method in class dev.langchain4j.agent.tool.ToolParameters.Builder
Returns a ToolParameters built from the parameters previously set.
build() - Method in class dev.langchain4j.agent.tool.ToolSpecification.Builder
Returns a ToolSpecification built from the parameters previously set.
build() - Method in class dev.langchain4j.chain.ConversationalRetrievalChain.Builder
 
build() - Method in class dev.langchain4j.data.document.loader.amazon.s3.AmazonS3DocumentLoader.Builder
 
build() - Method in class dev.langchain4j.data.document.loader.github.GitHubDocumentLoader.Builder
 
build() - Method in class dev.langchain4j.data.document.loader.tencent.cos.TencentCosDocumentLoader.Builder
 
build() - Method in class dev.langchain4j.data.image.Image.Builder
Build the Image.
build() - Method in class dev.langchain4j.internal.RetryUtils.RetryPolicy.Builder
Builds a RetryPolicy.
build() - Method in class dev.langchain4j.memory.chat.MessageWindowChatMemory.Builder
 
build() - Method in class dev.langchain4j.memory.chat.TokenWindowChatMemory.Builder
 
build() - Method in class dev.langchain4j.model.anthropic.internal.client.AnthropicClient.Builder
 
build() - Method in class dev.langchain4j.model.anthropic.internal.client.DefaultAnthropicClient.Builder
 
build() - Method in class dev.langchain4j.model.azure.AzureOpenAiChatModel.Builder
 
build() - Method in class dev.langchain4j.model.azure.AzureOpenAiEmbeddingModel.Builder
 
build() - Method in class dev.langchain4j.model.azure.AzureOpenAiImageModel.Builder
 
build() - Method in class dev.langchain4j.model.azure.AzureOpenAiLanguageModel.Builder
 
build() - Method in class dev.langchain4j.model.azure.AzureOpenAiStreamingChatModel.Builder
 
build() - Method in class dev.langchain4j.model.azure.AzureOpenAiStreamingLanguageModel.Builder
 
build() - Method in class dev.langchain4j.model.dashscope.QwenStreamingResponseBuilder
 
build() - Method in class dev.langchain4j.model.huggingface.client.Options.Builder
 
build() - Method in class dev.langchain4j.model.huggingface.client.Parameters.Builder
 
build() - Method in class dev.langchain4j.model.huggingface.client.TextGenerationRequest.Builder
 
build() - Method in class dev.langchain4j.model.huggingface.HuggingFaceChatModel.Builder
 
build() - Method in class dev.langchain4j.model.huggingface.HuggingFaceLanguageModel.Builder
 
build() - Method in class dev.langchain4j.model.mistralai.MistralAiClient.Builder
 
build() - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionRequest.Builder
 
build() - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionResponse.Builder
 
build() - Method in class dev.langchain4j.model.qianfan.client.chat.ChatTokenResponse.Builder
 
build() - Method in class dev.langchain4j.model.qianfan.client.chat.Function.Builder
 
build() - Method in class dev.langchain4j.model.qianfan.client.chat.FunctionCall.Builder
 
build() - Method in class dev.langchain4j.model.qianfan.client.chat.Message.Builder
 
build() - Method in class dev.langchain4j.model.qianfan.client.chat.Parameters.Builder
 
build() - Method in class dev.langchain4j.model.qianfan.client.chat.Responses.Builder
 
build() - Method in class dev.langchain4j.model.qianfan.client.completion.CompletionRequest.Builder
 
build() - Method in class dev.langchain4j.model.qianfan.client.embedding.EmbeddingData.Builder
 
build() - Method in class dev.langchain4j.model.qianfan.client.embedding.EmbeddingRequest.Builder
 
build() - Method in class dev.langchain4j.model.qianfan.client.embedding.EmbeddingResponse.Builder
 
build() - Method in class dev.langchain4j.model.qianfan.client.QianfanClient.Builder
 
build() - Method in class dev.langchain4j.model.qianfan.client.QianfanStreamingResponseBuilder
 
build() - Method in class dev.langchain4j.model.qianfan.client.Usage.Builder
 
build() - Method in class dev.langchain4j.model.vertexai.VertexAiChatModel.Builder
 
build() - Method in class dev.langchain4j.model.vertexai.VertexAiEmbeddingModel.Builder
 
build() - Method in class dev.langchain4j.model.vertexai.VertexAiImageModel.Builder
 
build() - Method in class dev.langchain4j.model.vertexai.VertexAiLanguageModel.Builder
 
build() - Method in class dev.langchain4j.model.zhipu.chat.AssistantMessage.Builder
 
build() - Method in class dev.langchain4j.model.zhipu.chat.ChatCompletionChoice.Builder
 
build() - Method in class dev.langchain4j.model.zhipu.chat.ChatCompletionRequest.Builder
 
build() - Method in class dev.langchain4j.model.zhipu.chat.ChatCompletionResponse.Builder
 
build() - Method in class dev.langchain4j.model.zhipu.chat.Delta.Builder
 
build() - Method in class dev.langchain4j.model.zhipu.chat.Function.Builder
 
build() - Method in class dev.langchain4j.model.zhipu.chat.FunctionCall.Builder
 
build() - Method in class dev.langchain4j.model.zhipu.chat.Parameters.Builder
 
build() - Method in class dev.langchain4j.model.zhipu.chat.Retrieval.RetrievalBuilder
 
build() - Method in class dev.langchain4j.model.zhipu.chat.SystemMessage.Builder
 
build() - Method in class dev.langchain4j.model.zhipu.chat.ToolCall.Builder
 
build() - Method in class dev.langchain4j.model.zhipu.chat.ToolMessage.Builder
 
build() - Method in class dev.langchain4j.model.zhipu.chat.UserMessage.Builder
 
build() - Method in class dev.langchain4j.model.zhipu.chat.WebSearch.WebSearchBuilder
 
build() - Method in class dev.langchain4j.model.zhipu.embedding.Embedding.Builder
 
build() - Method in class dev.langchain4j.model.zhipu.embedding.EmbeddingRequest.Builder
 
build() - Method in class dev.langchain4j.model.zhipu.embedding.EmbeddingResponse.Builder
 
build() - Method in class dev.langchain4j.model.zhipu.shared.Usage.Builder
 
build() - Method in class dev.langchain4j.model.zhipu.ZhipuAiClient.Builder
 
build() - Method in class dev.langchain4j.rag.content.retriever.azure.search.AzureAiSearchContentRetriever.Builder
 
build() - Method in class dev.langchain4j.service.AiServices
Constructs and returns the AI Service.
build() - Method in class dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore.AzureCosmosDbMongoVCoreEmbeddingStore.Builder
 
build() - Method in class dev.langchain4j.store.embedding.azure.search.AzureAiSearchEmbeddingStore.Builder
 
build() - Method in class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore.Builder
 
build() - Method in class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore.BuilderAstra
 
build() - Method in class dev.langchain4j.store.embedding.chroma.ChromaEmbeddingStore.Builder
 
build() - Method in class dev.langchain4j.store.embedding.elasticsearch.ElasticsearchEmbeddingStore.Builder
 
build() - Method in class dev.langchain4j.store.embedding.EmbeddingStoreIngestor.Builder
Builds the EmbeddingStoreIngestor.
build() - Method in class dev.langchain4j.store.embedding.filter.builder.sql.TableDefinition.Builder
 
build() - Method in class dev.langchain4j.store.embedding.infinispan.InfinispanEmbeddingStore.Builder
Builds the store
build() - Method in class dev.langchain4j.store.embedding.milvus.MilvusEmbeddingStore.Builder
 
build() - Method in class dev.langchain4j.store.embedding.mongodb.MongoDbEmbeddingStore.Builder
 
build() - Method in class dev.langchain4j.store.embedding.opensearch.OpenSearchEmbeddingStore.Builder
 
build() - Method in class dev.langchain4j.store.embedding.pinecone.PineconeEmbeddingStore.Builder
 
build() - Method in class dev.langchain4j.store.embedding.qdrant.QdrantEmbeddingStore.Builder
 
build() - Method in class dev.langchain4j.store.embedding.redis.RedisEmbeddingStore.Builder
 
build() - Method in class dev.langchain4j.store.embedding.vearch.SpaceEngine.Builder
 
build() - Method in class dev.langchain4j.store.embedding.vearch.VearchEmbeddingStore.Builder
 
build() - Method in class dev.langchain4j.store.memory.chat.cassandra.CassandraChatMemoryStore.Builder
 
build() - Method in class dev.langchain4j.store.memory.chat.cassandra.CassandraChatMemoryStore.BuilderAstra
 
build() - Method in class dev.langchain4j.web.search.WebSearchRequest.Builder
Build the web search request.
build(Tokenizer) - Method in class dev.langchain4j.model.qianfan.client.QianfanStreamingResponseBuilder
 
build(Tokenizer, boolean) - Method in class dev.langchain4j.model.openai.OpenAiStreamingResponseBuilder
 
build(Tokenizer, boolean) - Method in class dev.langchain4j.model.qianfan.client.QianfanStreamingResponseBuilder
 
build(Query) - Method in class dev.langchain4j.store.embedding.filter.builder.sql.LanguageModelSqlFilterBuilder
 
builder() - Static method in class dev.langchain4j.agent.tool.ToolExecutionRequest
Creates builder to build ToolExecutionRequest.
builder() - Static method in class dev.langchain4j.agent.tool.ToolParameters
ToolParameters builder static inner class.
builder() - Static method in class dev.langchain4j.agent.tool.ToolSpecification
Creates builder to build ToolSpecification.
builder() - Static method in class dev.langchain4j.chain.ConversationalRetrievalChain
 
builder() - Static method in class dev.langchain4j.data.document.loader.amazon.s3.AmazonS3DocumentLoader
 
builder() - Static method in class dev.langchain4j.data.document.loader.github.GitHubDocumentLoader
 
builder() - Static method in class dev.langchain4j.data.document.loader.tencent.cos.TencentCosDocumentLoader
 
builder() - Static method in class dev.langchain4j.data.image.Image
Create a new Image.Builder.
builder() - Static method in class dev.langchain4j.memory.chat.MessageWindowChatMemory
 
builder() - Static method in class dev.langchain4j.memory.chat.TokenWindowChatMemory
 
builder() - Static method in class dev.langchain4j.model.anthropic.internal.client.AnthropicClient
 
builder() - Static method in class dev.langchain4j.model.anthropic.internal.client.DefaultAnthropicClient
 
builder() - Static method in class dev.langchain4j.model.azure.AzureOpenAiChatModel
 
builder() - Static method in class dev.langchain4j.model.azure.AzureOpenAiEmbeddingModel
 
builder() - Static method in class dev.langchain4j.model.azure.AzureOpenAiImageModel
 
builder() - Static method in class dev.langchain4j.model.azure.AzureOpenAiLanguageModel
 
builder() - Static method in class dev.langchain4j.model.azure.AzureOpenAiStreamingChatModel
 
builder() - Static method in class dev.langchain4j.model.azure.AzureOpenAiStreamingLanguageModel
 
builder() - Static method in class dev.langchain4j.model.chatglm.ChatGlmChatModel
 
builder() - Static method in class dev.langchain4j.model.dashscope.QwenChatModel
 
builder() - Static method in class dev.langchain4j.model.dashscope.QwenEmbeddingModel
 
builder() - Static method in class dev.langchain4j.model.dashscope.QwenLanguageModel
 
builder() - Static method in class dev.langchain4j.model.dashscope.QwenStreamingChatModel
 
builder() - Static method in class dev.langchain4j.model.dashscope.QwenStreamingLanguageModel
 
builder() - Static method in class dev.langchain4j.model.huggingface.client.Options
 
builder() - Static method in class dev.langchain4j.model.huggingface.client.Parameters
 
builder() - Static method in class dev.langchain4j.model.huggingface.client.TextGenerationRequest
 
builder() - Static method in class dev.langchain4j.model.huggingface.HuggingFaceChatModel
 
builder() - Static method in class dev.langchain4j.model.huggingface.HuggingFaceEmbeddingModel
 
builder() - Static method in class dev.langchain4j.model.huggingface.HuggingFaceLanguageModel
 
builder() - Static method in class dev.langchain4j.model.localai.LocalAiChatModel
 
builder() - Static method in class dev.langchain4j.model.localai.LocalAiEmbeddingModel
 
builder() - Static method in class dev.langchain4j.model.localai.LocalAiLanguageModel
 
builder() - Static method in class dev.langchain4j.model.localai.LocalAiStreamingChatModel
 
builder() - Static method in class dev.langchain4j.model.localai.LocalAiStreamingLanguageModel
 
builder() - Static method in class dev.langchain4j.model.mistralai.MistralAiChatModel
 
builder() - Static method in class dev.langchain4j.model.mistralai.MistralAiClient
 
builder() - Static method in class dev.langchain4j.model.mistralai.MistralAiEmbeddingModel
 
builder() - Static method in class dev.langchain4j.model.mistralai.MistralAiModels
 
builder() - Static method in class dev.langchain4j.model.mistralai.MistralAiStreamingChatModel
 
builder() - Static method in class dev.langchain4j.model.ollama.OllamaChatModel
 
builder() - Static method in class dev.langchain4j.model.ollama.OllamaEmbeddingModel
 
builder() - Static method in class dev.langchain4j.model.ollama.OllamaLanguageModel
 
builder() - Static method in class dev.langchain4j.model.ollama.OllamaStreamingChatModel
 
builder() - Static method in class dev.langchain4j.model.ollama.OllamaStreamingLanguageModel
 
builder() - Static method in class dev.langchain4j.model.openai.OpenAiChatModel
 
builder() - Static method in class dev.langchain4j.model.openai.OpenAiEmbeddingModel
 
builder() - Static method in class dev.langchain4j.model.openai.OpenAiImageModel
 
builder() - Static method in class dev.langchain4j.model.openai.OpenAiLanguageModel
 
builder() - Static method in class dev.langchain4j.model.openai.OpenAiModerationModel
 
builder() - Static method in class dev.langchain4j.model.openai.OpenAiStreamingChatModel
 
builder() - Static method in class dev.langchain4j.model.openai.OpenAiStreamingLanguageModel
 
builder() - Static method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionRequest
 
builder() - Static method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionResponse
 
builder() - Static method in class dev.langchain4j.model.qianfan.client.chat.ChatTokenResponse
 
builder() - Static method in class dev.langchain4j.model.qianfan.client.chat.Examples
 
builder() - Static method in class dev.langchain4j.model.qianfan.client.chat.Function
 
builder() - Static method in class dev.langchain4j.model.qianfan.client.chat.FunctionCall
 
builder() - Static method in class dev.langchain4j.model.qianfan.client.chat.Message
 
builder() - Static method in class dev.langchain4j.model.qianfan.client.chat.Parameters
 
builder() - Static method in class dev.langchain4j.model.qianfan.client.chat.Responses
 
builder() - Static method in class dev.langchain4j.model.qianfan.client.completion.CompletionRequest
 
builder() - Static method in class dev.langchain4j.model.qianfan.client.embedding.EmbeddingData
 
builder() - Static method in class dev.langchain4j.model.qianfan.client.embedding.EmbeddingRequest
 
builder() - Static method in class dev.langchain4j.model.qianfan.client.embedding.EmbeddingResponse
 
builder() - Static method in class dev.langchain4j.model.qianfan.client.QianfanClient
 
builder() - Static method in class dev.langchain4j.model.qianfan.client.Usage
 
builder() - Static method in class dev.langchain4j.model.qianfan.QianfanChatModel
 
builder() - Static method in class dev.langchain4j.model.qianfan.QianfanEmbeddingModel
 
builder() - Static method in class dev.langchain4j.model.qianfan.QianfanLanguageModel
 
builder() - Static method in class dev.langchain4j.model.qianfan.QianfanStreamingChatModel
 
builder() - Static method in class dev.langchain4j.model.qianfan.QianfanStreamingLanguageModel
 
builder() - Static method in class dev.langchain4j.model.vertexai.VertexAiChatModel
 
builder() - Static method in class dev.langchain4j.model.vertexai.VertexAiEmbeddingModel
 
builder() - Static method in class dev.langchain4j.model.vertexai.VertexAiGeminiChatModel
 
builder() - Static method in class dev.langchain4j.model.vertexai.VertexAiGeminiStreamingChatModel
 
builder() - Static method in class dev.langchain4j.model.vertexai.VertexAiImageModel
 
builder() - Static method in class dev.langchain4j.model.vertexai.VertexAiLanguageModel
 
builder() - Static method in class dev.langchain4j.model.zhipu.chat.AssistantMessage
 
builder() - Static method in class dev.langchain4j.model.zhipu.chat.ChatCompletionChoice
 
builder() - Static method in class dev.langchain4j.model.zhipu.chat.ChatCompletionRequest
 
builder() - Static method in class dev.langchain4j.model.zhipu.chat.ChatCompletionResponse
 
builder() - Static method in class dev.langchain4j.model.zhipu.chat.Delta
 
builder() - Static method in class dev.langchain4j.model.zhipu.chat.Function
 
builder() - Static method in class dev.langchain4j.model.zhipu.chat.FunctionCall
 
builder() - Static method in class dev.langchain4j.model.zhipu.chat.Parameters
 
builder() - Static method in class dev.langchain4j.model.zhipu.chat.Retrieval
 
builder() - Static method in class dev.langchain4j.model.zhipu.chat.SystemMessage
 
builder() - Static method in class dev.langchain4j.model.zhipu.chat.ToolCall
 
builder() - Static method in class dev.langchain4j.model.zhipu.chat.ToolMessage
 
builder() - Static method in class dev.langchain4j.model.zhipu.chat.UserMessage
 
builder() - Static method in class dev.langchain4j.model.zhipu.chat.WebSearch
 
builder() - Static method in class dev.langchain4j.model.zhipu.embedding.Embedding
 
builder() - Static method in class dev.langchain4j.model.zhipu.embedding.EmbeddingRequest
 
builder() - Static method in class dev.langchain4j.model.zhipu.embedding.EmbeddingResponse
 
builder() - Static method in class dev.langchain4j.model.zhipu.shared.Usage
 
builder() - Static method in class dev.langchain4j.model.zhipu.ZhipuAiChatModel
 
builder() - Static method in class dev.langchain4j.model.zhipu.ZhipuAiClient
 
builder() - Static method in class dev.langchain4j.model.zhipu.ZhipuAiEmbeddingModel
 
builder() - Static method in class dev.langchain4j.model.zhipu.ZhipuAiStreamingChatModel
 
builder() - Static method in class dev.langchain4j.rag.content.retriever.azure.search.AzureAiSearchContentRetriever
 
builder() - Static method in class dev.langchain4j.rag.DefaultRetrievalAugmentor
 
builder() - Static method in class dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore.AzureCosmosDbMongoVCoreEmbeddingStore
 
builder() - Static method in class dev.langchain4j.store.embedding.azure.search.AzureAiSearchEmbeddingStore
 
builder() - Static method in class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore
 
builder() - Static method in class dev.langchain4j.store.embedding.chroma.ChromaEmbeddingStore
 
builder() - Static method in class dev.langchain4j.store.embedding.elasticsearch.ElasticsearchEmbeddingStore
 
builder() - Static method in class dev.langchain4j.store.embedding.EmbeddingStoreIngestor
Creates a new EmbeddingStoreIngestor builder.
builder() - Static method in class dev.langchain4j.store.embedding.filter.builder.sql.TableDefinition
 
builder() - Static method in class dev.langchain4j.store.embedding.infinispan.InfinispanEmbeddingStore
 
builder() - Static method in class dev.langchain4j.store.embedding.milvus.MilvusEmbeddingStore
 
builder() - Static method in class dev.langchain4j.store.embedding.mongodb.MongoDbEmbeddingStore
 
builder() - Static method in class dev.langchain4j.store.embedding.opensearch.OpenSearchEmbeddingStore
 
builder() - Static method in class dev.langchain4j.store.embedding.pinecone.PineconeEmbeddingStore
 
builder() - Static method in class dev.langchain4j.store.embedding.qdrant.QdrantEmbeddingStore
 
builder() - Static method in class dev.langchain4j.store.embedding.redis.RedisEmbeddingStore
 
builder() - Static method in class dev.langchain4j.store.embedding.vearch.SpaceEngine
 
builder() - Static method in class dev.langchain4j.store.embedding.vearch.VearchEmbeddingStore
 
builder() - Static method in class dev.langchain4j.store.memory.chat.cassandra.CassandraChatMemoryStore
 
builder() - Static method in class dev.langchain4j.web.search.WebSearchRequest
Create a new builder instance.
builder(Class<T>) - Static method in class dev.langchain4j.service.AiServices
Begins the construction of an AI Service.
Builder() - Constructor for class dev.langchain4j.chain.ConversationalRetrievalChain.Builder
 
Builder() - Constructor for class dev.langchain4j.data.document.loader.amazon.s3.AmazonS3DocumentLoader.Builder
 
Builder() - Constructor for class dev.langchain4j.data.document.loader.github.GitHubDocumentLoader.Builder
 
Builder() - Constructor for class dev.langchain4j.data.document.loader.tencent.cos.TencentCosDocumentLoader.Builder
 
Builder() - Constructor for class dev.langchain4j.data.image.Image.Builder
Create a new Image.Builder.
Builder() - Constructor for class dev.langchain4j.internal.RetryUtils.RetryPolicy.Builder
Construct a RetryPolicy.Builder.
Builder() - Constructor for class dev.langchain4j.memory.chat.MessageWindowChatMemory.Builder
 
Builder() - Constructor for class dev.langchain4j.memory.chat.TokenWindowChatMemory.Builder
 
Builder() - Constructor for class dev.langchain4j.model.anthropic.internal.client.AnthropicClient.Builder
 
Builder() - Constructor for class dev.langchain4j.model.anthropic.internal.client.DefaultAnthropicClient.Builder
 
Builder() - Constructor for class dev.langchain4j.model.azure.AzureOpenAiChatModel.Builder
 
Builder() - Constructor for class dev.langchain4j.model.azure.AzureOpenAiEmbeddingModel.Builder
 
Builder() - Constructor for class dev.langchain4j.model.azure.AzureOpenAiImageModel.Builder
 
Builder() - Constructor for class dev.langchain4j.model.azure.AzureOpenAiLanguageModel.Builder
 
Builder() - Constructor for class dev.langchain4j.model.azure.AzureOpenAiStreamingChatModel.Builder
 
Builder() - Constructor for class dev.langchain4j.model.azure.AzureOpenAiStreamingLanguageModel.Builder
 
Builder() - Constructor for class dev.langchain4j.model.huggingface.client.Options.Builder
 
Builder() - Constructor for class dev.langchain4j.model.huggingface.client.Parameters.Builder
 
Builder() - Constructor for class dev.langchain4j.model.huggingface.client.TextGenerationRequest.Builder
 
Builder() - Constructor for class dev.langchain4j.model.huggingface.HuggingFaceChatModel.Builder
 
Builder() - Constructor for class dev.langchain4j.model.huggingface.HuggingFaceLanguageModel.Builder
 
Builder() - Constructor for class dev.langchain4j.model.mistralai.MistralAiClient.Builder
 
Builder() - Constructor for class dev.langchain4j.model.vertexai.VertexAiChatModel.Builder
 
Builder() - Constructor for class dev.langchain4j.model.vertexai.VertexAiEmbeddingModel.Builder
 
Builder() - Constructor for class dev.langchain4j.model.vertexai.VertexAiImageModel.Builder
 
Builder() - Constructor for class dev.langchain4j.model.vertexai.VertexAiLanguageModel.Builder
 
Builder() - Constructor for class dev.langchain4j.rag.content.retriever.azure.search.AzureAiSearchContentRetriever.Builder
 
Builder() - Constructor for class dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore.AzureCosmosDbMongoVCoreEmbeddingStore.Builder
 
Builder() - Constructor for class dev.langchain4j.store.embedding.azure.search.AzureAiSearchEmbeddingStore.Builder
 
Builder() - Constructor for class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore.Builder
 
Builder() - Constructor for class dev.langchain4j.store.embedding.chroma.ChromaEmbeddingStore.Builder
 
Builder() - Constructor for class dev.langchain4j.store.embedding.elasticsearch.ElasticsearchEmbeddingStore.Builder
 
Builder() - Constructor for class dev.langchain4j.store.embedding.EmbeddingStoreIngestor.Builder
Creates a new EmbeddingStoreIngestor builder.
Builder() - Constructor for class dev.langchain4j.store.embedding.filter.builder.sql.TableDefinition.Builder
 
Builder() - Constructor for class dev.langchain4j.store.embedding.infinispan.InfinispanEmbeddingStore.Builder
 
Builder() - Constructor for class dev.langchain4j.store.embedding.milvus.MilvusEmbeddingStore.Builder
 
Builder() - Constructor for class dev.langchain4j.store.embedding.mongodb.MongoDbEmbeddingStore.Builder
 
Builder() - Constructor for class dev.langchain4j.store.embedding.opensearch.OpenSearchEmbeddingStore.Builder
 
Builder() - Constructor for class dev.langchain4j.store.embedding.pinecone.PineconeEmbeddingStore.Builder
 
Builder() - Constructor for class dev.langchain4j.store.embedding.qdrant.QdrantEmbeddingStore.Builder
 
Builder() - Constructor for class dev.langchain4j.store.embedding.redis.RedisEmbeddingStore.Builder
 
Builder() - Constructor for class dev.langchain4j.store.embedding.vearch.SpaceEngine.Builder
 
Builder() - Constructor for class dev.langchain4j.store.embedding.vearch.VearchEmbeddingStore.Builder
 
Builder() - Constructor for class dev.langchain4j.store.memory.chat.cassandra.CassandraChatMemoryStore.Builder
 
builderAstra() - Static method in class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore
 
builderAstra() - Static method in class dev.langchain4j.store.memory.chat.cassandra.CassandraChatMemoryStore
 
BuilderAstra() - Constructor for class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore.BuilderAstra
 
BuilderAstra() - Constructor for class dev.langchain4j.store.memory.chat.cassandra.CassandraChatMemoryStore.BuilderAstra
 
buildSchema(InfinispanStoreConfiguration) - Static method in class dev.langchain4j.store.embedding.infinispan.LangchainSchemaCreator
Build the Infinispan Schema to marshall embeddings
bulk(String, String, RequestBody) - Method in interface dev.langchain4j.store.embedding.vearch.VearchApi
 
ByteOutputParser - Class in dev.langchain4j.model.output
 
ByteOutputParser() - Constructor for class dev.langchain4j.model.output.ByteOutputParser
 

C

cacheConfig() - Method in record class dev.langchain4j.store.embedding.infinispan.InfinispanStoreConfiguration
Returns the value of the cacheConfig record component.
cacheConfig(String) - Method in class dev.langchain4j.store.embedding.infinispan.InfinispanEmbeddingStore.Builder
Infinispan cache config to be used, will be created on first access
cacheName() - Method in record class dev.langchain4j.store.embedding.infinispan.InfinispanStoreConfiguration
Returns the value of the cacheName record component.
cacheName(String) - Method in class dev.langchain4j.store.embedding.infinispan.InfinispanEmbeddingStore.Builder
Infinispan cache name to be used, will be created on first access
calculateTokensCounts(List<TextSegment>) - Method in class dev.langchain4j.model.vertexai.VertexAiEmbeddingModel
Calculates the number of tokens for each segment in the input list.
callTimeout(Duration) - Method in class dev.langchain4j.model.qianfan.client.QianfanClient.Builder
 
callTimeout(Duration) - Method in class dev.langchain4j.model.zhipu.ZhipuAiClient.Builder
 
CassandraChatMemoryStore - Class in dev.langchain4j.store.memory.chat.cassandra
Implementation of ChatMemoryStore using Astra DB Vector Search.
CassandraChatMemoryStore(CqlSession) - Constructor for class dev.langchain4j.store.memory.chat.cassandra.CassandraChatMemoryStore
Constructor for message store
CassandraChatMemoryStore(CqlSession, String) - Constructor for class dev.langchain4j.store.memory.chat.cassandra.CassandraChatMemoryStore
Constructor for message store
CassandraChatMemoryStore.Builder - Class in dev.langchain4j.store.memory.chat.cassandra
 
CassandraChatMemoryStore.BuilderAstra - Class in dev.langchain4j.store.memory.chat.cassandra
 
CassandraEmbeddingStore - Class in dev.langchain4j.store.embedding.cassandra
Implementation of EmbeddingStore using Cassandra.
CassandraEmbeddingStore(CqlSession, String, int) - Constructor for class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore
Embedding Store.
CassandraEmbeddingStore(CqlSession, String, int, CassandraSimilarityMetric) - Constructor for class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore
Embedding Store.
CassandraEmbeddingStore.Builder - Class in dev.langchain4j.store.embedding.cassandra
 
CassandraEmbeddingStore.BuilderAstra - Class in dev.langchain4j.store.embedding.cassandra
 
cassandraSession - Variable in class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore
Cassandra question.
Chain<Input,Output> - Interface in dev.langchain4j.chain
Represents a chain step that takes an input and produces an output.
chat(TextGenerationRequest) - Method in interface dev.langchain4j.model.huggingface.client.HuggingFaceClient
 
chatCompletion(MistralAiChatCompletionRequest) - Method in class dev.langchain4j.model.mistralai.MistralAiClient
 
chatCompletion(ChatCompletionRequest, String) - Method in class dev.langchain4j.model.qianfan.client.QianfanClient
 
chatCompletion(ChatCompletionRequest) - Method in class dev.langchain4j.model.zhipu.ZhipuAiClient
 
ChatCompletionChoice - Class in dev.langchain4j.model.zhipu.chat
 
ChatCompletionChoice.Builder - Class in dev.langchain4j.model.zhipu.chat
 
ChatCompletionModel - Enum Class in dev.langchain4j.model.zhipu.chat
 
ChatCompletionRequest - Class in dev.langchain4j.model.qianfan.client.chat
 
ChatCompletionRequest - Class in dev.langchain4j.model.zhipu.chat
 
ChatCompletionRequest.Builder - Class in dev.langchain4j.model.qianfan.client.chat
 
ChatCompletionRequest.Builder - Class in dev.langchain4j.model.zhipu.chat
 
ChatCompletionResponse - Class in dev.langchain4j.model.qianfan.client.chat
 
ChatCompletionResponse - Class in dev.langchain4j.model.zhipu.chat
 
ChatCompletionResponse.Builder - Class in dev.langchain4j.model.qianfan.client.chat
 
ChatCompletionResponse.Builder - Class in dev.langchain4j.model.zhipu.chat
 
CHATGLM_TURBO - Enum constant in enum class dev.langchain4j.model.zhipu.chat.ChatCompletionModel
 
CHATGLM2_6B_32K - Enum constant in enum class dev.langchain4j.model.qianfan.QianfanChatModelNameEnum
 
ChatGlmChatModel - Class in dev.langchain4j.model.chatglm
Support ChatGLM, ChatGLM2 and ChatGLM3 api are compatible with OpenAI API
ChatGlmChatModel(String, Duration, Double, Integer, Double, Integer) - Constructor for class dev.langchain4j.model.chatglm.ChatGlmChatModel
 
ChatGlmChatModel.ChatGlmChatModelBuilder - Class in dev.langchain4j.model.chatglm
 
ChatGlmChatModelBuilder() - Constructor for class dev.langchain4j.model.chatglm.ChatGlmChatModel.ChatGlmChatModelBuilder
 
ChatGlmChatModelBuilderFactory - Interface in dev.langchain4j.model.chatglm.spi
A factory for building ChatGlmChatModel.ChatGlmChatModelBuilder instances.
chatLanguageModel - Variable in class dev.langchain4j.rag.query.router.LanguageModelQueryRouter
 
chatLanguageModel - Variable in class dev.langchain4j.rag.query.transformer.CompressingQueryTransformer
 
chatLanguageModel - Variable in class dev.langchain4j.rag.query.transformer.ExpandingQueryTransformer
 
chatLanguageModel - Variable in class dev.langchain4j.store.embedding.filter.builder.sql.LanguageModelSqlFilterBuilder
 
chatLanguageModel(ChatLanguageModel) - Method in class dev.langchain4j.chain.ConversationalRetrievalChain.Builder
 
chatLanguageModel(ChatLanguageModel) - Method in class dev.langchain4j.service.AiServices
Configures chat model that will be used under the hood of the AI Service.
ChatLanguageModel - Interface in dev.langchain4j.model.chat
Represents a language model that has a chat interface.
chatMemories - Variable in class dev.langchain4j.service.AiServiceContext
 
chatMemory() - Method in class dev.langchain4j.rag.query.Metadata
 
chatMemory(ChatMemory) - Method in class dev.langchain4j.chain.ConversationalRetrievalChain.Builder
 
chatMemory(ChatMemory) - Method in class dev.langchain4j.service.AiServices
Configures the chat memory that will be used to preserve conversation history between method calls.
chatMemory(Object) - Method in class dev.langchain4j.service.AiServiceContext
 
ChatMemory - Interface in dev.langchain4j.memory
Represents the memory (history) of a chat conversation.
chatMemoryId() - Method in class dev.langchain4j.rag.query.Metadata
 
chatMemoryProvider - Variable in class dev.langchain4j.service.AiServiceContext
 
chatMemoryProvider(ChatMemoryProvider) - Method in class dev.langchain4j.service.AiServices
Configures the chat memory provider, which provides a dedicated instance of ChatMemory for each user/conversation.
ChatMemoryProvider - Interface in dev.langchain4j.memory.chat
Provides instances of ChatMemory.
chatMemoryStore(ChatMemoryStore) - Method in class dev.langchain4j.memory.chat.MessageWindowChatMemory.Builder
 
chatMemoryStore(ChatMemoryStore) - Method in class dev.langchain4j.memory.chat.TokenWindowChatMemory.Builder
 
ChatMemoryStore - Interface in dev.langchain4j.store.memory.chat
Represents a store for the ChatMemory state.
ChatMessage - Interface in dev.langchain4j.data.message
A chat message.
ChatMessageDeserializer - Class in dev.langchain4j.data.message
A deserializer for ChatMessage objects.
ChatMessageJsonCodec - Interface in dev.langchain4j.data.message
A codec for serializing and deserializing ChatMessage objects to and from JSON.
ChatMessageJsonCodecFactory - Interface in dev.langchain4j.spi.data.message
A factory for creating ChatMessageJsonCodec objects.
ChatMessageSerializer - Class in dev.langchain4j.data.message
 
ChatMessageSerializer() - Constructor for class dev.langchain4j.data.message.ChatMessageSerializer
 
chatMessageToString(ChatMessage) - Method in class dev.langchain4j.model.bedrock.internal.AbstractBedrockChatModel
Convert chat message to string
ChatMessageType - Enum Class in dev.langchain4j.data.message
The type of content, e.g.
chatModel - Variable in class dev.langchain4j.service.AiServiceContext
 
ChatTokenResponse - Class in dev.langchain4j.model.qianfan.client.chat
 
ChatTokenResponse.Builder - Class in dev.langchain4j.model.qianfan.client.chat
 
choices(List<ChatCompletionChoice>) - Method in class dev.langchain4j.model.zhipu.chat.ChatCompletionResponse.Builder
 
ChromaEmbeddingStore - Class in dev.langchain4j.store.embedding.chroma
Represents a store for embeddings using the Chroma backend.
ChromaEmbeddingStore(String, String, Duration) - Constructor for class dev.langchain4j.store.embedding.chroma.ChromaEmbeddingStore
Initializes a new instance of ChromaEmbeddingStore with the specified parameters.
ChromaEmbeddingStore.Builder - Class in dev.langchain4j.store.embedding.chroma
 
Cinematic - Enum constant in enum class dev.langchain4j.model.bedrock.BedrockStabilityAIChatModel.StylePreset
 
CLASSIFICATION - Enum constant in enum class dev.langchain4j.model.vertexai.VertexAiEmbeddingModel.TaskType
 
classify(Document) - Method in interface dev.langchain4j.classification.TextClassifier
Classify the given Document.
classify(TextSegment) - Method in interface dev.langchain4j.classification.TextClassifier
Classify the given TextSegment.
classify(String) - Method in class dev.langchain4j.classification.EmbeddingModelTextClassifier
 
classify(String) - Method in interface dev.langchain4j.classification.TextClassifier
Classify the given text.
CLAUDE_2 - Enum constant in enum class dev.langchain4j.model.anthropic.AnthropicChatModelName
 
CLAUDE_2_1 - Enum constant in enum class dev.langchain4j.model.anthropic.AnthropicChatModelName
 
CLAUDE_3_HAIKU_20240307 - Enum constant in enum class dev.langchain4j.model.anthropic.AnthropicChatModelName
 
CLAUDE_3_OPUS_20240229 - Enum constant in enum class dev.langchain4j.model.anthropic.AnthropicChatModelName
 
CLAUDE_3_SONNET_20240229 - Enum constant in enum class dev.langchain4j.model.anthropic.AnthropicChatModelName
 
CLAUDE_INSTANT_1_2 - Enum constant in enum class dev.langchain4j.model.anthropic.AnthropicChatModelName
 
clean(String) - Method in class dev.langchain4j.store.embedding.filter.builder.sql.LanguageModelSqlFilterBuilder
 
clear() - Method in class dev.langchain4j.memory.chat.MessageWindowChatMemory
 
clear() - Method in class dev.langchain4j.memory.chat.TokenWindowChatMemory
 
clear() - Method in interface dev.langchain4j.memory.ChatMemory
Clears the chat memory.
clear() - Method in class dev.langchain4j.store.embedding.astradb.AstraDbEmbeddingStore
Delete all records from the table.
clear() - Method in class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore
Delete all rows.
clear() - Method in class dev.langchain4j.store.memory.chat.cassandra.CassandraChatMemoryStore
Delete all rows.
clearCache() - Method in class dev.langchain4j.store.embedding.infinispan.InfinispanEmbeddingStore
 
clearStore() - Method in class dev.langchain4j.store.embedding.qdrant.QdrantEmbeddingStore
Deletes all points from the Qdrant collection.
client(QdrantClient) - Method in class dev.langchain4j.store.embedding.qdrant.QdrantEmbeddingStore.Builder
 
close() - Method in class dev.langchain4j.store.embedding.qdrant.QdrantEmbeddingStore
Closes the underlying GRPC client.
close() - Method in class dev.langchain4j.store.graph.neo4j.Neo4jGraph
 
CLUSTERING - Enum constant in enum class dev.langchain4j.model.vertexai.VertexAiEmbeddingModel.TaskType
 
code() - Method in exception class dev.langchain4j.model.qianfan.client.QianfanHttpException
 
CodeExecutionEngine - Interface in dev.langchain4j.code
Interface for executing code.
CODELLAMA_7B_INSTRUCT - Enum constant in enum class dev.langchain4j.model.qianfan.QianfanLanguageModelNameEnum
 
CohereScoringModel - Class in dev.langchain4j.model.cohere
An implementation of a ScoringModel that uses Cohere Rerank API.
CohereScoringModel(String, String, String, Duration, Integer, Boolean, Boolean) - Constructor for class dev.langchain4j.model.cohere.CohereScoringModel
 
collectionName(String) - Method in class dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore.AzureCosmosDbMongoVCoreEmbeddingStore.Builder
 
collectionName(String) - Method in class dev.langchain4j.store.embedding.chroma.ChromaEmbeddingStore.Builder
 
collectionName(String) - Method in class dev.langchain4j.store.embedding.milvus.MilvusEmbeddingStore.Builder
 
collectionName(String) - Method in class dev.langchain4j.store.embedding.mongodb.MongoDbEmbeddingStore.Builder
 
collectionName(String) - Method in class dev.langchain4j.store.embedding.qdrant.QdrantEmbeddingStore.Builder
 
COLUMN_PER_KEY - Enum constant in enum class dev.langchain4j.store.embedding.pgvector.MetadataStorageMode
COLUMN_PER_KEY: for static metadata, when you know in advance the list of metadata
ColumnDefinition - Class in dev.langchain4j.store.embedding.filter.builder.sql
 
ColumnDefinition(String, String) - Constructor for class dev.langchain4j.store.embedding.filter.builder.sql.ColumnDefinition
 
ColumnDefinition(String, String, String) - Constructor for class dev.langchain4j.store.embedding.filter.builder.sql.ColumnDefinition
 
columnDefinitions() - Method in interface dev.langchain4j.store.embedding.pgvector.MetadataStorageConfig
SQL definition of metadata field(s) list.
columns() - Method in class dev.langchain4j.store.embedding.filter.builder.sql.TableDefinition
 
columns(Collection<ColumnDefinition>) - Method in class dev.langchain4j.store.embedding.filter.builder.sql.TableDefinition.Builder
 
COMBINED_JSON - Enum constant in enum class dev.langchain4j.store.embedding.pgvector.MetadataStorageMode
COMBINED_JSON: For dynamic metadata, when you don't know the list of metadata that will be used.
COMBINED_JSONB - Enum constant in enum class dev.langchain4j.store.embedding.pgvector.MetadataStorageMode
COMBINED_JSONB: Same as JSON, but stored in a binary way.
ComicBook - Enum constant in enum class dev.langchain4j.model.bedrock.BedrockStabilityAIChatModel.StylePreset
 
CommandTextV14 - Enum constant in enum class dev.langchain4j.model.bedrock.BedrockCohereChatModel.Types
 
comparisonValue() - Method in class dev.langchain4j.store.embedding.filter.comparison.IsEqualTo
 
comparisonValue() - Method in class dev.langchain4j.store.embedding.filter.comparison.IsGreaterThan
 
comparisonValue() - Method in class dev.langchain4j.store.embedding.filter.comparison.IsGreaterThanOrEqualTo
 
comparisonValue() - Method in class dev.langchain4j.store.embedding.filter.comparison.IsLessThan
 
comparisonValue() - Method in class dev.langchain4j.store.embedding.filter.comparison.IsLessThanOrEqualTo
 
comparisonValue() - Method in class dev.langchain4j.store.embedding.filter.comparison.IsNotEqualTo
 
comparisonValues() - Method in class dev.langchain4j.store.embedding.filter.comparison.IsIn
 
comparisonValues() - Method in class dev.langchain4j.store.embedding.filter.comparison.IsNotIn
 
completion(CompletionRequest, boolean, String) - Method in class dev.langchain4j.model.qianfan.client.QianfanClient
 
Completion() - Constructor for class dev.langchain4j.model.bedrock.BedrockAI21LabsChatModelResponse.Completion
 
CompletionReason() - Constructor for class dev.langchain4j.model.bedrock.BedrockAI21LabsChatModelResponse.CompletionReason
 
CompletionRequest - Class in dev.langchain4j.model.qianfan.client.completion
 
CompletionRequest.Builder - Class in dev.langchain4j.model.qianfan.client.completion
 
CompletionResponse - Class in dev.langchain4j.model.qianfan.client.completion
 
CompletionResponse() - Constructor for class dev.langchain4j.model.qianfan.client.completion.CompletionResponse
 
completionTokens() - Method in class dev.langchain4j.model.qianfan.client.Usage
 
completionTokens(Integer) - Method in class dev.langchain4j.model.qianfan.client.Usage.Builder
 
completionTokens(Integer) - Method in class dev.langchain4j.model.zhipu.shared.Usage.Builder
 
CompressingQueryTransformer - Class in dev.langchain4j.rag.query.transformer
A QueryTransformer that leverages a ChatLanguageModel to condense a given Query along with a chat memory (previous conversation history) into a concise Query.
CompressingQueryTransformer(ChatLanguageModel) - Constructor for class dev.langchain4j.rag.query.transformer.CompressingQueryTransformer
 
CompressingQueryTransformer(ChatLanguageModel, PromptTemplate) - Constructor for class dev.langchain4j.rag.query.transformer.CompressingQueryTransformer
 
CompressRate() - Constructor for class dev.langchain4j.store.embedding.vearch.SpaceStoreParam.CompressRate
 
connectionString(String) - Method in class dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore.AzureCosmosDbMongoVCoreEmbeddingStore.Builder
Sets the Azure CosmosDB Mongo vCore connectionString.
connectTimeout(Duration) - Method in class dev.langchain4j.model.qianfan.client.QianfanClient.Builder
 
connectTimeout(Duration) - Method in class dev.langchain4j.model.zhipu.ZhipuAiClient.Builder
 
consistencyLevel(ConsistencyLevelEnum) - Method in class dev.langchain4j.store.embedding.milvus.MilvusEmbeddingStore.Builder
 
contactPoints(List<String>) - Method in class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore.Builder
 
contactPoints(List<String>) - Method in class dev.langchain4j.store.memory.chat.cassandra.CassandraChatMemoryStore.Builder
 
containsKey(String) - Method in class dev.langchain4j.data.document.Metadata
Check whether this Metadata contains a given key.
content - Variable in class dev.langchain4j.model.anthropic.internal.api.AnthropicCreateMessageResponse
 
content - Variable in class dev.langchain4j.model.anthropic.internal.api.AnthropicMessage
 
content - Variable in class dev.langchain4j.model.anthropic.internal.api.AnthropicResponseMessage
 
content - Variable in class dev.langchain4j.model.anthropic.internal.api.AnthropicToolResultContent
 
content() - Method in class dev.langchain4j.model.output.Response
Get the content.
content() - Method in class dev.langchain4j.model.qianfan.client.chat.Message
 
content() - Method in class dev.langchain4j.model.zhipu.chat.ChatCompletionResponse
 
content() - Method in class dev.langchain4j.web.search.WebSearchOrganicResult
Returns the content scraped from the web page.
content(String) - Method in class dev.langchain4j.model.qianfan.client.chat.Examples.Builder
 
content(String) - Method in class dev.langchain4j.model.qianfan.client.chat.Message.Builder
 
content(String) - Method in class dev.langchain4j.model.zhipu.chat.AssistantMessage.Builder
 
content(String) - Method in class dev.langchain4j.model.zhipu.chat.Delta.Builder
 
content(String) - Method in class dev.langchain4j.model.zhipu.chat.SystemMessage.Builder
 
content(String) - Method in class dev.langchain4j.model.zhipu.chat.ToolMessage.Builder
 
content(String) - Method in class dev.langchain4j.model.zhipu.chat.UserMessage.Builder
 
Content - Class in dev.langchain4j.rag.content
Represents content relevant to a user Query with the potential to enhance and ground the LLM's response.
Content - Interface in dev.langchain4j.data.message
Abstract base interface for message content.
Content(TextSegment) - Constructor for class dev.langchain4j.rag.content.Content
 
Content(String) - Constructor for class dev.langchain4j.rag.content.Content
 
CONTENT_FILTER - Enum constant in enum class dev.langchain4j.model.output.FinishReason
The call finished signalling a need for content filtering.
ContentAggregator - Interface in dev.langchain4j.rag.content.aggregator
Aggregates all Contents retrieved from all ContentRetrievers using all Querys.
contentBlock - Variable in class dev.langchain4j.model.anthropic.internal.api.AnthropicStreamingData
 
ContentInjector - Interface in dev.langchain4j.rag.content.injector
Injects given Contents into a given UserMessage.
contentRetriever(ContentRetriever) - Method in class dev.langchain4j.chain.ConversationalRetrievalChain.Builder
 
contentRetriever(ContentRetriever) - Method in class dev.langchain4j.rag.DefaultRetrievalAugmentor.DefaultRetrievalAugmentorBuilder
 
contentRetriever(ContentRetriever) - Method in class dev.langchain4j.service.AiServices
Configures a content retriever to be invoked on every method call for retrieving relevant content related to the user's message from an underlying data source (e.g., an embedding store in the case of an EmbeddingStoreContentRetriever).
ContentRetriever - Interface in dev.langchain4j.rag.content.retriever
Retrieves Contents from an underlying data source using a given Query.
contents() - Method in class dev.langchain4j.data.message.UserMessage
The contents of the message.
ContentType - Enum Class in dev.langchain4j.data.message
The type of content, e.g.
context - Variable in class dev.langchain4j.service.AiServices
 
ConversationalChain - Class in dev.langchain4j.chain
A chain for conversing with a specified ChatLanguageModel while maintaining a memory of the conversation.
ConversationalRetrievalChain - Class in dev.langchain4j.chain
A chain for conversing with a specified ChatLanguageModel based on the information retrieved by a specified ContentRetriever.
ConversationalRetrievalChain(ChatLanguageModel, ChatMemory, PromptTemplate, Retriever<TextSegment>) - Constructor for class dev.langchain4j.chain.ConversationalRetrievalChain
Deprecated.
ConversationalRetrievalChain(ChatLanguageModel, ChatMemory, ContentRetriever) - Constructor for class dev.langchain4j.chain.ConversationalRetrievalChain
 
ConversationalRetrievalChain(ChatLanguageModel, ChatMemory, RetrievalAugmentor) - Constructor for class dev.langchain4j.chain.ConversationalRetrievalChain
 
ConversationalRetrievalChain.Builder - Class in dev.langchain4j.chain
 
copy() - Method in class dev.langchain4j.data.document.Metadata
Copies the metadata.
copyIfNotNull(List<T>) - Static method in class dev.langchain4j.internal.Utils
Returns an (unmodifiable) copy of the provided list.
COS - Enum constant in enum class dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore.AzureCosmosDbMongoVCoreEmbeddingStore.SimilarityMetric
 
CosineSimilarity - Class in dev.langchain4j.store.embedding
Utility class for calculating cosine similarity between two vectors.
create() - Method in class dev.langchain4j.data.document.parser.apache.tika.ApacheTikaDocumentParserFactory
 
create() - Method in class dev.langchain4j.data.document.splitter.recursive.RecursiveDocumentSplitterFactory
 
create() - Method in interface dev.langchain4j.spi.data.document.parser.DocumentParserFactory
 
create() - Method in interface dev.langchain4j.spi.data.document.splitter.DocumentSplitterFactory
 
create() - Method in interface dev.langchain4j.spi.data.message.ChatMessageJsonCodecFactory
Creates a new ChatMessageJsonCodec object.
create() - Method in interface dev.langchain4j.spi.json.JsonCodecFactory
Create a new Json.JsonCodec.
create() - Method in interface dev.langchain4j.spi.model.embedding.EmbeddingModelFactory
 
create() - Method in interface dev.langchain4j.spi.store.embedding.inmemory.InMemoryEmbeddingStoreJsonCodecFactory
 
create() - Method in class dev.langchain4j.store.memory.chat.cassandra.CassandraChatMemoryStore
Create the table if not exist.
create(HuggingFaceClientFactory.Input) - Method in interface dev.langchain4j.model.huggingface.spi.HuggingFaceClientFactory
 
create(AiServiceContext) - Method in interface dev.langchain4j.spi.services.AiServicesFactory
 
create(PromptTemplateFactory.Input) - Method in interface dev.langchain4j.spi.prompt.PromptTemplateFactory
Create a new prompt template.
create(Class<T>, ChatLanguageModel) - Static method in class dev.langchain4j.service.AiServices
Creates an AI Service (an implementation of the provided interface), that is backed by the provided chat model.
create(Class<T>, StreamingChatLanguageModel) - Static method in class dev.langchain4j.service.AiServices
Creates an AI Service (an implementation of the provided interface), that is backed by the provided streaming chat model.
createCache() - Method in record class dev.langchain4j.store.embedding.infinispan.InfinispanStoreConfiguration
Returns the value of the createCache record component.
createCache(boolean) - Method in class dev.langchain4j.store.embedding.infinispan.InfinispanEmbeddingStore.Builder
Create cache in the server
createCollectionOptions(CreateCollectionOptions) - Method in class dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore.AzureCosmosDbMongoVCoreEmbeddingStore.Builder
 
createCollectionOptions(CreateCollectionOptions) - Method in class dev.langchain4j.store.embedding.mongodb.MongoDbEmbeddingStore.Builder
 
created() - Method in class dev.langchain4j.model.qianfan.client.embedding.EmbeddingResponse
 
created(Integer) - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionResponse.Builder
 
created(Integer) - Method in class dev.langchain4j.model.qianfan.client.embedding.EmbeddingResponse.Builder
 
created(Integer) - Method in class dev.langchain4j.model.zhipu.chat.ChatCompletionResponse.Builder
 
createDatabase(CreateDatabaseRequest) - Method in interface dev.langchain4j.store.embedding.vearch.VearchApi
 
createIndex(Boolean) - Method in class dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore.AzureCosmosDbMongoVCoreEmbeddingStore.Builder
Set to true if you want the application to create an index, or false if you want to create it manually.
createIndex(Boolean) - Method in class dev.langchain4j.store.embedding.mongodb.MongoDbEmbeddingStore.Builder
Set whether in production mode, production mode will not create index automatically
createMessage(AnthropicCreateMessageRequest) - Method in class dev.langchain4j.model.anthropic.internal.client.AnthropicClient
 
createMessage(AnthropicCreateMessageRequest) - Method in class dev.langchain4j.model.anthropic.internal.client.DefaultAnthropicClient
 
createMessage(AnthropicCreateMessageRequest, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.anthropic.internal.client.AnthropicClient
 
createMessage(AnthropicCreateMessageRequest, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.anthropic.internal.client.DefaultAnthropicClient
 
createMessage(String, String, String, AnthropicCreateMessageRequest) - Method in interface dev.langchain4j.model.anthropic.internal.api.AnthropicApi
 
createOrUpdateIndex(boolean) - Method in class dev.langchain4j.rag.content.retriever.azure.search.AzureAiSearchContentRetriever.Builder
Whether to create or update the search index.
createOrUpdateIndex(boolean) - Method in class dev.langchain4j.store.embedding.azure.search.AzureAiSearchEmbeddingStore.Builder
Whether to create or update the search index.
createOrUpdateIndex(int) - Method in class dev.langchain4j.store.embedding.azure.search.AbstractAzureAiSearchEmbeddingStore
Creates or updates the index using a ready-made index.
createPrompt(UserMessage, List<Content>) - Method in class dev.langchain4j.rag.content.injector.DefaultContentInjector
 
createPrompt(Query) - Method in class dev.langchain4j.rag.query.router.LanguageModelQueryRouter
 
createPrompt(Query) - Method in class dev.langchain4j.rag.query.transformer.ExpandingQueryTransformer
 
createPrompt(Query) - Method in class dev.langchain4j.store.embedding.filter.builder.sql.LanguageModelSqlFilterBuilder
 
createPrompt(Query, String) - Method in class dev.langchain4j.rag.query.transformer.CompressingQueryTransformer
 
createSpace(String, CreateSpaceRequest) - Method in interface dev.langchain4j.store.embedding.vearch.VearchApi
 
createTableStatement - Variable in class dev.langchain4j.store.embedding.filter.builder.sql.LanguageModelSqlFilterBuilder
 
cyberpunk - Enum constant in enum class dev.langchain4j.model.vertexai.VertexAiImageModel.ImageStyle
 

D

DALL_E_2 - Enum constant in enum class dev.langchain4j.model.openai.OpenAiImageModelName
 
DALL_E_2 - Static variable in class dev.langchain4j.model.openai.OpenAiModelName
Deprecated.
 
DALL_E_3 - Enum constant in enum class dev.langchain4j.model.openai.OpenAiImageModelName
 
DALL_E_3 - Static variable in class dev.langchain4j.model.azure.AzureOpenAiModelName
 
DALL_E_3 - Static variable in class dev.langchain4j.model.openai.OpenAiModelName
Deprecated.
 
data - Variable in class dev.langchain4j.model.anthropic.internal.api.AnthropicImageContentSource
 
data() - Method in class dev.langchain4j.model.qianfan.client.embedding.EmbeddingResponse
 
data(List<EmbeddingData>) - Method in class dev.langchain4j.model.qianfan.client.embedding.EmbeddingResponse.Builder
 
data(List<Embedding>) - Method in class dev.langchain4j.model.zhipu.embedding.EmbeddingResponse.Builder
 
databaseId(UUID) - Method in class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore.BuilderAstra
 
databaseId(UUID) - Method in class dev.langchain4j.store.memory.chat.cassandra.CassandraChatMemoryStore.BuilderAstra
 
databaseName(String) - Method in class dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore.AzureCosmosDbMongoVCoreEmbeddingStore.Builder
 
databaseName(String) - Method in class dev.langchain4j.store.embedding.milvus.MilvusEmbeddingStore.Builder
 
databaseName(String) - Method in class dev.langchain4j.store.embedding.mongodb.MongoDbEmbeddingStore.Builder
 
databaseRegion(String) - Method in class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore.BuilderAstra
 
databaseRegion(String) - Method in class dev.langchain4j.store.memory.chat.cassandra.CassandraChatMemoryStore.BuilderAstra
 
datasource - Variable in class dev.langchain4j.store.embedding.pgvector.PgVectorEmbeddingStore
Datasource used to create the store
dataSources(List<AzureChatExtensionConfiguration>) - Method in class dev.langchain4j.model.azure.AzureOpenAiChatModel.Builder
 
dataSources(List<AzureChatExtensionConfiguration>) - Method in class dev.langchain4j.model.azure.AzureOpenAiStreamingChatModel.Builder
 
DateOutputParser - Class in dev.langchain4j.model.output
 
DateOutputParser() - Constructor for class dev.langchain4j.model.output.DateOutputParser
 
decode(List<Integer>) - Method in class dev.langchain4j.model.openai.OpenAiTokenizer
 
DEFAULT - Static variable in class dev.langchain4j.service.AiServices
 
DEFAULT_CACHE_CONFIG - Static variable in record class dev.langchain4j.store.embedding.infinispan.InfinispanStoreConfiguration
Default Cache Config
DEFAULT_CONTENT_HANDLER_SUPPLIER - Static variable in class dev.langchain4j.data.document.parser.apache.tika.ApacheTikaDocumentParser
 
DEFAULT_DISTANCE - Static variable in record class dev.langchain4j.store.embedding.infinispan.InfinispanStoreConfiguration
The default distance to for the search
DEFAULT_FIELD_CONTENT - Static variable in class dev.langchain4j.store.embedding.azure.search.AbstractAzureAiSearchEmbeddingStore
 
DEFAULT_FIELD_CONTENT_VECTOR - Variable in class dev.langchain4j.store.embedding.azure.search.AbstractAzureAiSearchEmbeddingStore
 
DEFAULT_FIELD_METADATA - Static variable in class dev.langchain4j.store.embedding.azure.search.AbstractAzureAiSearchEmbeddingStore
 
DEFAULT_FIELD_METADATA_ATTRS - Static variable in class dev.langchain4j.store.embedding.azure.search.AbstractAzureAiSearchEmbeddingStore
 
DEFAULT_FIELD_METADATA_SOURCE - Static variable in class dev.langchain4j.store.embedding.azure.search.AbstractAzureAiSearchEmbeddingStore
 
DEFAULT_FILTER - Static variable in class dev.langchain4j.rag.content.retriever.EmbeddingStoreContentRetriever
 
DEFAULT_ITEM_PACKAGE - Static variable in record class dev.langchain4j.store.embedding.infinispan.InfinispanStoreConfiguration
Default package of the schema
DEFAULT_LANGCHAIN_ITEM - Static variable in record class dev.langchain4j.store.embedding.infinispan.InfinispanStoreConfiguration
Default name of the protobuf langchain item.
DEFAULT_MAX_RESULTS - Static variable in class dev.langchain4j.rag.content.retriever.EmbeddingStoreContentRetriever
 
DEFAULT_METADATA_ITEM - Static variable in record class dev.langchain4j.store.embedding.infinispan.InfinispanStoreConfiguration
Default name of the protobuf metadata item.
DEFAULT_METADATA_SUPPLIER - Static variable in class dev.langchain4j.data.document.parser.apache.tika.ApacheTikaDocumentParser
 
DEFAULT_MIN_SCORE - Static variable in class dev.langchain4j.rag.content.retriever.EmbeddingStoreContentRetriever
 
DEFAULT_N - Static variable in class dev.langchain4j.rag.query.transformer.ExpandingQueryTransformer
 
DEFAULT_PARSE_CONTEXT_SUPPLIER - Static variable in class dev.langchain4j.data.document.parser.apache.tika.ApacheTikaDocumentParser
 
DEFAULT_PARSER_SUPPLIER - Static variable in class dev.langchain4j.data.document.parser.apache.tika.ApacheTikaDocumentParser
 
DEFAULT_PORT - Static variable in class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore.Builder
 
DEFAULT_PORT - Static variable in class dev.langchain4j.store.memory.chat.cassandra.CassandraChatMemoryStore.Builder
 
DEFAULT_PROMPT_TEMPLATE - Static variable in class dev.langchain4j.rag.content.injector.DefaultContentInjector
 
DEFAULT_PROMPT_TEMPLATE - Static variable in class dev.langchain4j.rag.query.router.LanguageModelQueryRouter
 
DEFAULT_PROMPT_TEMPLATE - Static variable in class dev.langchain4j.rag.query.transformer.CompressingQueryTransformer
 
DEFAULT_PROMPT_TEMPLATE - Static variable in class dev.langchain4j.rag.query.transformer.ExpandingQueryTransformer
 
DEFAULT_QUERY_SELECTOR - Static variable in class dev.langchain4j.rag.content.aggregator.ReRankingContentAggregator
 
DEFAULT_RETRY_POLICY - Static variable in class dev.langchain4j.internal.RetryUtils
Default retry policy used by RetryUtils.withRetry(Callable).
DEFAULT_SIMILARITY - Static variable in record class dev.langchain4j.store.embedding.infinispan.InfinispanStoreConfiguration
Default vector similarity
DEFAULT_TABLE_NAME - Static variable in class dev.langchain4j.store.memory.chat.cassandra.CassandraChatMemoryStore
Default message store.
DefaultAnthropicClient - Class in dev.langchain4j.model.anthropic.internal.client
 
DefaultAnthropicClient.Builder - Class in dev.langchain4j.model.anthropic.internal.client
 
defaultConfig() - Static method in class dev.langchain4j.store.embedding.pgvector.DefaultMetadataStorageConfig
Default configuration
DefaultContentAggregator - Class in dev.langchain4j.rag.content.aggregator
Default implementation of ContentAggregator intended to be suitable for the majority of use cases.
DefaultContentAggregator() - Constructor for class dev.langchain4j.rag.content.aggregator.DefaultContentAggregator
 
DefaultContentInjector - Class in dev.langchain4j.rag.content.injector
Default implementation of ContentInjector intended to be suitable for the majority of use cases.
DefaultContentInjector() - Constructor for class dev.langchain4j.rag.content.injector.DefaultContentInjector
 
DefaultContentInjector(PromptTemplate) - Constructor for class dev.langchain4j.rag.content.injector.DefaultContentInjector
 
DefaultContentInjector(PromptTemplate, List<String>) - Constructor for class dev.langchain4j.rag.content.injector.DefaultContentInjector
 
DefaultContentInjector(List<String>) - Constructor for class dev.langchain4j.rag.content.injector.DefaultContentInjector
 
defaultIndexMapping() - Static method in class dev.langchain4j.store.embedding.mongodb.IndexMapping
 
DefaultMetadataStorageConfig - Class in dev.langchain4j.store.embedding.pgvector
Metadata configuration implementation
DefaultMetadataStorageConfig() - Constructor for class dev.langchain4j.store.embedding.pgvector.DefaultMetadataStorageConfig
Just for warnings ?
DefaultMistralAiHelper - Class in dev.langchain4j.model.mistralai
 
DefaultMistralAiHelper() - Constructor for class dev.langchain4j.model.mistralai.DefaultMistralAiHelper
 
DefaultQueryRouter - Class in dev.langchain4j.rag.query.router
Default implementation of QueryRouter intended to be suitable for the majority of use cases.
DefaultQueryRouter(ContentRetriever...) - Constructor for class dev.langchain4j.rag.query.router.DefaultQueryRouter
 
DefaultQueryRouter(Collection<ContentRetriever>) - Constructor for class dev.langchain4j.rag.query.router.DefaultQueryRouter
 
DefaultQueryTransformer - Class in dev.langchain4j.rag.query.transformer
Default implementation of QueryTransformer intended to be suitable for the majority of use cases.
DefaultQueryTransformer() - Constructor for class dev.langchain4j.rag.query.transformer.DefaultQueryTransformer
 
DefaultRetrievalAugmentor - Class in dev.langchain4j.rag
The default implementation of RetrievalAugmentor intended to be suitable for the majority of use cases.
DefaultRetrievalAugmentor(QueryTransformer, QueryRouter, ContentAggregator, ContentInjector, Executor) - Constructor for class dev.langchain4j.rag.DefaultRetrievalAugmentor
 
DefaultRetrievalAugmentor.DefaultRetrievalAugmentorBuilder - Class in dev.langchain4j.rag
 
DefaultRetrievalAugmentorBuilder() - Constructor for class dev.langchain4j.rag.DefaultRetrievalAugmentor.DefaultRetrievalAugmentorBuilder
 
DefaultStructuredPromptFactory - Class in dev.langchain4j.model.input.structured
Default implementation of StructuredPromptFactory.
DefaultStructuredPromptFactory() - Constructor for class dev.langchain4j.model.input.structured.DefaultStructuredPromptFactory
Create a default structured prompt factory.
defaultSubSplitter() - Method in class dev.langchain4j.data.document.splitter.DocumentByCharacterSplitter
 
defaultSubSplitter() - Method in class dev.langchain4j.data.document.splitter.DocumentByLineSplitter
 
defaultSubSplitter() - Method in class dev.langchain4j.data.document.splitter.DocumentByParagraphSplitter
 
defaultSubSplitter() - Method in class dev.langchain4j.data.document.splitter.DocumentByRegexSplitter
 
defaultSubSplitter() - Method in class dev.langchain4j.data.document.splitter.DocumentBySentenceSplitter
 
defaultSubSplitter() - Method in class dev.langchain4j.data.document.splitter.DocumentByWordSplitter
 
defaultSubSplitter() - Method in class dev.langchain4j.data.document.splitter.HierarchicalDocumentSplitter
The default sub-splitter to use when a single segment is too long.
DefaultToolExecutor - Class in dev.langchain4j.agent.tool
 
DefaultToolExecutor(Object, Method) - Constructor for class dev.langchain4j.agent.tool.DefaultToolExecutor
 
delayMillis(int) - Method in class dev.langchain4j.internal.RetryUtils.RetryPolicy.Builder
Sets the base delay in milliseconds.
delete() - Method in class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore
Delete the table.
delete() - Method in class dev.langchain4j.store.memory.chat.cassandra.CassandraChatMemoryStore
Delete the table.
deleteIndex() - Method in class dev.langchain4j.store.embedding.azure.search.AbstractAzureAiSearchEmbeddingStore
 
deleteMessages(Object) - Method in class dev.langchain4j.store.memory.chat.cassandra.CassandraChatMemoryStore
Deletes all messages for a specified chat memory.
deleteMessages(Object) - Method in interface dev.langchain4j.store.memory.chat.ChatMemoryStore
Deletes all messages for a specified chat memory.
deleteMessages(Object) - Method in class dev.langchain4j.store.memory.chat.InMemoryChatMemoryStore
 
deleteSpace() - Method in class dev.langchain4j.store.embedding.vearch.VearchEmbeddingStore
 
deleteSpace(String, String) - Method in interface dev.langchain4j.store.embedding.vearch.VearchApi
 
delimiter() - Element in annotation interface dev.langchain4j.model.input.structured.StructuredPrompt
The delimiter to join the lines of the prompt template.
delimiter() - Element in annotation interface dev.langchain4j.service.SystemMessage
 
delimiter() - Element in annotation interface dev.langchain4j.service.UserMessage
 
delta - Variable in class dev.langchain4j.model.anthropic.internal.api.AnthropicStreamingData
 
delta(Delta) - Method in class dev.langchain4j.model.zhipu.chat.ChatCompletionChoice.Builder
 
Delta - Class in dev.langchain4j.model.zhipu.chat
 
Delta.Builder - Class in dev.langchain4j.model.zhipu.chat
 
deploymentName(String) - Method in class dev.langchain4j.model.azure.AzureOpenAiChatModel.Builder
Sets the deployment name in Azure OpenAI.
deploymentName(String) - Method in class dev.langchain4j.model.azure.AzureOpenAiEmbeddingModel.Builder
Sets the deployment name in Azure OpenAI.
deploymentName(String) - Method in class dev.langchain4j.model.azure.AzureOpenAiImageModel.Builder
Sets the deployment name in Azure OpenAI.
deploymentName(String) - Method in class dev.langchain4j.model.azure.AzureOpenAiLanguageModel.Builder
Sets the deployment name in Azure OpenAI.
deploymentName(String) - Method in class dev.langchain4j.model.azure.AzureOpenAiStreamingChatModel.Builder
Sets the deployment name in Azure OpenAI.
deploymentName(String) - Method in class dev.langchain4j.model.azure.AzureOpenAiStreamingLanguageModel.Builder
Sets the deployment name in Azure OpenAI.
description - Variable in class dev.langchain4j.model.anthropic.internal.api.AnthropicTool
 
description() - Method in class dev.langchain4j.agent.tool.ToolSpecification
Returns the description of the tool.
description() - Method in class dev.langchain4j.model.qianfan.client.chat.Function
 
description() - Method in class dev.langchain4j.model.zhipu.chat.Function
 
description() - Method in class dev.langchain4j.store.embedding.filter.builder.sql.ColumnDefinition
 
description() - Method in class dev.langchain4j.store.embedding.filter.builder.sql.TableDefinition
 
description(String) - Static method in class dev.langchain4j.agent.tool.JsonSchemaProperty
Construct a property with key "description" and value.
description(String) - Method in class dev.langchain4j.agent.tool.ToolSpecification.Builder
Sets the description.
description(String) - Method in class dev.langchain4j.model.qianfan.client.chat.Function.Builder
 
description(String) - Static method in class dev.langchain4j.model.qianfan.client.chat.JsonSchemaProperty
 
description(String) - Method in class dev.langchain4j.model.zhipu.chat.Function.Builder
 
description(String) - Method in class dev.langchain4j.store.embedding.filter.builder.sql.TableDefinition.Builder
 
Description - Annotation Interface in dev.langchain4j.model.output.structured
Annotation to attach a description to a class field.
detailLevel() - Method in class dev.langchain4j.data.message.ImageContent
Get the DetailLevel.
dev.langchain4j - package dev.langchain4j
 
dev.langchain4j.agent.tool - package dev.langchain4j.agent.tool
 
dev.langchain4j.agent.tool.graalvm - package dev.langchain4j.agent.tool.graalvm
 
dev.langchain4j.chain - package dev.langchain4j.chain
 
dev.langchain4j.classification - package dev.langchain4j.classification
 
dev.langchain4j.code - package dev.langchain4j.code
 
dev.langchain4j.code.graalvm - package dev.langchain4j.code.graalvm
 
dev.langchain4j.data.document - package dev.langchain4j.data.document
 
dev.langchain4j.data.document.loader - package dev.langchain4j.data.document.loader
 
dev.langchain4j.data.document.loader.amazon.s3 - package dev.langchain4j.data.document.loader.amazon.s3
 
dev.langchain4j.data.document.loader.azure.storage.blob - package dev.langchain4j.data.document.loader.azure.storage.blob
 
dev.langchain4j.data.document.loader.github - package dev.langchain4j.data.document.loader.github
 
dev.langchain4j.data.document.loader.tencent.cos - package dev.langchain4j.data.document.loader.tencent.cos
 
dev.langchain4j.data.document.parser - package dev.langchain4j.data.document.parser
 
dev.langchain4j.data.document.parser.apache.pdfbox - package dev.langchain4j.data.document.parser.apache.pdfbox
 
dev.langchain4j.data.document.parser.apache.poi - package dev.langchain4j.data.document.parser.apache.poi
 
dev.langchain4j.data.document.parser.apache.tika - package dev.langchain4j.data.document.parser.apache.tika
 
dev.langchain4j.data.document.source - package dev.langchain4j.data.document.source
 
dev.langchain4j.data.document.source.amazon.s3 - package dev.langchain4j.data.document.source.amazon.s3
 
dev.langchain4j.data.document.source.azure.storage.blob - package dev.langchain4j.data.document.source.azure.storage.blob
 
dev.langchain4j.data.document.source.github - package dev.langchain4j.data.document.source.github
 
dev.langchain4j.data.document.source.tencent.cos - package dev.langchain4j.data.document.source.tencent.cos
 
dev.langchain4j.data.document.splitter - package dev.langchain4j.data.document.splitter
 
dev.langchain4j.data.document.splitter.recursive - package dev.langchain4j.data.document.splitter.recursive
 
dev.langchain4j.data.document.transformer - package dev.langchain4j.data.document.transformer
 
dev.langchain4j.data.embedding - package dev.langchain4j.data.embedding
 
dev.langchain4j.data.image - package dev.langchain4j.data.image
 
dev.langchain4j.data.message - package dev.langchain4j.data.message
 
dev.langchain4j.data.segment - package dev.langchain4j.data.segment
 
dev.langchain4j.exception - package dev.langchain4j.exception
 
dev.langchain4j.internal - package dev.langchain4j.internal
 
dev.langchain4j.memory - package dev.langchain4j.memory
 
dev.langchain4j.memory.chat - package dev.langchain4j.memory.chat
 
dev.langchain4j.model - package dev.langchain4j.model
 
dev.langchain4j.model.anthropic - package dev.langchain4j.model.anthropic
 
dev.langchain4j.model.anthropic.internal.api - package dev.langchain4j.model.anthropic.internal.api
 
dev.langchain4j.model.anthropic.internal.client - package dev.langchain4j.model.anthropic.internal.client
 
dev.langchain4j.model.anthropic.internal.mapper - package dev.langchain4j.model.anthropic.internal.mapper
 
dev.langchain4j.model.azure - package dev.langchain4j.model.azure
 
dev.langchain4j.model.azure.spi - package dev.langchain4j.model.azure.spi
 
dev.langchain4j.model.bedrock - package dev.langchain4j.model.bedrock
 
dev.langchain4j.model.bedrock.internal - package dev.langchain4j.model.bedrock.internal
 
dev.langchain4j.model.chat - package dev.langchain4j.model.chat
 
dev.langchain4j.model.chatglm - package dev.langchain4j.model.chatglm
 
dev.langchain4j.model.chatglm.spi - package dev.langchain4j.model.chatglm.spi
 
dev.langchain4j.model.cohere - package dev.langchain4j.model.cohere
 
dev.langchain4j.model.dashscope - package dev.langchain4j.model.dashscope
 
dev.langchain4j.model.dashscope.spi - package dev.langchain4j.model.dashscope.spi
 
dev.langchain4j.model.embedding - package dev.langchain4j.model.embedding
 
dev.langchain4j.model.huggingface - package dev.langchain4j.model.huggingface
 
dev.langchain4j.model.huggingface.client - package dev.langchain4j.model.huggingface.client
 
dev.langchain4j.model.huggingface.spi - package dev.langchain4j.model.huggingface.spi
 
dev.langchain4j.model.image - package dev.langchain4j.model.image
 
dev.langchain4j.model.input - package dev.langchain4j.model.input
 
dev.langchain4j.model.input.structured - package dev.langchain4j.model.input.structured
 
dev.langchain4j.model.language - package dev.langchain4j.model.language
 
dev.langchain4j.model.localai - package dev.langchain4j.model.localai
 
dev.langchain4j.model.localai.spi - package dev.langchain4j.model.localai.spi
 
dev.langchain4j.model.mistralai - package dev.langchain4j.model.mistralai
 
dev.langchain4j.model.mistralai.spi - package dev.langchain4j.model.mistralai.spi
 
dev.langchain4j.model.moderation - package dev.langchain4j.model.moderation
 
dev.langchain4j.model.nomic - package dev.langchain4j.model.nomic
 
dev.langchain4j.model.ollama - package dev.langchain4j.model.ollama
 
dev.langchain4j.model.ollama.spi - package dev.langchain4j.model.ollama.spi
 
dev.langchain4j.model.openai - package dev.langchain4j.model.openai
 
dev.langchain4j.model.openai.spi - package dev.langchain4j.model.openai.spi
 
dev.langchain4j.model.output - package dev.langchain4j.model.output
 
dev.langchain4j.model.output.structured - package dev.langchain4j.model.output.structured
 
dev.langchain4j.model.qianfan - package dev.langchain4j.model.qianfan
 
dev.langchain4j.model.qianfan.client - package dev.langchain4j.model.qianfan.client
 
dev.langchain4j.model.qianfan.client.chat - package dev.langchain4j.model.qianfan.client.chat
 
dev.langchain4j.model.qianfan.client.completion - package dev.langchain4j.model.qianfan.client.completion
 
dev.langchain4j.model.qianfan.client.embedding - package dev.langchain4j.model.qianfan.client.embedding
 
dev.langchain4j.model.qianfan.spi - package dev.langchain4j.model.qianfan.spi
 
dev.langchain4j.model.scoring - package dev.langchain4j.model.scoring
 
dev.langchain4j.model.vertexai - package dev.langchain4j.model.vertexai
 
dev.langchain4j.model.vertexai.spi - package dev.langchain4j.model.vertexai.spi
 
dev.langchain4j.model.zhipu - package dev.langchain4j.model.zhipu
 
dev.langchain4j.model.zhipu.chat - package dev.langchain4j.model.zhipu.chat
 
dev.langchain4j.model.zhipu.embedding - package dev.langchain4j.model.zhipu.embedding
 
dev.langchain4j.model.zhipu.shared - package dev.langchain4j.model.zhipu.shared
 
dev.langchain4j.model.zhipu.spi - package dev.langchain4j.model.zhipu.spi
 
dev.langchain4j.rag - package dev.langchain4j.rag
 
dev.langchain4j.rag.content - package dev.langchain4j.rag.content
 
dev.langchain4j.rag.content.aggregator - package dev.langchain4j.rag.content.aggregator
 
dev.langchain4j.rag.content.injector - package dev.langchain4j.rag.content.injector
 
dev.langchain4j.rag.content.retriever - package dev.langchain4j.rag.content.retriever
 
dev.langchain4j.rag.content.retriever.azure.search - package dev.langchain4j.rag.content.retriever.azure.search
 
dev.langchain4j.rag.content.retriever.neo4j - package dev.langchain4j.rag.content.retriever.neo4j
 
dev.langchain4j.rag.query - package dev.langchain4j.rag.query
 
dev.langchain4j.rag.query.router - package dev.langchain4j.rag.query.router
 
dev.langchain4j.rag.query.transformer - package dev.langchain4j.rag.query.transformer
 
dev.langchain4j.retriever - package dev.langchain4j.retriever
 
dev.langchain4j.service - package dev.langchain4j.service
 
dev.langchain4j.spi - package dev.langchain4j.spi
 
dev.langchain4j.spi.data.document.parser - package dev.langchain4j.spi.data.document.parser
 
dev.langchain4j.spi.data.document.splitter - package dev.langchain4j.spi.data.document.splitter
 
dev.langchain4j.spi.data.message - package dev.langchain4j.spi.data.message
 
dev.langchain4j.spi.json - package dev.langchain4j.spi.json
 
dev.langchain4j.spi.model.embedding - package dev.langchain4j.spi.model.embedding
 
dev.langchain4j.spi.prompt - package dev.langchain4j.spi.prompt
 
dev.langchain4j.spi.prompt.structured - package dev.langchain4j.spi.prompt.structured
 
dev.langchain4j.spi.services - package dev.langchain4j.spi.services
 
dev.langchain4j.spi.store.embedding.inmemory - package dev.langchain4j.spi.store.embedding.inmemory
 
dev.langchain4j.store.embedding - package dev.langchain4j.store.embedding
 
dev.langchain4j.store.embedding.astradb - package dev.langchain4j.store.embedding.astradb
 
dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore - package dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore
 
dev.langchain4j.store.embedding.azure.search - package dev.langchain4j.store.embedding.azure.search
 
dev.langchain4j.store.embedding.cassandra - package dev.langchain4j.store.embedding.cassandra
 
dev.langchain4j.store.embedding.chroma - package dev.langchain4j.store.embedding.chroma
 
dev.langchain4j.store.embedding.elasticsearch - package dev.langchain4j.store.embedding.elasticsearch
 
dev.langchain4j.store.embedding.filter - package dev.langchain4j.store.embedding.filter
 
dev.langchain4j.store.embedding.filter.builder.sql - package dev.langchain4j.store.embedding.filter.builder.sql
 
dev.langchain4j.store.embedding.filter.comparison - package dev.langchain4j.store.embedding.filter.comparison
 
dev.langchain4j.store.embedding.filter.logical - package dev.langchain4j.store.embedding.filter.logical
 
dev.langchain4j.store.embedding.filter.parser.sql - package dev.langchain4j.store.embedding.filter.parser.sql
 
dev.langchain4j.store.embedding.infinispan - package dev.langchain4j.store.embedding.infinispan
 
dev.langchain4j.store.embedding.inmemory - package dev.langchain4j.store.embedding.inmemory
 
dev.langchain4j.store.embedding.milvus - package dev.langchain4j.store.embedding.milvus
 
dev.langchain4j.store.embedding.mongodb - package dev.langchain4j.store.embedding.mongodb
 
dev.langchain4j.store.embedding.neo4j - package dev.langchain4j.store.embedding.neo4j
 
dev.langchain4j.store.embedding.opensearch - package dev.langchain4j.store.embedding.opensearch
 
dev.langchain4j.store.embedding.pgvector - package dev.langchain4j.store.embedding.pgvector
 
dev.langchain4j.store.embedding.pinecone - package dev.langchain4j.store.embedding.pinecone
 
dev.langchain4j.store.embedding.qdrant - package dev.langchain4j.store.embedding.qdrant
 
dev.langchain4j.store.embedding.redis - package dev.langchain4j.store.embedding.redis
 
dev.langchain4j.store.embedding.vearch - package dev.langchain4j.store.embedding.vearch
 
dev.langchain4j.store.embedding.vespa - package dev.langchain4j.store.embedding.vespa
 
dev.langchain4j.store.embedding.weaviate - package dev.langchain4j.store.embedding.weaviate
 
dev.langchain4j.store.graph.neo4j - package dev.langchain4j.store.graph.neo4j
 
dev.langchain4j.store.memory.chat - package dev.langchain4j.store.memory.chat
 
dev.langchain4j.store.memory.chat.cassandra - package dev.langchain4j.store.memory.chat.cassandra
 
dev.langchain4j.web.search - package dev.langchain4j.web.search
 
digital_art - Enum constant in enum class dev.langchain4j.model.vertexai.VertexAiImageModel.ImageStyle
 
DigitalArt - Enum constant in enum class dev.langchain4j.model.bedrock.BedrockStabilityAIChatModel.StylePreset
 
dimension - Variable in class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore.Builder
 
dimension() - Method in class dev.langchain4j.data.embedding.Embedding
Returns the dimension of the vector.
dimension() - Method in record class dev.langchain4j.store.embedding.infinispan.InfinispanStoreConfiguration
Returns the value of the dimension record component.
dimension(int) - Method in class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore.BuilderAstra
 
dimension(Integer) - Method in class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore.Builder
 
dimension(Integer) - Method in class dev.langchain4j.store.embedding.elasticsearch.ElasticsearchEmbeddingStore.Builder
 
dimension(Integer) - Method in class dev.langchain4j.store.embedding.infinispan.InfinispanEmbeddingStore.Builder
Infinispan vector dimension
dimension(Integer) - Method in class dev.langchain4j.store.embedding.milvus.MilvusEmbeddingStore.Builder
 
dimension(Integer) - Method in class dev.langchain4j.store.embedding.redis.RedisEmbeddingStore.Builder
 
dimensions(int) - Method in class dev.langchain4j.rag.content.retriever.azure.search.AzureAiSearchContentRetriever.Builder
If using the ready-made index, sets the number of dimensions of the embeddings.
dimensions(int) - Method in class dev.langchain4j.store.embedding.azure.search.AzureAiSearchEmbeddingStore.Builder
If using the ready-made index, sets the number of dimensions of the embeddings.
dimensions(Integer) - Method in class dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore.AzureCosmosDbMongoVCoreEmbeddingStore.Builder
 
DisabledChatLanguageModel - Class in dev.langchain4j.model.chat
A ChatLanguageModel which throws a ModelDisabledException for all of its methods
DisabledChatLanguageModel() - Constructor for class dev.langchain4j.model.chat.DisabledChatLanguageModel
 
DisabledEmbeddingModel - Class in dev.langchain4j.model.embedding
An EmbeddingModel which throws a ModelDisabledException for all of its methods
DisabledEmbeddingModel() - Constructor for class dev.langchain4j.model.embedding.DisabledEmbeddingModel
 
DisabledImageModel - Class in dev.langchain4j.model.image
An ImageModel which throws a ModelDisabledException for all of its methods
DisabledImageModel() - Constructor for class dev.langchain4j.model.image.DisabledImageModel
 
DisabledLanguageModel - Class in dev.langchain4j.model.language
A LanguageModel which throws a ModelDisabledException for all of its methods
DisabledLanguageModel() - Constructor for class dev.langchain4j.model.language.DisabledLanguageModel
 
DisabledModerationModel - Class in dev.langchain4j.model.moderation
A ModerationModel which throws a ModelDisabledException for all of its methods
DisabledModerationModel() - Constructor for class dev.langchain4j.model.moderation.DisabledModerationModel
 
DisabledStreamingChatLanguageModel - Class in dev.langchain4j.model.chat
A StreamingChatLanguageModel which throws a ModelDisabledException for all of its methods
DisabledStreamingChatLanguageModel() - Constructor for class dev.langchain4j.model.chat.DisabledStreamingChatLanguageModel
 
DisabledStreamingLanguageModel - Class in dev.langchain4j.model.language
A StreamingLanguageModel which throws a ModelDisabledException for all of its methods
DisabledStreamingLanguageModel() - Constructor for class dev.langchain4j.model.language.DisabledStreamingLanguageModel
 
distance() - Method in record class dev.langchain4j.store.embedding.infinispan.InfinispanStoreConfiguration
Returns the value of the distance record component.
distance(Integer) - Method in class dev.langchain4j.store.embedding.infinispan.InfinispanEmbeddingStore.Builder
Infinispan distance for knn query
DO_NOT_ROUTE - Enum constant in enum class dev.langchain4j.rag.query.router.LanguageModelQueryRouter.FallbackStrategy
In this case, the Query will not be routed to any ContentRetriever, thus skipping the RAG flow.
document(String) - Static method in class dev.langchain4j.data.document.Document
Creates a new Document from the given text.
document(String, Metadata) - Static method in class dev.langchain4j.data.document.Document
Creates a new Document from the given text.
Document - Class in dev.langchain4j.data.document
Represents an unstructured piece of text that usually corresponds to a content of a single file.
Document - Class in dev.langchain4j.store.embedding.azure.search
 
Document() - Constructor for class dev.langchain4j.store.embedding.azure.search.Document
 
Document(String) - Constructor for class dev.langchain4j.data.document.Document
Creates a new Document from the given text.
Document(String, Metadata) - Constructor for class dev.langchain4j.data.document.Document
Creates a new Document from the given text.
Document.Metadata - Class in dev.langchain4j.store.embedding.azure.search
 
Document.Metadata.Attribute - Class in dev.langchain4j.store.embedding.azure.search
 
DocumentByCharacterSplitter - Class in dev.langchain4j.data.document.splitter
Splits the provided Document into characters and attempts to fit as many characters as possible into a single TextSegment, adhering to the limit set by maxSegmentSize.
DocumentByCharacterSplitter(int, int) - Constructor for class dev.langchain4j.data.document.splitter.DocumentByCharacterSplitter
 
DocumentByCharacterSplitter(int, int, DocumentSplitter) - Constructor for class dev.langchain4j.data.document.splitter.DocumentByCharacterSplitter
 
DocumentByCharacterSplitter(int, int, Tokenizer) - Constructor for class dev.langchain4j.data.document.splitter.DocumentByCharacterSplitter
 
DocumentByCharacterSplitter(int, int, Tokenizer, DocumentSplitter) - Constructor for class dev.langchain4j.data.document.splitter.DocumentByCharacterSplitter
 
DocumentByLineSplitter - Class in dev.langchain4j.data.document.splitter
Splits the provided Document into lines and attempts to fit as many lines as possible into a single TextSegment, adhering to the limit set by maxSegmentSize.
DocumentByLineSplitter(int, int) - Constructor for class dev.langchain4j.data.document.splitter.DocumentByLineSplitter
 
DocumentByLineSplitter(int, int, DocumentSplitter) - Constructor for class dev.langchain4j.data.document.splitter.DocumentByLineSplitter
 
DocumentByLineSplitter(int, int, Tokenizer) - Constructor for class dev.langchain4j.data.document.splitter.DocumentByLineSplitter
 
DocumentByLineSplitter(int, int, Tokenizer, DocumentSplitter) - Constructor for class dev.langchain4j.data.document.splitter.DocumentByLineSplitter
 
DocumentByParagraphSplitter - Class in dev.langchain4j.data.document.splitter
Splits the provided Document into paragraphs and attempts to fit as many paragraphs as possible into a single TextSegment, adhering to the limit set by maxSegmentSize.
DocumentByParagraphSplitter(int, int) - Constructor for class dev.langchain4j.data.document.splitter.DocumentByParagraphSplitter
 
DocumentByParagraphSplitter(int, int, DocumentSplitter) - Constructor for class dev.langchain4j.data.document.splitter.DocumentByParagraphSplitter
 
DocumentByParagraphSplitter(int, int, Tokenizer) - Constructor for class dev.langchain4j.data.document.splitter.DocumentByParagraphSplitter
 
DocumentByParagraphSplitter(int, int, Tokenizer, DocumentSplitter) - Constructor for class dev.langchain4j.data.document.splitter.DocumentByParagraphSplitter
 
DocumentByRegexSplitter - Class in dev.langchain4j.data.document.splitter
Splits the provided Document into parts using the provided regex and attempts to fit as many parts as possible into a single TextSegment, adhering to the limit set by maxSegmentSize.
DocumentByRegexSplitter(String, String, int, int) - Constructor for class dev.langchain4j.data.document.splitter.DocumentByRegexSplitter
 
DocumentByRegexSplitter(String, String, int, int, DocumentSplitter) - Constructor for class dev.langchain4j.data.document.splitter.DocumentByRegexSplitter
 
DocumentByRegexSplitter(String, String, int, int, Tokenizer) - Constructor for class dev.langchain4j.data.document.splitter.DocumentByRegexSplitter
 
DocumentByRegexSplitter(String, String, int, int, Tokenizer, DocumentSplitter) - Constructor for class dev.langchain4j.data.document.splitter.DocumentByRegexSplitter
 
DocumentBySentenceSplitter - Class in dev.langchain4j.data.document.splitter
Splits the provided Document into sentences and attempts to fit as many sentences as possible into a single TextSegment, adhering to the limit set by maxSegmentSize.
DocumentBySentenceSplitter(int, int) - Constructor for class dev.langchain4j.data.document.splitter.DocumentBySentenceSplitter
 
DocumentBySentenceSplitter(int, int, DocumentSplitter) - Constructor for class dev.langchain4j.data.document.splitter.DocumentBySentenceSplitter
 
DocumentBySentenceSplitter(int, int, Tokenizer) - Constructor for class dev.langchain4j.data.document.splitter.DocumentBySentenceSplitter
 
DocumentBySentenceSplitter(int, int, Tokenizer, DocumentSplitter) - Constructor for class dev.langchain4j.data.document.splitter.DocumentBySentenceSplitter
 
DocumentByWordSplitter - Class in dev.langchain4j.data.document.splitter
Splits the provided Document into words and attempts to fit as many words as possible into a single TextSegment, adhering to the limit set by maxSegmentSize.
DocumentByWordSplitter(int, int) - Constructor for class dev.langchain4j.data.document.splitter.DocumentByWordSplitter
 
DocumentByWordSplitter(int, int, DocumentSplitter) - Constructor for class dev.langchain4j.data.document.splitter.DocumentByWordSplitter
 
DocumentByWordSplitter(int, int, Tokenizer) - Constructor for class dev.langchain4j.data.document.splitter.DocumentByWordSplitter
 
DocumentByWordSplitter(int, int, Tokenizer, DocumentSplitter) - Constructor for class dev.langchain4j.data.document.splitter.DocumentByWordSplitter
 
DocumentLoader - Class in dev.langchain4j.data.document
Utility class for loading documents.
DocumentParser - Interface in dev.langchain4j.data.document
Defines the interface for parsing an InputStream into a Document.
DocumentParserFactory - Interface in dev.langchain4j.spi.data.document.parser
A factory for creating DocumentParser instances through SPI.
DocumentSource - Interface in dev.langchain4j.data.document
Defines the interface for a Document source.
documentSplitter(DocumentSplitter) - Method in class dev.langchain4j.store.embedding.EmbeddingStoreIngestor.Builder
Sets the document splitter.
DocumentSplitter - Interface in dev.langchain4j.data.document
Defines the interface for splitting a document into text segments.
DocumentSplitterFactory - Interface in dev.langchain4j.spi.data.document.splitter
A factory for creating DocumentSplitter instances through SPI.
DocumentSplitters - Class in dev.langchain4j.data.document.splitter
 
DocumentSplitters() - Constructor for class dev.langchain4j.data.document.splitter.DocumentSplitters
 
documentTransformer(DocumentTransformer) - Method in class dev.langchain4j.store.embedding.EmbeddingStoreIngestor.Builder
Sets the document transformer.
DocumentTransformer - Interface in dev.langchain4j.data.document
Defines the interface for transforming a Document.
doSample(Boolean) - Method in class dev.langchain4j.model.huggingface.client.Parameters.Builder
 
doSample(String) - Method in class dev.langchain4j.model.zhipu.chat.ChatCompletionRequest.Builder
 
DoubleOutputParser - Class in dev.langchain4j.model.output
 
DoubleOutputParser() - Constructor for class dev.langchain4j.model.output.DoubleOutputParser
 
dropCollection(String) - Method in class dev.langchain4j.store.embedding.milvus.MilvusEmbeddingStore
 

E

EB_TURBO_APPBUILDER - Enum constant in enum class dev.langchain4j.model.qianfan.QianfanChatModelNameEnum
 
echo(Boolean) - Method in class dev.langchain4j.model.azure.AzureOpenAiLanguageModel.Builder
 
echo(Boolean) - Method in class dev.langchain4j.model.azure.AzureOpenAiStreamingLanguageModel.Builder
 
edit(Image, Image, String) - Method in class dev.langchain4j.model.image.DisabledImageModel
 
edit(Image, Image, String) - Method in interface dev.langchain4j.model.image.ImageModel
Given an existing image, edit this image following the given prompt and apply the changes only to the part of the image specified by the given mask.
edit(Image, Image, String) - Method in class dev.langchain4j.model.vertexai.VertexAiImageModel
 
edit(Image, String) - Method in class dev.langchain4j.model.image.DisabledImageModel
 
edit(Image, String) - Method in interface dev.langchain4j.model.image.ImageModel
Given an existing image, edit this image following the given prompt.
edit(Image, String) - Method in class dev.langchain4j.model.vertexai.VertexAiImageModel
 
efConstruction(Integer) - Method in class dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore.AzureCosmosDbMongoVCoreEmbeddingStore.Builder
 
efSearch(Integer) - Method in class dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore.AzureCosmosDbMongoVCoreEmbeddingStore.Builder
 
ElasticsearchEmbeddingStore - Class in dev.langchain4j.store.embedding.elasticsearch
Represents an Elasticsearch index as an embedding store.
ElasticsearchEmbeddingStore(String, String, String, String, String, Integer) - Constructor for class dev.langchain4j.store.embedding.elasticsearch.ElasticsearchEmbeddingStore
Creates an instance of ElasticsearchEmbeddingStore.
ElasticsearchEmbeddingStore(RestClient, String, Integer) - Constructor for class dev.langchain4j.store.embedding.elasticsearch.ElasticsearchEmbeddingStore
 
ElasticsearchEmbeddingStore.Builder - Class in dev.langchain4j.store.embedding.elasticsearch
 
ElasticsearchRequestFailedException - Exception Class in dev.langchain4j.store.embedding.elasticsearch
 
ElasticsearchRequestFailedException() - Constructor for exception class dev.langchain4j.store.embedding.elasticsearch.ElasticsearchRequestFailedException
 
ElasticsearchRequestFailedException(String) - Constructor for exception class dev.langchain4j.store.embedding.elasticsearch.ElasticsearchRequestFailedException
 
ElasticsearchRequestFailedException(String, Throwable) - Constructor for exception class dev.langchain4j.store.embedding.elasticsearch.ElasticsearchRequestFailedException
 
embed(TextSegment) - Method in class dev.langchain4j.model.embedding.DisabledEmbeddingModel
 
embed(TextSegment) - Method in interface dev.langchain4j.model.embedding.EmbeddingModel
Embed the text content of a TextSegment.
embed(EmbeddingRequest) - Method in interface dev.langchain4j.model.huggingface.client.HuggingFaceClient
 
embed(String) - Method in class dev.langchain4j.model.embedding.DisabledEmbeddingModel
 
embed(String) - Method in interface dev.langchain4j.model.embedding.EmbeddingModel
Embed a text.
embedAll(EmbeddingRequest) - Method in class dev.langchain4j.model.zhipu.ZhipuAiClient
 
embedAll(List<TextSegment>) - Method in class dev.langchain4j.model.azure.AzureOpenAiEmbeddingModel
Embeds the provided text segments, processing a maximum of 16 segments at a time.
embedAll(List<TextSegment>) - Method in class dev.langchain4j.model.bedrock.internal.AbstractBedrockEmbeddingModel
 
embedAll(List<TextSegment>) - Method in class dev.langchain4j.model.dashscope.QwenEmbeddingModel
 
embedAll(List<TextSegment>) - Method in class dev.langchain4j.model.embedding.DisabledEmbeddingModel
 
embedAll(List<TextSegment>) - Method in interface dev.langchain4j.model.embedding.EmbeddingModel
Embeds the text content of a list of TextSegments.
embedAll(List<TextSegment>) - Method in class dev.langchain4j.model.huggingface.HuggingFaceEmbeddingModel
 
embedAll(List<TextSegment>) - Method in class dev.langchain4j.model.localai.LocalAiEmbeddingModel
 
embedAll(List<TextSegment>) - Method in class dev.langchain4j.model.mistralai.MistralAiEmbeddingModel
Embeds a list of text segments using the Mistral AI embedding model.
embedAll(List<TextSegment>) - Method in class dev.langchain4j.model.nomic.NomicEmbeddingModel
 
embedAll(List<TextSegment>) - Method in class dev.langchain4j.model.ollama.OllamaEmbeddingModel
 
embedAll(List<TextSegment>) - Method in class dev.langchain4j.model.openai.OpenAiEmbeddingModel
 
embedAll(List<TextSegment>) - Method in class dev.langchain4j.model.qianfan.QianfanEmbeddingModel
 
embedAll(List<TextSegment>) - Method in class dev.langchain4j.model.vertexai.VertexAiEmbeddingModel
 
embedAll(List<TextSegment>) - Method in class dev.langchain4j.model.zhipu.ZhipuAiEmbeddingModel
 
embedded() - Method in class dev.langchain4j.store.embedding.EmbeddingMatch
Returns the original content that was embedded.
embedding() - Method in class dev.langchain4j.model.qianfan.client.embedding.EmbeddingData
 
embedding() - Method in class dev.langchain4j.model.qianfan.client.embedding.EmbeddingResponse
 
embedding() - Method in class dev.langchain4j.store.embedding.EmbeddingMatch
Returns the embedding that has been matched.
embedding() - Method in record class dev.langchain4j.store.embedding.infinispan.LangChainInfinispanItem
Returns the value of the embedding record component.
embedding(MistralAiEmbeddingRequest) - Method in class dev.langchain4j.model.mistralai.MistralAiClient
 
embedding(EmbeddingRequest, String) - Method in class dev.langchain4j.model.qianfan.client.QianfanClient
 
embedding(List<Float>) - Method in class dev.langchain4j.model.qianfan.client.embedding.EmbeddingData.Builder
 
embedding(List<Float>) - Method in class dev.langchain4j.model.zhipu.embedding.Embedding.Builder
 
Embedding - Class in dev.langchain4j.data.embedding
Represents a dense vector embedding of a text.
Embedding - Class in dev.langchain4j.model.zhipu.embedding
 
Embedding(float[]) - Constructor for class dev.langchain4j.data.embedding.Embedding
Creates a new Embedding.
EMBEDDING_2 - Enum constant in enum class dev.langchain4j.model.zhipu.embedding.EmbeddingModel
 
EMBEDDING_V1 - Enum constant in enum class dev.langchain4j.model.qianfan.QianfanEmbeddingModelNameEnum
 
Embedding.Builder - Class in dev.langchain4j.model.zhipu.embedding
 
EmbeddingData - Class in dev.langchain4j.model.qianfan.client.embedding
 
EmbeddingData.Builder - Class in dev.langchain4j.model.qianfan.client.embedding
 
embeddingId() - Method in class dev.langchain4j.store.embedding.EmbeddingMatch
The ID of the embedding assigned when adding this embedding to the store.
EmbeddingMatch<Embedded> - Class in dev.langchain4j.store.embedding
Represents a matched embedding along with its relevance score (derivative of cosine distance), ID, and original embedded content.
EmbeddingMatch(Double, String, Embedding, Embedded) - Constructor for class dev.langchain4j.store.embedding.EmbeddingMatch
Creates a new instance.
embeddingModel(EmbeddingModel) - Method in class dev.langchain4j.rag.content.retriever.azure.search.AzureAiSearchContentRetriever.Builder
Sets the Embedding Model.
embeddingModel(EmbeddingModel) - Method in class dev.langchain4j.store.embedding.EmbeddingStoreIngestor.Builder
Sets the embedding model.
EmbeddingModel - Enum Class in dev.langchain4j.model.zhipu.embedding
 
EmbeddingModel - Interface in dev.langchain4j.model.embedding
Represents a model that can convert a given text into an embedding (vector representation of the text).
EmbeddingModelFactory - Interface in dev.langchain4j.spi.model.embedding
A factory for creating EmbeddingModel instances through SPI.
EmbeddingModelTextClassifier<E> - Class in dev.langchain4j.classification
A TextClassifier that uses an EmbeddingModel and predefined examples to perform classification.
EmbeddingModelTextClassifier(EmbeddingModel, Map<E, ? extends Collection<String>>) - Constructor for class dev.langchain4j.classification.EmbeddingModelTextClassifier
Creates a classifier with the default values for EmbeddingModelTextClassifier.maxResults (1), EmbeddingModelTextClassifier.minScore (0) and EmbeddingModelTextClassifier.meanToMaxScoreRatio (0.5).
EmbeddingModelTextClassifier(EmbeddingModel, Map<E, ? extends Collection<String>>, int, double, double) - Constructor for class dev.langchain4j.classification.EmbeddingModelTextClassifier
Creates a classifier.
EmbeddingRequest - Class in dev.langchain4j.model.huggingface.client
 
EmbeddingRequest - Class in dev.langchain4j.model.qianfan.client.embedding
 
EmbeddingRequest - Class in dev.langchain4j.model.zhipu.embedding
 
EmbeddingRequest(List<String>, boolean) - Constructor for class dev.langchain4j.model.huggingface.client.EmbeddingRequest
 
EmbeddingRequest.Builder - Class in dev.langchain4j.model.qianfan.client.embedding
 
EmbeddingRequest.Builder - Class in dev.langchain4j.model.zhipu.embedding
 
EmbeddingResponse - Class in dev.langchain4j.model.qianfan.client.embedding
 
EmbeddingResponse - Class in dev.langchain4j.model.zhipu.embedding
 
EmbeddingResponse.Builder - Class in dev.langchain4j.model.qianfan.client.embedding
 
EmbeddingResponse.Builder - Class in dev.langchain4j.model.zhipu.embedding
 
EmbeddingSearchRequest - Class in dev.langchain4j.store.embedding
Represents a request to search in an EmbeddingStore.
EmbeddingSearchRequest(Embedding, Integer, Double, Filter) - Constructor for class dev.langchain4j.store.embedding.EmbeddingSearchRequest
Creates an instance of an EmbeddingSearchRequest.
EmbeddingSearchResult<Embedded> - Class in dev.langchain4j.store.embedding
Represents a result of a search in an EmbeddingStore.
EmbeddingSearchResult(List<EmbeddingMatch<Embedded>>) - Constructor for class dev.langchain4j.store.embedding.EmbeddingSearchResult
 
embeddingStore(EmbeddingStore<TextSegment>) - Method in class dev.langchain4j.store.embedding.EmbeddingStoreIngestor.Builder
Sets the embedding store.
EmbeddingStore<Embedded> - Interface in dev.langchain4j.store.embedding
Represents a store for embeddings, also known as a vector database.
EmbeddingStoreContentRetriever - Class in dev.langchain4j.rag.content.retriever
A ContentRetriever that retrieves from an EmbeddingStore.
EmbeddingStoreContentRetriever(EmbeddingStore<TextSegment>, EmbeddingModel) - Constructor for class dev.langchain4j.rag.content.retriever.EmbeddingStoreContentRetriever
 
EmbeddingStoreContentRetriever(EmbeddingStore<TextSegment>, EmbeddingModel, int) - Constructor for class dev.langchain4j.rag.content.retriever.EmbeddingStoreContentRetriever
 
EmbeddingStoreContentRetriever(EmbeddingStore<TextSegment>, EmbeddingModel, Integer, Double) - Constructor for class dev.langchain4j.rag.content.retriever.EmbeddingStoreContentRetriever
 
EmbeddingStoreContentRetriever.EmbeddingStoreContentRetrieverBuilder - Class in dev.langchain4j.rag.content.retriever
 
EmbeddingStoreContentRetrieverBuilder() - Constructor for class dev.langchain4j.rag.content.retriever.EmbeddingStoreContentRetriever.EmbeddingStoreContentRetrieverBuilder
 
EmbeddingStoreIngestor - Class in dev.langchain4j.store.embedding
The EmbeddingStoreIngestor represents an ingestion pipeline and is responsible for ingesting Documents into an EmbeddingStore.
EmbeddingStoreIngestor(DocumentTransformer, DocumentSplitter, TextSegmentTransformer, EmbeddingModel, EmbeddingStore<TextSegment>) - Constructor for class dev.langchain4j.store.embedding.EmbeddingStoreIngestor
Creates an instance of an EmbeddingStoreIngestor.
EmbeddingStoreIngestor.Builder - Class in dev.langchain4j.store.embedding
EmbeddingStoreIngestor builder.
EmbeddingStoreRetriever - Class in dev.langchain4j.retriever
 
EmbeddingStoreRetriever(EmbeddingStore<TextSegment>, EmbeddingModel, int, Double) - Constructor for class dev.langchain4j.retriever.EmbeddingStoreRetriever
 
embeddingTable - Variable in class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore
Represents an embedding table in Cassandra, it is a table with a vector column.
enable(Boolean) - Method in class dev.langchain4j.model.zhipu.chat.WebSearch.WebSearchBuilder
 
encode(String) - Method in class dev.langchain4j.model.openai.OpenAiTokenizer
 
encode(String, int) - Method in class dev.langchain4j.model.openai.OpenAiTokenizer
 
endpoint(String) - Method in class dev.langchain4j.model.azure.AzureOpenAiChatModel.Builder
Sets the Azure OpenAI endpoint.
endpoint(String) - Method in class dev.langchain4j.model.azure.AzureOpenAiEmbeddingModel.Builder
Sets the Azure OpenAI endpoint.
endpoint(String) - Method in class dev.langchain4j.model.azure.AzureOpenAiImageModel.Builder
Sets the Azure OpenAI endpoint.
endpoint(String) - Method in class dev.langchain4j.model.azure.AzureOpenAiLanguageModel.Builder
Sets the Azure OpenAI endpoint.
endpoint(String) - Method in class dev.langchain4j.model.azure.AzureOpenAiStreamingChatModel.Builder
Sets the Azure OpenAI endpoint.
endpoint(String) - Method in class dev.langchain4j.model.azure.AzureOpenAiStreamingLanguageModel.Builder
Sets the Azure OpenAI endpoint.
endpoint(String) - Method in class dev.langchain4j.model.vertexai.VertexAiChatModel.Builder
 
endpoint(String) - Method in class dev.langchain4j.model.vertexai.VertexAiEmbeddingModel.Builder
 
endpoint(String) - Method in class dev.langchain4j.model.vertexai.VertexAiImageModel.Builder
 
endpoint(String) - Method in class dev.langchain4j.model.vertexai.VertexAiLanguageModel.Builder
 
endpoint(String) - Method in class dev.langchain4j.rag.content.retriever.azure.search.AzureAiSearchContentRetriever.Builder
Sets the Azure AI Search endpoint.
endpoint(String) - Method in class dev.langchain4j.store.embedding.azure.search.AzureAiSearchEmbeddingStore.Builder
Sets the Azure AI Search endpoint.
endpointUrl(String) - Method in class dev.langchain4j.data.document.loader.amazon.s3.AmazonS3DocumentLoader.Builder
Specifies a custom endpoint URL to override the default service URL.
Enhance - Enum constant in enum class dev.langchain4j.model.bedrock.BedrockStabilityAIChatModel.StylePreset
 
EnhancedFileTypeDetector - Class in dev.langchain4j.model.dashscope
 
EnhancedFileTypeDetector() - Constructor for class dev.langchain4j.model.dashscope.EnhancedFileTypeDetector
 
enhancements(AzureChatEnhancementConfiguration) - Method in class dev.langchain4j.model.azure.AzureOpenAiChatModel.Builder
 
enhancements(AzureChatEnhancementConfiguration) - Method in class dev.langchain4j.model.azure.AzureOpenAiStreamingChatModel.Builder
 
ensureBetween(Double, double, double, String) - Static method in class dev.langchain4j.internal.ValidationUtils
Ensures that the given Double value is in [min, max].
ensureBetween(Integer, int, int, String) - Static method in class dev.langchain4j.internal.ValidationUtils
Ensures that the given Integer value is in [min, max].
ensureBetween(Long, long, long, String) - Static method in class dev.langchain4j.internal.ValidationUtils
Ensures that the given Long value is in [min, max].
ensureEq(Object, Object, String, Object...) - Static method in class dev.langchain4j.internal.ValidationUtils
Ensure that the two values are equal.
ensureGreaterThanZero(Integer, String) - Static method in class dev.langchain4j.internal.ValidationUtils
Ensures that the given expression is true.
ensureNotBlank(String, String) - Static method in class dev.langchain4j.internal.ValidationUtils
Ensures that the given string is not null and not blank.
ensureNotEmpty(Map<K, V>, String) - Static method in class dev.langchain4j.internal.ValidationUtils
Ensures that the given map is not null and not empty.
ensureNotEmpty(T, String) - Static method in class dev.langchain4j.internal.ValidationUtils
Ensures that the given collection is not null and not empty.
ensureNotNull(T, String) - Static method in class dev.langchain4j.internal.ValidationUtils
Ensures that the given object is not null.
ensureNotNull(T, String, Object...) - Static method in class dev.langchain4j.internal.ValidationUtils
Ensures that the given object is not null.
ensureTrue(boolean, String) - Static method in class dev.langchain4j.internal.ValidationUtils
Ensures that the given expression is true.
EnumOutputParser - Class in dev.langchain4j.model.output
 
EnumOutputParser(Class<? extends Enum>) - Constructor for class dev.langchain4j.model.output.EnumOutputParser
 
enums(Class<?>) - Static method in class dev.langchain4j.agent.tool.JsonSchemaProperty
Construct a property with key "enum" and all enum values taken from enumClass.
enums(Class<?>) - Static method in class dev.langchain4j.model.qianfan.client.chat.JsonSchemaProperty
 
enums(Object...) - Static method in class dev.langchain4j.agent.tool.JsonSchemaProperty
Construct a property with key "enum" and value enumValues.
enums(Object...) - Static method in class dev.langchain4j.model.qianfan.client.chat.JsonSchemaProperty
 
enums(String...) - Static method in class dev.langchain4j.agent.tool.JsonSchemaProperty
Construct a property with key "enum" and value enumValues.
enums(String...) - Static method in class dev.langchain4j.model.qianfan.client.chat.JsonSchemaProperty
 
env(AstraEnvironment) - Method in class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore.BuilderAstra
 
env(AstraEnvironment) - Method in class dev.langchain4j.store.memory.chat.cassandra.CassandraChatMemoryStore.BuilderAstra
 
environment(String) - Method in class dev.langchain4j.store.embedding.pinecone.PineconeEmbeddingStore.Builder
 
EPSILON - Static variable in class dev.langchain4j.store.embedding.CosineSimilarity
A small value to avoid division by zero.
equals(Object) - Method in class dev.langchain4j.agent.tool.JsonSchemaProperty
 
equals(Object) - Method in class dev.langchain4j.agent.tool.ToolExecutionRequest
 
equals(Object) - Method in class dev.langchain4j.agent.tool.ToolParameters
 
equals(Object) - Method in class dev.langchain4j.agent.tool.ToolSpecification
 
equals(Object) - Method in class dev.langchain4j.data.document.Document
 
equals(Object) - Method in class dev.langchain4j.data.document.Metadata
 
equals(Object) - Method in class dev.langchain4j.data.embedding.Embedding
 
equals(Object) - Method in class dev.langchain4j.data.image.Image
 
equals(Object) - Method in class dev.langchain4j.data.message.AiMessage
 
equals(Object) - Method in class dev.langchain4j.data.message.ImageContent
 
equals(Object) - Method in class dev.langchain4j.data.message.SystemMessage
 
equals(Object) - Method in class dev.langchain4j.data.message.TextContent
 
equals(Object) - Method in class dev.langchain4j.data.message.ToolExecutionResultMessage
 
equals(Object) - Method in class dev.langchain4j.data.message.UserMessage
 
equals(Object) - Method in class dev.langchain4j.data.segment.TextSegment
 
equals(Object) - Method in class dev.langchain4j.model.huggingface.client.Options
 
equals(Object) - Method in class dev.langchain4j.model.huggingface.client.Parameters
 
equals(Object) - Method in class dev.langchain4j.model.huggingface.client.TextGenerationRequest
 
equals(Object) - Method in class dev.langchain4j.model.input.Prompt
 
equals(Object) - Method in class dev.langchain4j.model.moderation.Moderation
 
equals(Object) - Method in class dev.langchain4j.model.output.Response
 
equals(Object) - Method in class dev.langchain4j.model.output.TokenUsage
 
equals(Object) - Method in class dev.langchain4j.model.qianfan.client.chat.FunctionCall
 
equals(Object) - Method in class dev.langchain4j.model.qianfan.client.chat.JsonSchemaProperty
 
equals(Object) - Method in class dev.langchain4j.model.qianfan.client.chat.Message
 
equals(Object) - Method in class dev.langchain4j.model.qianfan.client.chat.Parameters
 
equals(Object) - Method in class dev.langchain4j.model.qianfan.client.chat.Responses
 
equals(Object) - Method in class dev.langchain4j.model.qianfan.client.embedding.EmbeddingRequest
 
equals(Object) - Method in class dev.langchain4j.model.qianfan.client.Usage
 
equals(Object) - Method in class dev.langchain4j.model.zhipu.embedding.EmbeddingRequest
 
equals(Object) - Method in class dev.langchain4j.rag.content.Content
 
equals(Object) - Method in class dev.langchain4j.rag.query.Metadata
 
equals(Object) - Method in class dev.langchain4j.rag.query.Query
 
equals(Object) - Method in class dev.langchain4j.store.embedding.EmbeddingMatch
 
equals(Object) - Method in record class dev.langchain4j.store.embedding.infinispan.InfinispanStoreConfiguration
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dev.langchain4j.store.embedding.infinispan.LangChainInfinispanItem
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class dev.langchain4j.store.embedding.infinispan.LangChainMetadata
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class dev.langchain4j.web.search.WebSearchInformationResult
 
equals(Object) - Method in class dev.langchain4j.web.search.WebSearchOrganicResult
 
equals(Object) - Method in class dev.langchain4j.web.search.WebSearchRequest
 
equals(Object) - Method in class dev.langchain4j.web.search.WebSearchResults
 
ERNIE_BOT - Enum constant in enum class dev.langchain4j.model.qianfan.QianfanChatModelNameEnum
 
ERNIE_BOT_4 - Enum constant in enum class dev.langchain4j.model.qianfan.QianfanChatModelNameEnum
 
ERNIE_BOT_8 - Enum constant in enum class dev.langchain4j.model.qianfan.QianfanChatModelNameEnum
 
ERNIE_BOT_TURBO - Enum constant in enum class dev.langchain4j.model.qianfan.QianfanChatModelNameEnum
 
errorCode(Integer) - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionResponse.Builder
 
ErrorHandling - Interface in dev.langchain4j.model.qianfan.client
 
errorMsg(String) - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionResponse.Builder
 
estimateTokenCount(UserMessage) - Method in interface dev.langchain4j.model.chat.TokenCountEstimator
Estimates the count of tokens in the specified message.
estimateTokenCount(TextSegment) - Method in interface dev.langchain4j.model.chat.TokenCountEstimator
Estimates the count of tokens in the specified text segment.
estimateTokenCount(TextSegment) - Method in interface dev.langchain4j.model.embedding.TokenCountEstimator
Estimates the count of tokens in the given text segment.
estimateTokenCount(TextSegment) - Method in interface dev.langchain4j.model.language.TokenCountEstimator
Estimates the count of tokens in the given text segment.
estimateTokenCount(Prompt) - Method in interface dev.langchain4j.model.chat.TokenCountEstimator
Estimates the count of tokens in the specified prompt.
estimateTokenCount(Prompt) - Method in interface dev.langchain4j.model.language.TokenCountEstimator
Estimates the count of tokens in the given prompt.
estimateTokenCount(String) - Method in class dev.langchain4j.model.azure.AzureOpenAiEmbeddingModel
 
estimateTokenCount(String) - Method in class dev.langchain4j.model.azure.AzureOpenAiLanguageModel
 
estimateTokenCount(String) - Method in class dev.langchain4j.model.azure.AzureOpenAiStreamingLanguageModel
 
estimateTokenCount(String) - Method in interface dev.langchain4j.model.chat.TokenCountEstimator
Estimates the count of tokens in the specified text.
estimateTokenCount(String) - Method in interface dev.langchain4j.model.embedding.TokenCountEstimator
Estimates the count of tokens in the given text.
estimateTokenCount(String) - Method in interface dev.langchain4j.model.language.TokenCountEstimator
Estimates the count of tokens in the given text.
estimateTokenCount(String) - Method in class dev.langchain4j.model.openai.OpenAiEmbeddingModel
 
estimateTokenCount(String) - Method in class dev.langchain4j.model.openai.OpenAiLanguageModel
 
estimateTokenCount(String) - Method in class dev.langchain4j.model.openai.OpenAiStreamingLanguageModel
 
estimateTokenCount(List<ChatMessage>) - Method in class dev.langchain4j.model.azure.AzureOpenAiChatModel
 
estimateTokenCount(List<ChatMessage>) - Method in class dev.langchain4j.model.azure.AzureOpenAiStreamingChatModel
 
estimateTokenCount(List<ChatMessage>) - Method in interface dev.langchain4j.model.chat.TokenCountEstimator
Estimates the count of tokens in the specified list of messages.
estimateTokenCount(List<ChatMessage>) - Method in class dev.langchain4j.model.openai.OpenAiChatModel
 
estimateTokenCount(List<ChatMessage>) - Method in class dev.langchain4j.model.openai.OpenAiStreamingChatModel
 
estimateTokenCount(List<TextSegment>) - Method in interface dev.langchain4j.model.embedding.TokenCountEstimator
Estimates the count of tokens in the given text segments.
estimateTokenCountInForcefulToolExecutionRequest(ToolExecutionRequest) - Method in class dev.langchain4j.model.openai.OpenAiTokenizer
 
estimateTokenCountInForcefulToolExecutionRequest(ToolExecutionRequest) - Method in interface dev.langchain4j.model.Tokenizer
Estimates the count of tokens in the given tool execution request.
estimateTokenCountInForcefulToolSpecification(ToolSpecification) - Method in class dev.langchain4j.model.openai.OpenAiTokenizer
 
estimateTokenCountInForcefulToolSpecification(ToolSpecification) - Method in interface dev.langchain4j.model.Tokenizer
Estimates the count of tokens in the given tool specification.
estimateTokenCountInMessage(ChatMessage) - Method in class dev.langchain4j.model.dashscope.QwenTokenizer
 
estimateTokenCountInMessage(ChatMessage) - Method in class dev.langchain4j.model.openai.OpenAiTokenizer
 
estimateTokenCountInMessage(ChatMessage) - Method in interface dev.langchain4j.model.Tokenizer
Estimates the count of tokens in the given message.
estimateTokenCountInMessages(Iterable<ChatMessage>) - Method in class dev.langchain4j.model.dashscope.QwenTokenizer
 
estimateTokenCountInMessages(Iterable<ChatMessage>) - Method in class dev.langchain4j.model.openai.OpenAiTokenizer
 
estimateTokenCountInMessages(Iterable<ChatMessage>) - Method in interface dev.langchain4j.model.Tokenizer
Estimates the count of tokens in the given messages.
estimateTokenCountInText(String) - Method in class dev.langchain4j.model.dashscope.QwenTokenizer
 
estimateTokenCountInText(String) - Method in class dev.langchain4j.model.openai.OpenAiTokenizer
 
estimateTokenCountInText(String) - Method in interface dev.langchain4j.model.Tokenizer
Estimates the count of tokens in the given text.
estimateTokenCountInToolExecutionRequests(Iterable<ToolExecutionRequest>) - Method in class dev.langchain4j.model.dashscope.QwenTokenizer
 
estimateTokenCountInToolExecutionRequests(Iterable<ToolExecutionRequest>) - Method in class dev.langchain4j.model.openai.OpenAiTokenizer
 
estimateTokenCountInToolExecutionRequests(Iterable<ToolExecutionRequest>) - Method in interface dev.langchain4j.model.Tokenizer
Estimates the count of tokens in the given tool execution requests.
estimateTokenCountInTools(Iterable<Object>) - Method in interface dev.langchain4j.model.Tokenizer
Estimates the count of tokens in Tool annotations of the given objects.
estimateTokenCountInTools(Object) - Method in interface dev.langchain4j.model.Tokenizer
Estimates the count of tokens in Tool annotations of the given object.
estimateTokenCountInToolSpecifications(Iterable<ToolSpecification>) - Method in class dev.langchain4j.model.dashscope.QwenTokenizer
 
estimateTokenCountInToolSpecifications(Iterable<ToolSpecification>) - Method in class dev.langchain4j.model.openai.OpenAiTokenizer
 
estimateTokenCountInToolSpecifications(Iterable<ToolSpecification>) - Method in interface dev.langchain4j.model.Tokenizer
Estimates the count of tokens in the given tool specifications.
examples() - Method in class dev.langchain4j.model.qianfan.client.chat.Function
 
examples(Examples) - Method in class dev.langchain4j.model.qianfan.client.chat.Function.Builder
 
Examples - Class in dev.langchain4j.model.qianfan.client.chat
 
Examples.Builder - Class in dev.langchain4j.model.qianfan.client.chat
 
Exceptions - Class in dev.langchain4j.internal
Utility methods for creating common exceptions.
execute() - Method in interface dev.langchain4j.model.qianfan.client.ErrorHandling
 
execute() - Method in class dev.langchain4j.model.qianfan.client.RequestExecutor
 
execute() - Method in interface dev.langchain4j.model.qianfan.client.SyncOrAsync
 
execute() - Method in class dev.langchain4j.model.qianfan.client.SyncRequestExecutor
 
execute(ToolExecutionRequest, Object) - Method in class dev.langchain4j.agent.tool.DefaultToolExecutor
 
execute(ToolExecutionRequest, Object) - Method in interface dev.langchain4j.agent.tool.ToolExecutor
 
execute(Input) - Method in interface dev.langchain4j.chain.Chain
Execute the chain step.
execute(String) - Method in class dev.langchain4j.chain.ConversationalChain
 
execute(String) - Method in class dev.langchain4j.chain.ConversationalRetrievalChain
 
execute(String) - Method in interface dev.langchain4j.code.CodeExecutionEngine
Execute the given code.
execute(String) - Method in class dev.langchain4j.code.graalvm.GraalVmJavaScriptExecutionEngine
 
execute(String) - Method in class dev.langchain4j.code.graalvm.GraalVmPythonExecutionEngine
 
executeJavaScriptCode(String) - Method in class dev.langchain4j.agent.tool.graalvm.GraalVmJavaScriptExecutionTool
 
executeJavaScriptCode(String) - Method in class dev.langchain4j.code.Judge0JavaScriptExecutionTool
 
executePythonCode(String) - Method in class dev.langchain4j.agent.tool.graalvm.GraalVmPythonExecutionTool
 
executeRead(String) - Method in class dev.langchain4j.store.graph.neo4j.Neo4jGraph
 
executeWrite(String) - Method in class dev.langchain4j.store.graph.neo4j.Neo4jGraph
 
ExpandingQueryTransformer - Class in dev.langchain4j.rag.query.transformer
A QueryTransformer that utilizes a ChatLanguageModel to expand a given Query.
ExpandingQueryTransformer(ChatLanguageModel) - Constructor for class dev.langchain4j.rag.query.transformer.ExpandingQueryTransformer
 
ExpandingQueryTransformer(ChatLanguageModel, int) - Constructor for class dev.langchain4j.rag.query.transformer.ExpandingQueryTransformer
 
ExpandingQueryTransformer(ChatLanguageModel, PromptTemplate) - Constructor for class dev.langchain4j.rag.query.transformer.ExpandingQueryTransformer
 
ExpandingQueryTransformer(ChatLanguageModel, PromptTemplate, Integer) - Constructor for class dev.langchain4j.rag.query.transformer.ExpandingQueryTransformer
 
Experimental - Annotation Interface in dev.langchain4j
Indicates that a class/constructor/method is experimental and might change in the future.
expiresIn(Integer) - Method in class dev.langchain4j.model.qianfan.client.chat.ChatTokenResponse.Builder
 
expression() - Method in class dev.langchain4j.store.embedding.filter.logical.Not
 
extractSelectStatement(String) - Method in class dev.langchain4j.store.embedding.filter.builder.sql.LanguageModelSqlFilterBuilder
 

F

FAIL - Enum constant in enum class dev.langchain4j.rag.query.router.LanguageModelQueryRouter.FallbackStrategy
In this case, an original exception will be re-thrown, and the RAG flow will fail.
fallback(Query, Exception) - Method in class dev.langchain4j.rag.query.router.LanguageModelQueryRouter
 
fallback(Query, String, String, Exception) - Method in class dev.langchain4j.store.embedding.filter.builder.sql.LanguageModelSqlFilterBuilder
 
fallbackStrategy - Variable in class dev.langchain4j.rag.query.router.LanguageModelQueryRouter
 
FantasyArt - Enum constant in enum class dev.langchain4j.model.bedrock.BedrockStabilityAIChatModel.StylePreset
 
FILE_NAME - Static variable in class dev.langchain4j.data.document.Document
Common metadata key for the name of the file from which the document was loaded.
fileName() - Method in record class dev.langchain4j.store.embedding.infinispan.InfinispanStoreConfiguration
Returns the value of the fileName record component.
fileName(String) - Method in class dev.langchain4j.store.embedding.infinispan.InfinispanEmbeddingStore.Builder
Infinispan schema file name
FileSystemDocumentLoader - Class in dev.langchain4j.data.document.loader
 
FileSystemSource - Class in dev.langchain4j.data.document.source
 
FileSystemSource(Path) - Constructor for class dev.langchain4j.data.document.source.FileSystemSource
 
filter() - Method in class dev.langchain4j.store.embedding.EmbeddingSearchRequest
 
filter(Filter) - Method in class dev.langchain4j.rag.content.retriever.EmbeddingStoreContentRetriever.EmbeddingStoreContentRetrieverBuilder
 
filter(Bson) - Method in class dev.langchain4j.store.embedding.mongodb.MongoDbEmbeddingStore.Builder
Document query filter, all fields included in filter must be contained in IndexMapping.metadataFieldNames
Filter - Interface in dev.langchain4j.store.embedding.filter
This class represents a filter that can be applied during search in an EmbeddingStore.
FilterParser - Interface in dev.langchain4j.store.embedding.filter
Parses a filter expression string into a Filter object.
findRelevant(Embedding, int) - Method in interface dev.langchain4j.store.embedding.EmbeddingStore
Finds the most relevant (closest in space) embeddings to the provided reference embedding.
findRelevant(Embedding, int, double) - Method in class dev.langchain4j.store.embedding.astradb.AstraDbEmbeddingStore
Finds the most relevant (closest in space) embeddings to the provided reference embedding.
findRelevant(Embedding, int, double) - Method in class dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore.AzureCosmosDbMongoVCoreEmbeddingStore
 
findRelevant(Embedding, int, double) - Method in class dev.langchain4j.store.embedding.azure.search.AbstractAzureAiSearchEmbeddingStore
 
findRelevant(Embedding, int, double) - Method in class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore
Search for relevant.
findRelevant(Embedding, int, double) - Method in class dev.langchain4j.store.embedding.chroma.ChromaEmbeddingStore
 
findRelevant(Embedding, int, double) - Method in interface dev.langchain4j.store.embedding.EmbeddingStore
Finds the most relevant (closest in space) embeddings to the provided reference embedding.
findRelevant(Embedding, int, double) - Method in class dev.langchain4j.store.embedding.infinispan.InfinispanEmbeddingStore
 
findRelevant(Embedding, int, double) - Method in class dev.langchain4j.store.embedding.mongodb.MongoDbEmbeddingStore
 
findRelevant(Embedding, int, double) - Method in class dev.langchain4j.store.embedding.neo4j.Neo4jEmbeddingStore
 
findRelevant(Embedding, int, double) - Method in class dev.langchain4j.store.embedding.opensearch.OpenSearchEmbeddingStore
This implementation uses the exact k-NN with scoring script to calculate See https://opensearch.org/docs/latest/search-plugins/knn/knn-score-script/
findRelevant(Embedding, int, double) - Method in class dev.langchain4j.store.embedding.pinecone.PineconeEmbeddingStore
 
findRelevant(Embedding, int, double) - Method in class dev.langchain4j.store.embedding.qdrant.QdrantEmbeddingStore
 
findRelevant(Embedding, int, double) - Method in class dev.langchain4j.store.embedding.redis.RedisEmbeddingStore
 
findRelevant(Embedding, int, double) - Method in class dev.langchain4j.store.embedding.vearch.VearchEmbeddingStore
 
findRelevant(Embedding, int, double) - Method in class dev.langchain4j.store.embedding.vespa.VespaEmbeddingStore
Finds the most relevant (closest in space) embeddings to the provided reference embedding.
findRelevant(Embedding, int, double) - Method in class dev.langchain4j.store.embedding.weaviate.WeaviateEmbeddingStore
Finds the most relevant (closest in space) embeddings to the provided reference embedding.
findRelevant(Embedding, int, double, Metadata) - Method in class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore
Similarity Search ANN based on the embedding.
findRelevant(Embedding, Filter, int, double) - Method in class dev.langchain4j.store.embedding.astradb.AstraDbEmbeddingStore
Semantic search with metadata filtering.
findRelevant(Object, Embedding, int) - Method in interface dev.langchain4j.store.embedding.EmbeddingStore
Finds the most relevant (closest in space) embeddings to the provided reference embedding.
findRelevant(Object, Embedding, int, double) - Method in interface dev.langchain4j.store.embedding.EmbeddingStore
Finds the most relevant (closest in space) embeddings to the provided reference embedding.
findRelevant(Object, String) - Method in interface dev.langchain4j.retriever.Retriever
Deprecated.
Find relevant items for the given text and memoryId.
findRelevant(String) - Method in class dev.langchain4j.retriever.EmbeddingStoreRetriever
 
findRelevant(String) - Method in interface dev.langchain4j.retriever.Retriever
Deprecated.
Find relevant items for the given text.
finishReason() - Method in class dev.langchain4j.model.output.Response
Get the finish reason.
finishReason(String) - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionResponse.Builder
 
finishReason(String) - Method in class dev.langchain4j.model.zhipu.chat.ChatCompletionChoice.Builder
 
FinishReason - Enum Class in dev.langchain4j.model.output
The reason why a model call finished.
finishReasonFrom(String) - Static method in class dev.langchain4j.model.mistralai.DefaultMistralAiHelper
 
finishReasonFrom(String) - Static method in class dev.langchain4j.model.openai.InternalOpenAiHelper
 
finishReasonFrom(String) - Static method in class dev.langchain4j.model.qianfan.InternalQianfanHelper
 
firstChars(String, int) - Static method in class dev.langchain4j.internal.Utils
Returns the first numberOfChars characters of the given string.
flagged() - Method in class dev.langchain4j.model.moderation.Moderation
Returns true if the text was flagged.
flagged(String) - Static method in class dev.langchain4j.model.moderation.Moderation
Constructs a Moderation object that is flagged.
flaggedText() - Method in class dev.langchain4j.model.moderation.Moderation
Returns the text that was flagged.
FLAT - Enum constant in enum class dev.langchain4j.store.embedding.vearch.RetrievalType
 
FLAT() - Constructor for class dev.langchain4j.store.embedding.vearch.RetrievalParam.FLAT
 
FLOAT - Enum constant in enum class dev.langchain4j.store.embedding.vearch.SpacePropertyType
 
FloatOutputParser - Class in dev.langchain4j.model.output
 
FloatOutputParser() - Constructor for class dev.langchain4j.model.output.FloatOutputParser
 
FloatParam() - Constructor for class dev.langchain4j.store.embedding.vearch.SpacePropertyParam.FloatParam
 
FloatParam(Boolean) - Constructor for class dev.langchain4j.store.embedding.vearch.SpacePropertyParam.FloatParam
 
forcePathStyle(boolean) - Method in class dev.langchain4j.data.document.loader.amazon.s3.AmazonS3DocumentLoader.Builder
Set the forcePathStyle.
format(Metadata) - Method in class dev.langchain4j.rag.content.injector.DefaultContentInjector
 
format(ChatMessage) - Method in class dev.langchain4j.rag.query.transformer.CompressingQueryTransformer
 
format(Content) - Method in class dev.langchain4j.rag.content.injector.DefaultContentInjector
 
format(TableDefinition) - Method in class dev.langchain4j.store.embedding.filter.builder.sql.LanguageModelSqlFilterBuilder
 
format(String, String) - Method in class dev.langchain4j.rag.content.injector.DefaultContentInjector
 
format(List<ChatMessage>) - Method in class dev.langchain4j.rag.query.transformer.CompressingQueryTransformer
 
format(List<Content>) - Method in class dev.langchain4j.rag.content.injector.DefaultContentInjector
 
formatInstructions() - Method in class dev.langchain4j.model.output.BigDecimalOutputParser
 
formatInstructions() - Method in class dev.langchain4j.model.output.BigIntegerOutputParser
 
formatInstructions() - Method in class dev.langchain4j.model.output.BooleanOutputParser
 
formatInstructions() - Method in class dev.langchain4j.model.output.ByteOutputParser
 
formatInstructions() - Method in class dev.langchain4j.model.output.DateOutputParser
 
formatInstructions() - Method in class dev.langchain4j.model.output.DoubleOutputParser
 
formatInstructions() - Method in class dev.langchain4j.model.output.EnumOutputParser
 
formatInstructions() - Method in class dev.langchain4j.model.output.FloatOutputParser
 
formatInstructions() - Method in class dev.langchain4j.model.output.IntOutputParser
 
formatInstructions() - Method in class dev.langchain4j.model.output.LocalDateOutputParser
 
formatInstructions() - Method in class dev.langchain4j.model.output.LocalDateTimeOutputParser
 
formatInstructions() - Method in class dev.langchain4j.model.output.LocalTimeOutputParser
 
formatInstructions() - Method in class dev.langchain4j.model.output.LongOutputParser
 
formatInstructions() - Method in interface dev.langchain4j.model.output.OutputParser
Description of the text format.
formatInstructions() - Method in class dev.langchain4j.model.output.ShortOutputParser
 
frequencyPenalty(Double) - Method in class dev.langchain4j.model.azure.AzureOpenAiChatModel.Builder
 
frequencyPenalty(Double) - Method in class dev.langchain4j.model.azure.AzureOpenAiLanguageModel.Builder
 
frequencyPenalty(Double) - Method in class dev.langchain4j.model.azure.AzureOpenAiStreamingChatModel.Builder
 
frequencyPenalty(Double) - Method in class dev.langchain4j.model.azure.AzureOpenAiStreamingLanguageModel.Builder
 
from(float[]) - Static method in class dev.langchain4j.data.embedding.Embedding
Creates a new Embedding from the given vector.
from(ToolExecutionRequest...) - Static method in class dev.langchain4j.data.message.AiMessage
Create a new AiMessage with the given tool execution requests.
from(ToolExecutionRequest, String) - Static method in class dev.langchain4j.data.message.ToolExecutionResultMessage
Creates a ToolExecutionResultMessage from a ToolExecutionRequest and the result of the tool execution.
from(Image) - Static method in class dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given image.
from(Image, ImageContent.DetailLevel) - Static method in class dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given image.
from(Content...) - Static method in class dev.langchain4j.data.message.UserMessage
Create a UserMessage from contents.
from(UserMessage, Object, List<ChatMessage>) - Static method in class dev.langchain4j.rag.query.Metadata
 
from(TextSegment) - Static method in class dev.langchain4j.rag.content.Content
 
from(ChatCompletionRequest) - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionRequest.Builder
 
from(CompletionRequest) - Method in class dev.langchain4j.model.qianfan.client.completion.CompletionRequest.Builder
 
from(ChatCompletionRequest) - Method in class dev.langchain4j.model.zhipu.chat.ChatCompletionRequest.Builder
 
from(Function) - Static method in class dev.langchain4j.model.zhipu.chat.Tool
 
from(EmbeddingStore<TextSegment>) - Static method in class dev.langchain4j.rag.content.retriever.EmbeddingStoreContentRetriever
Creates an instance of an EmbeddingStoreContentRetriever from the specified EmbeddingStore and EmbeddingModel found through SPI (see EmbeddingModelFactory).
from(EmbeddingStore<TextSegment>, EmbeddingModel) - Static method in class dev.langchain4j.retriever.EmbeddingStoreRetriever
 
from(EmbeddingStore<TextSegment>, EmbeddingModel, int) - Static method in class dev.langchain4j.retriever.EmbeddingStoreRetriever
 
from(EmbeddingStore<TextSegment>, EmbeddingModel, int, double) - Static method in class dev.langchain4j.retriever.EmbeddingStoreRetriever
 
from(WebSearchEngine) - Static method in class dev.langchain4j.rag.content.retriever.WebSearchContentRetriever
Creates a new instance of WebSearchContentRetriever with the specified WebSearchEngine.
from(WebSearchEngine) - Static method in class dev.langchain4j.web.search.WebSearchTool
Creates a new WebSearchTool with the specified web search engine.
from(WebSearchInformationResult, List<WebSearchOrganicResult>) - Static method in class dev.langchain4j.web.search.WebSearchResults
Creates a new instance of WebSearchResults from the specified parameters.
from(File) - Static method in class dev.langchain4j.data.document.source.FileSystemSource
 
from(Long) - Static method in class dev.langchain4j.web.search.WebSearchInformationResult
Creates a new WebSearchInformationResult with the specified total results.
from(Long, Integer, Map<String, Object>) - Static method in class dev.langchain4j.web.search.WebSearchInformationResult
Creates a new WebSearchInformationResult with the specified total results, page number, and metadata.
from(String) - Static method in class dev.langchain4j.data.document.Document
Creates a new Document from the given text.
from(String) - Static method in class dev.langchain4j.data.document.source.FileSystemSource
 
from(String) - Static method in class dev.langchain4j.data.document.source.UrlSource
 
from(String) - Static method in class dev.langchain4j.data.message.AiMessage
Create a new AiMessage with the given text.
from(String) - Static method in class dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given url.
from(String) - Static method in class dev.langchain4j.data.message.SystemMessage
Creates a new system message.
from(String) - Static method in class dev.langchain4j.data.message.TextContent
Creates a new text content.
from(String) - Static method in class dev.langchain4j.data.message.UserMessage
Create a UserMessage from a text.
from(String) - Static method in class dev.langchain4j.data.segment.TextSegment
Creates a new text segment.
from(String) - Static method in class dev.langchain4j.model.input.Prompt
Create a new Prompt.
from(String) - Static method in class dev.langchain4j.model.input.PromptTemplate
Create a new PromptTemplate.
from(String) - Static method in class dev.langchain4j.model.zhipu.chat.AssistantMessage
 
from(String) - Static method in class dev.langchain4j.model.zhipu.chat.SystemMessage
 
from(String) - Static method in class dev.langchain4j.model.zhipu.chat.ToolChoice
 
from(String) - Static method in class dev.langchain4j.model.zhipu.chat.UserMessage
 
from(String) - Static method in class dev.langchain4j.rag.content.Content
 
from(String) - Static method in class dev.langchain4j.rag.query.Query
 
from(String) - Static method in class dev.langchain4j.store.embedding.pgvector.MetadataColumDefinition
transform sql string to MetadataColumDefinition
from(String) - Static method in class dev.langchain4j.web.search.WebSearchRequest
Create a web search request with the given search terms.
from(String, Metadata) - Static method in class dev.langchain4j.data.document.Document
Creates a new Document from the given text.
from(String, Metadata) - Static method in class dev.langchain4j.data.segment.TextSegment
Creates a new text segment.
from(String, Content...) - Static method in class dev.langchain4j.data.message.UserMessage
Create a UserMessage from a name and contents.
from(String, ImageContent.DetailLevel) - Static method in class dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given url and detail level.
from(String, Metadata) - Static method in class dev.langchain4j.rag.query.Query
 
from(String, Integer) - Static method in class dev.langchain4j.web.search.WebSearchRequest
Create a web search request with the given search terms and maximum number of results.
from(String, Object) - Static method in class dev.langchain4j.agent.tool.JsonSchemaProperty
Construct a property with key and value.
from(String, Object) - Static method in class dev.langchain4j.data.document.Metadata
Deprecated.
from(String, Object) - Static method in class dev.langchain4j.model.qianfan.client.chat.JsonSchemaProperty
 
from(String, String) - Static method in class dev.langchain4j.data.document.Metadata
Constructs a Metadata object from a single key-value pair.
from(String, String) - Static method in class dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given base64 data and mime type.
from(String, String) - Static method in class dev.langchain4j.data.message.UserMessage
Create a UserMessage from a name and a text.
from(String, String) - Static method in class dev.langchain4j.model.zhipu.chat.ToolMessage
 
from(String, String, ImageContent.DetailLevel) - Static method in class dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given base64 data and mime type.
from(String, String, String) - Static method in class dev.langchain4j.data.message.ToolExecutionResultMessage
Creates a ToolExecutionResultMessage from a ToolExecutionRequest and the result of the tool execution.
from(String, URI) - Static method in class dev.langchain4j.web.search.WebSearchOrganicResult
Creates a WebSearchOrganicResult object from the given title and URL.
from(String, URI, String, String) - Static method in class dev.langchain4j.web.search.WebSearchOrganicResult
Creates a WebSearchOrganicResult object from the given title, URL, snippet and/or content.
from(String, URI, String, String, Map<String, String>) - Static method in class dev.langchain4j.web.search.WebSearchOrganicResult
Creates a WebSearchOrganicResult object from the given title, URL, snippet and/or content, and result metadata.
from(String, List<Content>) - Static method in class dev.langchain4j.data.message.UserMessage
Create a UserMessage from a name and contents.
from(URI) - Static method in class dev.langchain4j.data.document.source.FileSystemSource
 
from(URI) - Static method in class dev.langchain4j.data.document.source.UrlSource
 
from(URI) - Static method in class dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given url.
from(URI, ImageContent.DetailLevel) - Static method in class dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given url and detail level.
from(URL) - Static method in class dev.langchain4j.data.document.source.UrlSource
 
from(Path) - Static method in class dev.langchain4j.data.document.source.FileSystemSource
 
from(List<ToolExecutionRequest>) - Static method in class dev.langchain4j.data.message.AiMessage
Create a new AiMessage with the given tool execution requests.
from(List<Content>) - Static method in class dev.langchain4j.data.message.UserMessage
Create a UserMessage from contents.
from(List<Float>) - Static method in class dev.langchain4j.data.embedding.Embedding
Creates a new Embedding from the given vector.
from(Map<String, ?>) - Static method in class dev.langchain4j.data.document.Metadata
Constructs a Metadata object from a map of key-value pairs.
from(Map<String, Object>, WebSearchInformationResult, List<WebSearchOrganicResult>) - Static method in class dev.langchain4j.web.search.WebSearchResults
Creates a new instance of WebSearchResults from the specified parameters.
from(T) - Static method in class dev.langchain4j.model.output.Response
Create a new Response.
from(T, TokenUsage) - Static method in class dev.langchain4j.model.output.Response
Create a new Response.
from(T, TokenUsage, FinishReason) - Static method in class dev.langchain4j.model.output.Response
Create a new Response.
fromAzureScoreToRelevanceScore(double) - Static method in class dev.langchain4j.store.embedding.azure.search.AbstractAzureAiSearchEmbeddingStore
Calculates LangChain4j's RelevanceScore from Azure AI Search's score.
fromClient(MongoClient) - Method in class dev.langchain4j.store.embedding.mongodb.MongoDbEmbeddingStore.Builder
Build Mongo Client, Please close the client to release resources after usage
fromCosineSimilarity(double) - Static method in class dev.langchain4j.store.embedding.RelevanceScore
Converts cosine similarity into relevance score.
fromFile(String) - Static method in class dev.langchain4j.store.embedding.inmemory.InMemoryEmbeddingStore
 
fromFile(Path) - Static method in class dev.langchain4j.store.embedding.inmemory.InMemoryEmbeddingStore
 
fromJson(String) - Method in class dev.langchain4j.store.embedding.inmemory.GsonInMemoryEmbeddingStoreJsonCodec
 
fromJson(String) - Static method in class dev.langchain4j.store.embedding.inmemory.InMemoryEmbeddingStore
 
fromJson(String) - Method in interface dev.langchain4j.store.embedding.inmemory.InMemoryEmbeddingStoreJsonCodec
 
fromJson(String, Class<T>) - Static method in class dev.langchain4j.internal.Json
Convert the given JSON string to an object of the given type.
fromJson(String, Class<T>) - Method in interface dev.langchain4j.internal.Json.JsonCodec
Convert the given JSON string to an object of the given type.
fromRelevanceScore(double) - Static method in class dev.langchain4j.store.embedding.CosineSimilarity
Converts relevance score into cosine similarity.
fromResource() - Element in annotation interface dev.langchain4j.service.SystemMessage
The resource from which to read the prompt template.
fromResource() - Element in annotation interface dev.langchain4j.service.UserMessage
The resource from which to read the prompt template.
fromString(String) - Static method in enum class dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore.AzureCosmosDbMongoVCoreEmbeddingStore.SimilarityMetric
 
fromString(String) - Static method in enum class dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore.AzureCosmosDbMongoVCoreEmbeddingStore.VectorIndexType
 
FULL_TEXT - Enum constant in enum class dev.langchain4j.rag.content.retriever.azure.search.AzureAiSearchQueryType
Uses the full text search to find the most similar TextSegments.
function(FunctionCall) - Method in class dev.langchain4j.model.zhipu.chat.ToolCall.Builder
 
Function - Class in dev.langchain4j.model.qianfan.client.chat
 
Function - Class in dev.langchain4j.model.zhipu.chat
 
FUNCTION - Enum constant in enum class dev.langchain4j.model.mistralai.MistralAiToolType
 
FUNCTION - Enum constant in enum class dev.langchain4j.model.qianfan.client.chat.Role
 
FUNCTION - Enum constant in enum class dev.langchain4j.model.zhipu.chat.Role
 
FUNCTION - Enum constant in enum class dev.langchain4j.model.zhipu.chat.ToolType
 
Function.Builder - Class in dev.langchain4j.model.qianfan.client.chat
 
Function.Builder - Class in dev.langchain4j.model.zhipu.chat
 
functionCall() - Method in class dev.langchain4j.model.qianfan.client.chat.Message
 
functionCall(FunctionCall) - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionResponse.Builder
 
functionCall(FunctionCall) - Method in class dev.langchain4j.model.qianfan.client.chat.Examples.Builder
 
functionCall(FunctionCall) - Method in class dev.langchain4j.model.qianfan.client.chat.Message.Builder
 
FunctionCall<T> - Class in dev.langchain4j.model.qianfan.client.chat
 
FunctionCall - Class in dev.langchain4j.model.zhipu.chat
 
FunctionCall.Builder - Class in dev.langchain4j.model.qianfan.client.chat
 
FunctionCall.Builder - Class in dev.langchain4j.model.zhipu.chat
 
functionMessage(String, String) - Static method in class dev.langchain4j.model.qianfan.client.chat.Message
 
functions() - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionRequest
 
functions(Function...) - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionRequest.Builder
 
functions(List<Function>) - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionRequest.Builder
 
fuse(Collection<List<Content>>) - Static method in class dev.langchain4j.rag.content.aggregator.ReciprocalRankFuser
Fuses multiple List<Content> into a single List<Content> using the Reciprocal Rank Fusion (RRF) algorithm with k=60.
fuse(Collection<List<Content>>, int) - Static method in class dev.langchain4j.rag.content.aggregator.ReciprocalRankFuser
Fuses multiple List<Content> into a single List<Content> using the Reciprocal Rank Fusion (RRF) algorithm.
fuse(Map<Query, Collection<List<Content>>>) - Method in class dev.langchain4j.rag.content.aggregator.DefaultContentAggregator
 
fuse(Map<Query, Collection<List<Content>>>) - Method in class dev.langchain4j.rag.content.aggregator.ReRankingContentAggregator
 

G

generate(ChatMessage...) - Method in interface dev.langchain4j.model.chat.ChatLanguageModel
Generates a response from the model based on a sequence of messages.
generate(ChatMessage...) - Method in class dev.langchain4j.model.chat.DisabledChatLanguageModel
 
generate(UserMessage, StreamingResponseHandler<AiMessage>) - Method in interface dev.langchain4j.model.chat.StreamingChatLanguageModel
Generates a response from the model based on a message from a user.
generate(TextGenerationRequest) - Method in interface dev.langchain4j.model.huggingface.client.HuggingFaceClient
 
generate(Prompt) - Method in class dev.langchain4j.model.language.DisabledLanguageModel
 
generate(Prompt) - Method in interface dev.langchain4j.model.language.LanguageModel
Generate a response to the given prompt.
generate(Prompt, StreamingResponseHandler<String>) - Method in class dev.langchain4j.model.language.DisabledStreamingLanguageModel
 
generate(Prompt, StreamingResponseHandler<String>) - Method in interface dev.langchain4j.model.language.StreamingLanguageModel
Generates a response from the model based on a prompt.
generate(String) - Method in class dev.langchain4j.model.azure.AzureOpenAiImageModel
 
generate(String) - Method in class dev.langchain4j.model.azure.AzureOpenAiLanguageModel
 
generate(String) - Method in interface dev.langchain4j.model.chat.ChatLanguageModel
Generates a response from the model based on a message from a user.
generate(String) - Method in class dev.langchain4j.model.chat.DisabledChatLanguageModel
 
generate(String) - Method in class dev.langchain4j.model.dashscope.QwenLanguageModel
 
generate(String) - Method in class dev.langchain4j.model.huggingface.HuggingFaceLanguageModel
 
generate(String) - Method in class dev.langchain4j.model.image.DisabledImageModel
 
generate(String) - Method in interface dev.langchain4j.model.image.ImageModel
Given a prompt, generate an image.
generate(String) - Method in class dev.langchain4j.model.language.DisabledLanguageModel
 
generate(String) - Method in interface dev.langchain4j.model.language.LanguageModel
Generate a response to the given prompt.
generate(String) - Method in class dev.langchain4j.model.localai.LocalAiLanguageModel
 
generate(String) - Method in class dev.langchain4j.model.ollama.OllamaLanguageModel
 
generate(String) - Method in class dev.langchain4j.model.openai.OpenAiImageModel
 
generate(String) - Method in class dev.langchain4j.model.openai.OpenAiLanguageModel
 
generate(String) - Method in class dev.langchain4j.model.qianfan.QianfanLanguageModel
 
generate(String) - Method in class dev.langchain4j.model.vertexai.VertexAiImageModel
 
generate(String) - Method in class dev.langchain4j.model.vertexai.VertexAiLanguageModel
 
generate(String, int) - Method in class dev.langchain4j.model.image.DisabledImageModel
 
generate(String, int) - Method in interface dev.langchain4j.model.image.ImageModel
Given a prompt, generate n images.
generate(String, int) - Method in class dev.langchain4j.model.openai.OpenAiImageModel
 
generate(String, int) - Method in class dev.langchain4j.model.vertexai.VertexAiImageModel
 
generate(String, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.chat.DisabledStreamingChatLanguageModel
 
generate(String, StreamingResponseHandler<AiMessage>) - Method in interface dev.langchain4j.model.chat.StreamingChatLanguageModel
Generates a response from the model based on a message from a user.
generate(String, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.zhipu.ZhipuAiStreamingChatModel
 
generate(String, StreamingResponseHandler<String>) - Method in class dev.langchain4j.model.azure.AzureOpenAiStreamingLanguageModel
 
generate(String, StreamingResponseHandler<String>) - Method in class dev.langchain4j.model.dashscope.QwenStreamingLanguageModel
 
generate(String, StreamingResponseHandler<String>) - Method in class dev.langchain4j.model.language.DisabledStreamingLanguageModel
 
generate(String, StreamingResponseHandler<String>) - Method in interface dev.langchain4j.model.language.StreamingLanguageModel
Generates a response from the model based on a prompt.
generate(String, StreamingResponseHandler<String>) - Method in class dev.langchain4j.model.localai.LocalAiStreamingLanguageModel
 
generate(String, StreamingResponseHandler<String>) - Method in class dev.langchain4j.model.ollama.OllamaStreamingLanguageModel
 
generate(String, StreamingResponseHandler<String>) - Method in class dev.langchain4j.model.openai.OpenAiStreamingLanguageModel
 
generate(String, StreamingResponseHandler<String>) - Method in class dev.langchain4j.model.qianfan.QianfanStreamingLanguageModel
 
generate(List<ChatMessage>) - Method in class dev.langchain4j.model.anthropic.AnthropicChatModel
 
generate(List<ChatMessage>) - Method in class dev.langchain4j.model.azure.AzureOpenAiChatModel
 
generate(List<ChatMessage>) - Method in class dev.langchain4j.model.bedrock.BedrockAnthropicMessageChatModel
 
generate(List<ChatMessage>) - Method in class dev.langchain4j.model.bedrock.BedrockMistralAiChatModel
 
generate(List<ChatMessage>) - Method in class dev.langchain4j.model.bedrock.internal.AbstractBedrockChatModel
 
generate(List<ChatMessage>) - Method in interface dev.langchain4j.model.chat.ChatLanguageModel
Generates a response from the model based on a sequence of messages.
generate(List<ChatMessage>) - Method in class dev.langchain4j.model.chat.DisabledChatLanguageModel
 
generate(List<ChatMessage>) - Method in class dev.langchain4j.model.chatglm.ChatGlmChatModel
 
generate(List<ChatMessage>) - Method in class dev.langchain4j.model.dashscope.QwenChatModel
 
generate(List<ChatMessage>) - Method in class dev.langchain4j.model.huggingface.HuggingFaceChatModel
 
generate(List<ChatMessage>) - Method in class dev.langchain4j.model.localai.LocalAiChatModel
 
generate(List<ChatMessage>) - Method in class dev.langchain4j.model.mistralai.MistralAiChatModel
Generates chat response based on the given list of messages.
generate(List<ChatMessage>) - Method in class dev.langchain4j.model.ollama.OllamaChatModel
 
generate(List<ChatMessage>) - Method in class dev.langchain4j.model.openai.OpenAiChatModel
 
generate(List<ChatMessage>) - Method in class dev.langchain4j.model.qianfan.QianfanChatModel
 
generate(List<ChatMessage>) - Method in class dev.langchain4j.model.vertexai.VertexAiChatModel
 
generate(List<ChatMessage>) - Method in class dev.langchain4j.model.vertexai.VertexAiGeminiChatModel
 
generate(List<ChatMessage>) - Method in class dev.langchain4j.model.zhipu.ZhipuAiChatModel
 
generate(List<ChatMessage>, ToolSpecification) - Method in class dev.langchain4j.model.azure.AzureOpenAiChatModel
 
generate(List<ChatMessage>, ToolSpecification) - Method in interface dev.langchain4j.model.chat.ChatLanguageModel
Generates a response from the model based on a list of messages and a single tool specification.
generate(List<ChatMessage>, ToolSpecification) - Method in class dev.langchain4j.model.chat.DisabledChatLanguageModel
 
generate(List<ChatMessage>, ToolSpecification) - Method in class dev.langchain4j.model.localai.LocalAiChatModel
 
generate(List<ChatMessage>, ToolSpecification) - Method in class dev.langchain4j.model.mistralai.MistralAiChatModel
Generates an AI message response based on the given list of chat messages and a tool specification.
generate(List<ChatMessage>, ToolSpecification) - Method in class dev.langchain4j.model.openai.OpenAiChatModel
 
generate(List<ChatMessage>, ToolSpecification) - Method in class dev.langchain4j.model.qianfan.QianfanChatModel
 
generate(List<ChatMessage>, ToolSpecification) - Method in class dev.langchain4j.model.vertexai.VertexAiGeminiChatModel
 
generate(List<ChatMessage>, ToolSpecification) - Method in class dev.langchain4j.model.zhipu.ZhipuAiChatModel
 
generate(List<ChatMessage>, ToolSpecification, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.azure.AzureOpenAiStreamingChatModel
 
generate(List<ChatMessage>, ToolSpecification, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.chat.DisabledStreamingChatLanguageModel
 
generate(List<ChatMessage>, ToolSpecification, StreamingResponseHandler<AiMessage>) - Method in interface dev.langchain4j.model.chat.StreamingChatLanguageModel
Generates a response from the model based on a list of messages and a tool specification.
generate(List<ChatMessage>, ToolSpecification, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.localai.LocalAiStreamingChatModel
 
generate(List<ChatMessage>, ToolSpecification, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.mistralai.MistralAiStreamingChatModel
Generates streamed token response based on the given list of messages and tool specification.
generate(List<ChatMessage>, ToolSpecification, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.openai.OpenAiStreamingChatModel
 
generate(List<ChatMessage>, ToolSpecification, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.qianfan.QianfanStreamingChatModel
 
generate(List<ChatMessage>, ToolSpecification, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.vertexai.VertexAiGeminiStreamingChatModel
 
generate(List<ChatMessage>, ToolSpecification, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.zhipu.ZhipuAiStreamingChatModel
 
generate(List<ChatMessage>, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.anthropic.AnthropicStreamingChatModel
 
generate(List<ChatMessage>, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.azure.AzureOpenAiStreamingChatModel
 
generate(List<ChatMessage>, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.chat.DisabledStreamingChatLanguageModel
 
generate(List<ChatMessage>, StreamingResponseHandler<AiMessage>) - Method in interface dev.langchain4j.model.chat.StreamingChatLanguageModel
Generates a response from the model based on a sequence of messages.
generate(List<ChatMessage>, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.dashscope.QwenStreamingChatModel
 
generate(List<ChatMessage>, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.localai.LocalAiStreamingChatModel
 
generate(List<ChatMessage>, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.mistralai.MistralAiStreamingChatModel
Generates streamed token response based on the given list of messages.
generate(List<ChatMessage>, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.ollama.OllamaStreamingChatModel
 
generate(List<ChatMessage>, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.openai.OpenAiStreamingChatModel
 
generate(List<ChatMessage>, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.qianfan.QianfanStreamingChatModel
 
generate(List<ChatMessage>, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.vertexai.VertexAiGeminiStreamingChatModel
 
generate(List<ChatMessage>, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.zhipu.ZhipuAiStreamingChatModel
 
generate(List<ChatMessage>, List<ToolSpecification>) - Method in class dev.langchain4j.model.anthropic.AnthropicChatModel
 
generate(List<ChatMessage>, List<ToolSpecification>) - Method in class dev.langchain4j.model.azure.AzureOpenAiChatModel
 
generate(List<ChatMessage>, List<ToolSpecification>) - Method in interface dev.langchain4j.model.chat.ChatLanguageModel
Generates a response from the model based on a list of messages and a list of tool specifications.
generate(List<ChatMessage>, List<ToolSpecification>) - Method in class dev.langchain4j.model.chat.DisabledChatLanguageModel
 
generate(List<ChatMessage>, List<ToolSpecification>) - Method in class dev.langchain4j.model.localai.LocalAiChatModel
 
generate(List<ChatMessage>, List<ToolSpecification>) - Method in class dev.langchain4j.model.mistralai.MistralAiChatModel
Generates an AI message response based on the given list of chat messages and tool specifications.
generate(List<ChatMessage>, List<ToolSpecification>) - Method in class dev.langchain4j.model.openai.OpenAiChatModel
 
generate(List<ChatMessage>, List<ToolSpecification>) - Method in class dev.langchain4j.model.qianfan.QianfanChatModel
 
generate(List<ChatMessage>, List<ToolSpecification>) - Method in class dev.langchain4j.model.vertexai.VertexAiGeminiChatModel
 
generate(List<ChatMessage>, List<ToolSpecification>) - Method in class dev.langchain4j.model.zhipu.ZhipuAiChatModel
 
generate(List<ChatMessage>, List<ToolSpecification>, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.azure.AzureOpenAiStreamingChatModel
 
generate(List<ChatMessage>, List<ToolSpecification>, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.chat.DisabledStreamingChatLanguageModel
 
generate(List<ChatMessage>, List<ToolSpecification>, StreamingResponseHandler<AiMessage>) - Method in interface dev.langchain4j.model.chat.StreamingChatLanguageModel
Generates a response from the model based on a list of messages and a list of tool specifications.
generate(List<ChatMessage>, List<ToolSpecification>, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.localai.LocalAiStreamingChatModel
 
generate(List<ChatMessage>, List<ToolSpecification>, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.mistralai.MistralAiStreamingChatModel
Generates streamed token response based on the given list of messages and tool specifications.
generate(List<ChatMessage>, List<ToolSpecification>, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.openai.OpenAiStreamingChatModel
 
generate(List<ChatMessage>, List<ToolSpecification>, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.qianfan.QianfanStreamingChatModel
 
generate(List<ChatMessage>, List<ToolSpecification>, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.vertexai.VertexAiGeminiStreamingChatModel
 
generate(List<ChatMessage>, List<ToolSpecification>, StreamingResponseHandler<AiMessage>) - Method in class dev.langchain4j.model.zhipu.ZhipuAiStreamingChatModel
 
generatedText() - Method in class dev.langchain4j.model.huggingface.client.TextGenerationResponse
 
GeneratedToken() - Constructor for class dev.langchain4j.model.bedrock.BedrockAI21LabsChatModelResponse.GeneratedToken
 
generateUUIDFrom(String) - Static method in class dev.langchain4j.internal.Utils
Generates a UUID from a hash of the given input string.
Generation() - Constructor for class dev.langchain4j.model.bedrock.BedrockCohereChatModelResponse.Generation
 
GENERATION - Enum constant in enum class dev.langchain4j.model.bedrock.BedrockCohereChatModel.ReturnLikelihood
 
geoLocation() - Method in class dev.langchain4j.web.search.WebSearchRequest
Get the desired geolocation for search results.
geoLocation(String) - Method in class dev.langchain4j.web.search.WebSearchRequest.Builder
Set the desired geolocation for search results.
get(Object) - Method in interface dev.langchain4j.memory.chat.ChatMemoryProvider
Provides an instance of ChatMemory.
get(String) - Method in class dev.langchain4j.data.document.Metadata
Returns the value associated with the given key.
getAccessToken() - Method in class dev.langchain4j.model.qianfan.client.chat.ChatTokenResponse
 
getAttributes() - Method in class dev.langchain4j.store.embedding.azure.search.Document.Metadata
 
getBanRound() - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionResponse
 
getBody(Request) - Method in class dev.langchain4j.model.qianfan.client.SyncRequestExecutor
 
getCassandraSession() - Method in class dev.langchain4j.store.memory.chat.cassandra.CassandraChatMemoryStore
Access the cassandra session for fined grained operation.
getConnection() - Method in class dev.langchain4j.store.embedding.pgvector.PgVectorEmbeddingStore
Datasource connection Creates the vector extension and add the vector type if it does not exist.
getContent() - Method in class dev.langchain4j.model.qianfan.client.chat.Examples
 
getContent() - Method in class dev.langchain4j.store.embedding.azure.search.Document
 
getContentClass() - Method in enum class dev.langchain4j.data.message.ContentType
Returns the class of the content type.
getContentVector() - Method in class dev.langchain4j.store.embedding.azure.search.Document
 
getCreated() - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionResponse
 
getDefaultConfig() - Static method in class dev.langchain4j.store.embedding.vearch.VearchConfig
 
getDouble(String) - Method in class dev.langchain4j.data.document.Metadata
Returns the Double value associated with the given key.
getEmbedding() - Method in class dev.langchain4j.model.zhipu.embedding.EmbeddingResponse
Convenience method to get the embedding from the first data.
getEndpoint(String) - Static method in enum class dev.langchain4j.model.qianfan.QianfanChatModelNameEnum
 
getEndpoint(String) - Static method in enum class dev.langchain4j.model.qianfan.QianfanEmbeddingModelNameEnum
 
getEndpoint(String) - Static method in enum class dev.langchain4j.model.qianfan.QianfanLanguageModelNameEnum
 
getErrorCode() - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionResponse
 
getErrorMsg() - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionResponse
 
getExpiresIn() - Method in class dev.langchain4j.model.qianfan.client.chat.ChatTokenResponse
 
getFinishReason() - Method in class dev.langchain4j.model.bedrock.BedrockAI21LabsChatModelResponse
 
getFinishReason() - Method in class dev.langchain4j.model.bedrock.BedrockAnthropicCompletionChatModelResponse
 
getFinishReason() - Method in class dev.langchain4j.model.bedrock.BedrockAnthropicMessageChatModelResponse
 
getFinishReason() - Method in class dev.langchain4j.model.bedrock.BedrockCohereChatModelResponse
 
getFinishReason() - Method in class dev.langchain4j.model.bedrock.BedrockLlamaChatModelResponse
 
getFinishReason() - Method in class dev.langchain4j.model.bedrock.BedrockStabilityAIChatModelResponse
 
getFinishReason() - Method in class dev.langchain4j.model.bedrock.BedrockTitanChatModelResponse
 
getFinishReason() - Method in interface dev.langchain4j.model.bedrock.internal.BedrockChatModelResponse
 
getFinishReason() - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionResponse
 
getFloat(String) - Method in class dev.langchain4j.data.document.Metadata
Returns the Float value associated with the given key.
getFunctionCall() - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionResponse
 
getFunctionCall() - Method in class dev.langchain4j.model.qianfan.client.chat.Examples
 
getId() - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionResponse
 
getId() - Method in class dev.langchain4j.store.embedding.azure.search.Document
 
getInputs() - Method in class dev.langchain4j.model.huggingface.client.EmbeddingRequest
 
getInputTextTokenCount() - Method in interface dev.langchain4j.model.bedrock.internal.BedrockEmbeddingResponse
Get input text token count
getInteger(String) - Method in class dev.langchain4j.data.document.Metadata
Returns the Integer value associated with the given key.
getIsEnd() - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionResponse
 
getIsTruncated() - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionResponse
 
getJavaClass() - Method in class dev.langchain4j.store.embedding.infinispan.LangChainItemMarshaller
 
getJavaClass() - Method in class dev.langchain4j.store.embedding.infinispan.LangChainMetadataMarshaller
 
getKey() - Method in class dev.langchain4j.store.embedding.azure.search.Document.Metadata.Attribute
 
getLong(String) - Method in class dev.langchain4j.data.document.Metadata
Returns the Long value associated with the given key.
getMessages(Object) - Method in class dev.langchain4j.store.memory.chat.cassandra.CassandraChatMemoryStore
Retrieves messages for a specified chat memory.
getMessages(Object) - Method in interface dev.langchain4j.store.memory.chat.ChatMemoryStore
Retrieves messages for a specified chat memory.
getMessages(Object) - Method in class dev.langchain4j.store.memory.chat.InMemoryChatMemoryStore
 
getMetadata() - Method in class dev.langchain4j.store.embedding.azure.search.Document
 
getModelId() - Method in class dev.langchain4j.model.bedrock.BedrockAI21LabsChatModel
 
getModelId() - Method in class dev.langchain4j.model.bedrock.BedrockAnthropicCompletionChatModel
 
getModelId() - Method in class dev.langchain4j.model.bedrock.BedrockAnthropicMessageChatModel
 
getModelId() - Method in class dev.langchain4j.model.bedrock.BedrockCohereChatModel
 
getModelId() - Method in class dev.langchain4j.model.bedrock.BedrockLlamaChatModel
 
getModelId() - Method in class dev.langchain4j.model.bedrock.BedrockMistralAiChatModel
 
getModelId() - Method in class dev.langchain4j.model.bedrock.BedrockStabilityAIChatModel
 
getModelId() - Method in class dev.langchain4j.model.bedrock.BedrockTitanChatModel
 
getModelId() - Method in class dev.langchain4j.model.bedrock.BedrockTitanEmbeddingModel
 
getModelId() - Method in class dev.langchain4j.model.bedrock.internal.AbstractBedrockChatModel
Get model id
getModelId() - Method in class dev.langchain4j.model.bedrock.internal.AbstractBedrockEmbeddingModel
Get model id
getName() - Method in class dev.langchain4j.model.qianfan.client.chat.Examples
 
getName() - Method in interface dev.langchain4j.spi.prompt.PromptTemplateFactory.Input
Get the name of the template.
getNeedClearHistory() - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionResponse
 
getObject() - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionResponse
 
getOptions() - Method in class dev.langchain4j.model.huggingface.client.EmbeddingRequest
 
getOrDefault(T, Supplier<T>) - Static method in class dev.langchain4j.internal.Utils
Returns the given value if it is not null, otherwise returns the value returned by the given supplier.
getOrDefault(T, T) - Static method in class dev.langchain4j.internal.Utils
Returns the given value if it is not null, otherwise returns the given default value.
getOutputText() - Method in class dev.langchain4j.model.bedrock.BedrockAI21LabsChatModelResponse
 
getOutputText() - Method in class dev.langchain4j.model.bedrock.BedrockAnthropicCompletionChatModelResponse
 
getOutputText() - Method in class dev.langchain4j.model.bedrock.BedrockAnthropicMessageChatModelResponse
 
getOutputText() - Method in class dev.langchain4j.model.bedrock.BedrockCohereChatModelResponse
 
getOutputText() - Method in class dev.langchain4j.model.bedrock.BedrockLlamaChatModelResponse
 
getOutputText() - Method in class dev.langchain4j.model.bedrock.BedrockStabilityAIChatModelResponse
 
getOutputText() - Method in class dev.langchain4j.model.bedrock.BedrockTitanChatModelResponse
 
getOutputText() - Method in interface dev.langchain4j.model.bedrock.internal.BedrockChatModelResponse
 
getRefreshToken() - Method in class dev.langchain4j.model.qianfan.client.chat.ChatTokenResponse
 
getRemoteCache() - Method in class dev.langchain4j.store.embedding.infinispan.InfinispanEmbeddingStore
Gets the underlying Infinispan remote cache
getRequestParameters(String) - Method in class dev.langchain4j.model.bedrock.BedrockAI21LabsChatModel
 
getRequestParameters(String) - Method in class dev.langchain4j.model.bedrock.BedrockAnthropicCompletionChatModel
 
getRequestParameters(String) - Method in class dev.langchain4j.model.bedrock.BedrockAnthropicMessageChatModel
 
getRequestParameters(String) - Method in class dev.langchain4j.model.bedrock.BedrockCohereChatModel
 
getRequestParameters(String) - Method in class dev.langchain4j.model.bedrock.BedrockLlamaChatModel
 
getRequestParameters(String) - Method in class dev.langchain4j.model.bedrock.BedrockMistralAiChatModel
 
getRequestParameters(String) - Method in class dev.langchain4j.model.bedrock.BedrockStabilityAIChatModel
 
getRequestParameters(String) - Method in class dev.langchain4j.model.bedrock.BedrockTitanChatModel
 
getRequestParameters(String) - Method in class dev.langchain4j.model.bedrock.internal.AbstractBedrockChatModel
Get request parameters
getRequestParameters(List<TextSegment>) - Method in class dev.langchain4j.model.bedrock.BedrockTitanEmbeddingModel
 
getRequestParameters(List<TextSegment>) - Method in class dev.langchain4j.model.bedrock.internal.AbstractBedrockEmbeddingModel
Get request body
getResponseClassType() - Method in class dev.langchain4j.model.bedrock.BedrockAI21LabsChatModel
 
getResponseClassType() - Method in class dev.langchain4j.model.bedrock.BedrockAnthropicCompletionChatModel
 
getResponseClassType() - Method in class dev.langchain4j.model.bedrock.BedrockAnthropicMessageChatModel
 
getResponseClassType() - Method in class dev.langchain4j.model.bedrock.BedrockCohereChatModel
 
getResponseClassType() - Method in class dev.langchain4j.model.bedrock.BedrockLlamaChatModel
 
getResponseClassType() - Method in class dev.langchain4j.model.bedrock.BedrockMistralAiChatModel
 
getResponseClassType() - Method in class dev.langchain4j.model.bedrock.BedrockStabilityAIChatModel
 
getResponseClassType() - Method in class dev.langchain4j.model.bedrock.BedrockTitanChatModel
 
getResponseClassType() - Method in class dev.langchain4j.model.bedrock.BedrockTitanEmbeddingModel
 
getResponseClassType() - Method in class dev.langchain4j.model.bedrock.internal.AbstractBedrockChatModel
Get response class type
getResponseClassType() - Method in class dev.langchain4j.model.bedrock.internal.AbstractBedrockEmbeddingModel
Get response class type
getResult() - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionResponse
 
getRole() - Method in class dev.langchain4j.model.qianfan.client.chat.Examples
 
getRole() - Method in class dev.langchain4j.model.zhipu.chat.AssistantMessage
 
getRole() - Method in interface dev.langchain4j.model.zhipu.chat.Message
 
getRole() - Method in class dev.langchain4j.model.zhipu.chat.SystemMessage
 
getRole() - Method in class dev.langchain4j.model.zhipu.chat.ToolMessage
 
getRole() - Method in class dev.langchain4j.model.zhipu.chat.UserMessage
 
getScope() - Method in class dev.langchain4j.model.qianfan.client.chat.ChatTokenResponse
 
getSentenceId() - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionResponse
 
getSessionKey() - Method in class dev.langchain4j.model.qianfan.client.chat.ChatTokenResponse
 
getSessionSecret() - Method in class dev.langchain4j.model.qianfan.client.chat.ChatTokenResponse
 
getSource() - Method in class dev.langchain4j.store.embedding.azure.search.Document.Metadata
 
getString(String) - Method in class dev.langchain4j.data.document.Metadata
Returns the String value associated with the given key.
getTemplate() - Method in interface dev.langchain4j.spi.prompt.PromptTemplateFactory.Input
Get the template string.
getTokenUsage() - Method in class dev.langchain4j.model.bedrock.BedrockAI21LabsChatModelResponse
 
getTokenUsage() - Method in class dev.langchain4j.model.bedrock.BedrockAnthropicCompletionChatModelResponse
 
getTokenUsage() - Method in class dev.langchain4j.model.bedrock.BedrockAnthropicMessageChatModelResponse
 
getTokenUsage() - Method in class dev.langchain4j.model.bedrock.BedrockCohereChatModelResponse
 
getTokenUsage() - Method in class dev.langchain4j.model.bedrock.BedrockLlamaChatModelResponse
 
getTokenUsage() - Method in class dev.langchain4j.model.bedrock.BedrockStabilityAIChatModelResponse
 
getTokenUsage() - Method in class dev.langchain4j.model.bedrock.BedrockTitanChatModelResponse
 
getTokenUsage() - Method in interface dev.langchain4j.model.bedrock.internal.BedrockChatModelResponse
 
getTypeName() - Method in class dev.langchain4j.store.embedding.infinispan.LangChainItemMarshaller
 
getTypeName() - Method in class dev.langchain4j.store.embedding.infinispan.LangChainMetadataMarshaller
 
getUsage() - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionResponse
 
getValue() - Method in enum class dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore.AzureCosmosDbMongoVCoreEmbeddingStore.SimilarityMetric
 
getValue() - Method in enum class dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore.AzureCosmosDbMongoVCoreEmbeddingStore.VectorIndexType
 
getValue() - Method in class dev.langchain4j.store.embedding.azure.search.Document.Metadata.Attribute
 
GitHubDocumentLoader - Class in dev.langchain4j.data.document.loader.github
 
GitHubDocumentLoader() - Constructor for class dev.langchain4j.data.document.loader.github.GitHubDocumentLoader
 
GitHubDocumentLoader(String, String) - Constructor for class dev.langchain4j.data.document.loader.github.GitHubDocumentLoader
 
GitHubDocumentLoader(String, String, String) - Constructor for class dev.langchain4j.data.document.loader.github.GitHubDocumentLoader
 
GitHubDocumentLoader(GitHub) - Constructor for class dev.langchain4j.data.document.loader.github.GitHubDocumentLoader
 
GitHubDocumentLoader.Builder - Class in dev.langchain4j.data.document.loader.github
 
GitHubSource - Class in dev.langchain4j.data.document.source.github
 
GitHubSource(GHContent) - Constructor for class dev.langchain4j.data.document.source.github.GitHubSource
 
gitHubToken(String) - Method in class dev.langchain4j.data.document.loader.github.GitHubDocumentLoader.Builder
 
gitHubTokenOrganization(String) - Method in class dev.langchain4j.data.document.loader.github.GitHubDocumentLoader.Builder
 
GLM_3_TURBO - Enum constant in enum class dev.langchain4j.model.zhipu.chat.ChatCompletionModel
 
GLM_4 - Enum constant in enum class dev.langchain4j.model.zhipu.chat.ChatCompletionModel
 
GPT_3_5_TURBO - Enum constant in enum class dev.langchain4j.model.openai.OpenAiChatModelName
 
GPT_3_5_TURBO - Static variable in class dev.langchain4j.model.azure.AzureOpenAiModelName
 
GPT_3_5_TURBO - Static variable in class dev.langchain4j.model.openai.OpenAiModelName
Deprecated.
 
GPT_3_5_TURBO_0125 - Enum constant in enum class dev.langchain4j.model.openai.OpenAiChatModelName
 
GPT_3_5_TURBO_0125 - Static variable in class dev.langchain4j.model.azure.AzureOpenAiModelName
 
GPT_3_5_TURBO_0301 - Static variable in class dev.langchain4j.model.openai.OpenAiModelName
Deprecated.
 
GPT_3_5_TURBO_0613 - Enum constant in enum class dev.langchain4j.model.openai.OpenAiChatModelName
 
GPT_3_5_TURBO_0613 - Static variable in class dev.langchain4j.model.azure.AzureOpenAiModelName
 
GPT_3_5_TURBO_0613 - Static variable in class dev.langchain4j.model.openai.OpenAiModelName
Deprecated.
 
GPT_3_5_TURBO_1106 - Enum constant in enum class dev.langchain4j.model.openai.OpenAiChatModelName
 
GPT_3_5_TURBO_1106 - Static variable in class dev.langchain4j.model.azure.AzureOpenAiModelName
 
GPT_3_5_TURBO_1106 - Static variable in class dev.langchain4j.model.openai.OpenAiModelName
Deprecated.
 
GPT_3_5_TURBO_16K - Enum constant in enum class dev.langchain4j.model.openai.OpenAiChatModelName
 
GPT_3_5_TURBO_16K - Static variable in class dev.langchain4j.model.azure.AzureOpenAiModelName
 
GPT_3_5_TURBO_16K - Static variable in class dev.langchain4j.model.openai.OpenAiModelName
Deprecated.
 
GPT_3_5_TURBO_16K_0613 - Enum constant in enum class dev.langchain4j.model.openai.OpenAiChatModelName
 
GPT_3_5_TURBO_16K_0613 - Static variable in class dev.langchain4j.model.azure.AzureOpenAiModelName
 
GPT_3_5_TURBO_16K_0613 - Static variable in class dev.langchain4j.model.openai.OpenAiModelName
Deprecated.
 
GPT_3_5_TURBO_INSTRUCT - Enum constant in enum class dev.langchain4j.model.openai.OpenAiLanguageModelName
 
GPT_3_5_TURBO_INSTRUCT - Static variable in class dev.langchain4j.model.azure.AzureOpenAiModelName
 
GPT_3_5_TURBO_INSTRUCT - Static variable in class dev.langchain4j.model.openai.OpenAiModelName
Deprecated.
 
GPT_4 - Enum constant in enum class dev.langchain4j.model.openai.OpenAiChatModelName
 
GPT_4 - Static variable in class dev.langchain4j.model.azure.AzureOpenAiModelName
 
GPT_4 - Static variable in class dev.langchain4j.model.openai.OpenAiModelName
Deprecated.
 
GPT_4_0125_PREVIEW - Enum constant in enum class dev.langchain4j.model.openai.OpenAiChatModelName
 
GPT_4_0314 - Enum constant in enum class dev.langchain4j.model.openai.OpenAiChatModelName
 
GPT_4_0314 - Static variable in class dev.langchain4j.model.openai.OpenAiModelName
Deprecated.
 
GPT_4_0613 - Enum constant in enum class dev.langchain4j.model.openai.OpenAiChatModelName
 
GPT_4_0613 - Static variable in class dev.langchain4j.model.azure.AzureOpenAiModelName
 
GPT_4_0613 - Static variable in class dev.langchain4j.model.openai.OpenAiModelName
Deprecated.
 
GPT_4_1106_PREVIEW - Enum constant in enum class dev.langchain4j.model.openai.OpenAiChatModelName
 
GPT_4_1106_PREVIEW - Static variable in class dev.langchain4j.model.azure.AzureOpenAiModelName
 
GPT_4_1106_PREVIEW - Static variable in class dev.langchain4j.model.openai.OpenAiModelName
Deprecated.
 
GPT_4_32K - Enum constant in enum class dev.langchain4j.model.openai.OpenAiChatModelName
 
GPT_4_32K - Static variable in class dev.langchain4j.model.azure.AzureOpenAiModelName
 
GPT_4_32K - Static variable in class dev.langchain4j.model.openai.OpenAiModelName
Deprecated.
 
GPT_4_32K_0314 - Enum constant in enum class dev.langchain4j.model.openai.OpenAiChatModelName
 
GPT_4_32K_0314 - Static variable in class dev.langchain4j.model.openai.OpenAiModelName
Deprecated.
 
GPT_4_32K_0613 - Enum constant in enum class dev.langchain4j.model.openai.OpenAiChatModelName
 
GPT_4_32K_0613 - Static variable in class dev.langchain4j.model.azure.AzureOpenAiModelName
 
GPT_4_32K_0613 - Static variable in class dev.langchain4j.model.openai.OpenAiModelName
Deprecated.
 
GPT_4_TURBO_PREVIEW - Enum constant in enum class dev.langchain4j.model.openai.OpenAiChatModelName
 
GPT_4_VISION_PREVIEW - Enum constant in enum class dev.langchain4j.model.openai.OpenAiChatModelName
 
GPT_4_VISION_PREVIEW - Static variable in class dev.langchain4j.model.openai.OpenAiModelName
Deprecated.
 
GPU - Enum constant in enum class dev.langchain4j.store.embedding.vearch.RetrievalType
 
GPUParam() - Constructor for class dev.langchain4j.store.embedding.vearch.RetrievalParam.GPUParam
 
GraalVmJavaScriptExecutionEngine - Class in dev.langchain4j.code.graalvm
CodeExecutionEngine that uses GraalVM Polyglot/Truffle to execute provided JavaScript code.
GraalVmJavaScriptExecutionEngine() - Constructor for class dev.langchain4j.code.graalvm.GraalVmJavaScriptExecutionEngine
 
GraalVmJavaScriptExecutionTool - Class in dev.langchain4j.agent.tool.graalvm
A tool that executes provided JavaScript code using GraalVM Polyglot/Truffle.
GraalVmJavaScriptExecutionTool() - Constructor for class dev.langchain4j.agent.tool.graalvm.GraalVmJavaScriptExecutionTool
 
GraalVmPythonExecutionEngine - Class in dev.langchain4j.code.graalvm
CodeExecutionEngine that uses GraalVM Polyglot/Truffle to execute provided Python code.
GraalVmPythonExecutionEngine() - Constructor for class dev.langchain4j.code.graalvm.GraalVmPythonExecutionEngine
 
GraalVmPythonExecutionTool - Class in dev.langchain4j.agent.tool.graalvm
A tool that executes provided Python code using GraalVM Polyglot/Truffle.
GraalVmPythonExecutionTool() - Constructor for class dev.langchain4j.agent.tool.graalvm.GraalVmPythonExecutionTool
 
GRANT_TYPE - Static variable in class dev.langchain4j.model.qianfan.client.QianfanClient
 
GSON - Static variable in class dev.langchain4j.agent.tool.ToolExecutionRequestUtil
Gson instance.
GSON - Static variable in class dev.langchain4j.model.qianfan.client.Json
 
GsonChatMessageJsonCodec - Class in dev.langchain4j.data.message
A codec for serializing and deserializing ChatMessage objects to and from JSON.
GsonChatMessageJsonCodec() - Constructor for class dev.langchain4j.data.message.GsonChatMessageJsonCodec
Constructs a new GsonChatMessageJsonCodec.
GsonInMemoryEmbeddingStoreJsonCodec - Class in dev.langchain4j.store.embedding.inmemory
 
GsonInMemoryEmbeddingStoreJsonCodec() - Constructor for class dev.langchain4j.store.embedding.inmemory.GsonInMemoryEmbeddingStoreJsonCodec
 
guidanceScale(Integer) - Method in class dev.langchain4j.model.vertexai.VertexAiImageModel.Builder
 

H

hasChatMemory() - Method in class dev.langchain4j.service.AiServiceContext
 
hashCode() - Method in class dev.langchain4j.agent.tool.JsonSchemaProperty
 
hashCode() - Method in class dev.langchain4j.agent.tool.ToolExecutionRequest
 
hashCode() - Method in class dev.langchain4j.agent.tool.ToolParameters
 
hashCode() - Method in class dev.langchain4j.agent.tool.ToolSpecification
 
hashCode() - Method in class dev.langchain4j.data.document.Document
 
hashCode() - Method in class dev.langchain4j.data.document.Metadata
 
hashCode() - Method in class dev.langchain4j.data.embedding.Embedding
 
hashCode() - Method in class dev.langchain4j.data.image.Image
 
hashCode() - Method in class dev.langchain4j.data.message.AiMessage
 
hashCode() - Method in class dev.langchain4j.data.message.ImageContent
 
hashCode() - Method in class dev.langchain4j.data.message.SystemMessage
 
hashCode() - Method in class dev.langchain4j.data.message.TextContent
 
hashCode() - Method in class dev.langchain4j.data.message.ToolExecutionResultMessage
 
hashCode() - Method in class dev.langchain4j.data.message.UserMessage
 
hashCode() - Method in class dev.langchain4j.data.segment.TextSegment
 
hashCode() - Method in class dev.langchain4j.model.huggingface.client.Options
 
hashCode() - Method in class dev.langchain4j.model.huggingface.client.Parameters
 
hashCode() - Method in class dev.langchain4j.model.huggingface.client.TextGenerationRequest
 
hashCode() - Method in class dev.langchain4j.model.input.Prompt
 
hashCode() - Method in class dev.langchain4j.model.moderation.Moderation
 
hashCode() - Method in class dev.langchain4j.model.output.Response
 
hashCode() - Method in class dev.langchain4j.model.output.TokenUsage
 
hashCode() - Method in class dev.langchain4j.model.qianfan.client.chat.FunctionCall
 
hashCode() - Method in class dev.langchain4j.model.qianfan.client.chat.JsonSchemaProperty
 
hashCode() - Method in class dev.langchain4j.model.qianfan.client.chat.Message
 
hashCode() - Method in class dev.langchain4j.model.qianfan.client.chat.Parameters
 
hashCode() - Method in class dev.langchain4j.model.qianfan.client.chat.Responses
 
hashCode() - Method in class dev.langchain4j.model.qianfan.client.embedding.EmbeddingRequest
 
hashCode() - Method in class dev.langchain4j.model.qianfan.client.Usage
 
hashCode() - Method in class dev.langchain4j.model.zhipu.embedding.EmbeddingRequest
 
hashCode() - Method in class dev.langchain4j.rag.content.Content
 
hashCode() - Method in class dev.langchain4j.rag.query.Metadata
 
hashCode() - Method in class dev.langchain4j.rag.query.Query
 
hashCode() - Method in class dev.langchain4j.store.embedding.EmbeddingMatch
 
hashCode() - Method in record class dev.langchain4j.store.embedding.infinispan.InfinispanStoreConfiguration
Returns a hash code value for this object.
hashCode() - Method in record class dev.langchain4j.store.embedding.infinispan.LangChainInfinispanItem
Returns a hash code value for this object.
hashCode() - Method in record class dev.langchain4j.store.embedding.infinispan.LangChainMetadata
Returns a hash code value for this object.
hashCode() - Method in class dev.langchain4j.web.search.WebSearchInformationResult
 
hashCode() - Method in class dev.langchain4j.web.search.WebSearchOrganicResult
 
hashCode() - Method in class dev.langchain4j.web.search.WebSearchRequest
 
hashCode() - Method in class dev.langchain4j.web.search.WebSearchResults
 
hasSingleText() - Method in class dev.langchain4j.data.message.UserMessage
Whether this message contains a single TextContent.
hasToolExecutionRequests() - Method in class dev.langchain4j.data.message.AiMessage
Check if the message has ToolExecutionRequests.
HierarchicalDocumentSplitter - Class in dev.langchain4j.data.document.splitter
Base class for hierarchical document splitters.
HierarchicalDocumentSplitter(int, int) - Constructor for class dev.langchain4j.data.document.splitter.HierarchicalDocumentSplitter
Creates a new instance of HierarchicalDocumentSplitter.
HierarchicalDocumentSplitter(int, int, HierarchicalDocumentSplitter) - Constructor for class dev.langchain4j.data.document.splitter.HierarchicalDocumentSplitter
Creates a new instance of HierarchicalDocumentSplitter.
HierarchicalDocumentSplitter(int, int, Tokenizer) - Constructor for class dev.langchain4j.data.document.splitter.HierarchicalDocumentSplitter
Creates a new instance of HierarchicalDocumentSplitter.
HierarchicalDocumentSplitter(int, int, Tokenizer, DocumentSplitter) - Constructor for class dev.langchain4j.data.document.splitter.HierarchicalDocumentSplitter
Creates a new instance of HierarchicalDocumentSplitter.
HIGH - Enum constant in enum class dev.langchain4j.data.message.ImageContent.DetailLevel
High detail.
HNSW - Enum constant in enum class dev.langchain4j.store.embedding.vearch.RetrievalType
 
HNSWParam() - Constructor for class dev.langchain4j.store.embedding.vearch.RetrievalParam.HNSWParam
 
host(String) - Method in class dev.langchain4j.store.embedding.milvus.MilvusEmbeddingStore.Builder
 
host(String) - Method in class dev.langchain4j.store.embedding.qdrant.QdrantEmbeddingStore.Builder
 
host(String) - Method in class dev.langchain4j.store.embedding.redis.RedisEmbeddingStore.Builder
 
HtmlTextExtractor - Class in dev.langchain4j.data.document.transformer
Extracts text from a given HTML document.
HtmlTextExtractor() - Constructor for class dev.langchain4j.data.document.transformer.HtmlTextExtractor
Constructs an instance of HtmlToTextTransformer that extracts all text from a given Document containing HTML.
HtmlTextExtractor(String, Map<String, String>, boolean) - Constructor for class dev.langchain4j.data.document.transformer.HtmlTextExtractor
Constructs an instance of HtmlToTextTransformer that extracts text from HTML elements matching the provided CSS selector.
HuggingFaceChatModel - Class in dev.langchain4j.model.huggingface
 
HuggingFaceChatModel(HuggingFaceChatModel.Builder) - Constructor for class dev.langchain4j.model.huggingface.HuggingFaceChatModel
 
HuggingFaceChatModel(String, String, Duration, Double, Integer, Boolean, Boolean) - Constructor for class dev.langchain4j.model.huggingface.HuggingFaceChatModel
 
HuggingFaceChatModel.Builder - Class in dev.langchain4j.model.huggingface
 
HuggingFaceChatModelBuilderFactory - Interface in dev.langchain4j.model.huggingface.spi
A factory for building HuggingFaceChatModel.Builder instances.
HuggingFaceClient - Interface in dev.langchain4j.model.huggingface.client
 
HuggingFaceClientFactory - Interface in dev.langchain4j.model.huggingface.spi
 
HuggingFaceClientFactory.Input - Interface in dev.langchain4j.model.huggingface.spi
 
HuggingFaceEmbeddingModel - Class in dev.langchain4j.model.huggingface
 
HuggingFaceEmbeddingModel(String, String, Boolean, Duration) - Constructor for class dev.langchain4j.model.huggingface.HuggingFaceEmbeddingModel
 
HuggingFaceEmbeddingModel.HuggingFaceEmbeddingModelBuilder - Class in dev.langchain4j.model.huggingface
 
HuggingFaceEmbeddingModelBuilder() - Constructor for class dev.langchain4j.model.huggingface.HuggingFaceEmbeddingModel.HuggingFaceEmbeddingModelBuilder
 
HuggingFaceEmbeddingModelBuilderFactory - Interface in dev.langchain4j.model.huggingface.spi
HuggingFaceLanguageModel - Class in dev.langchain4j.model.huggingface
 
HuggingFaceLanguageModel(HuggingFaceLanguageModel.Builder) - Constructor for class dev.langchain4j.model.huggingface.HuggingFaceLanguageModel
 
HuggingFaceLanguageModel(String, String, Duration, Double, Integer, Boolean, Boolean) - Constructor for class dev.langchain4j.model.huggingface.HuggingFaceLanguageModel
 
HuggingFaceLanguageModel.Builder - Class in dev.langchain4j.model.huggingface
 
HuggingFaceLanguageModelBuilderFactory - Interface in dev.langchain4j.model.huggingface.spi
A factory for building HuggingFaceLanguageModel.Builder instances.
HuggingFaceModelName - Class in dev.langchain4j.model.huggingface
 
HYBRID - Enum constant in enum class dev.langchain4j.rag.content.retriever.azure.search.AzureAiSearchQueryType
Uses the hybrid search (vector + full text) to find the most similar TextSegments.
HYBRID_WITH_RERANKING - Enum constant in enum class dev.langchain4j.rag.content.retriever.azure.search.AzureAiSearchQueryType
Uses the hybrid search (vector + full text) to find the most similar TextSegments, and uses the semantic re-ranker algorithm to rank the results.

I

id - Variable in class dev.langchain4j.model.anthropic.internal.api.AnthropicContent
 
id - Variable in class dev.langchain4j.model.anthropic.internal.api.AnthropicCreateMessageResponse
 
id - Variable in class dev.langchain4j.model.anthropic.internal.api.AnthropicResponseMessage
 
id - Variable in class dev.langchain4j.model.anthropic.internal.api.AnthropicToolUseContent
 
id() - Method in class dev.langchain4j.agent.tool.ToolExecutionRequest
Returns the id of the tool.
id() - Method in class dev.langchain4j.data.message.ToolExecutionResultMessage
Returns the id of the tool.
id() - Method in class dev.langchain4j.memory.chat.MessageWindowChatMemory
 
id() - Method in class dev.langchain4j.memory.chat.TokenWindowChatMemory
 
id() - Method in interface dev.langchain4j.memory.ChatMemory
The ID of the ChatMemory.
id() - Method in class dev.langchain4j.model.qianfan.client.embedding.EmbeddingResponse
 
id() - Method in record class dev.langchain4j.store.embedding.infinispan.LangChainInfinispanItem
Returns the value of the id record component.
id(Object) - Method in class dev.langchain4j.memory.chat.MessageWindowChatMemory.Builder
 
id(Object) - Method in class dev.langchain4j.memory.chat.TokenWindowChatMemory.Builder
 
id(String) - Method in class dev.langchain4j.agent.tool.ToolExecutionRequest.Builder
Sets the id.
id(String) - Method in class dev.langchain4j.model.qianfan.client.embedding.EmbeddingResponse.Builder
 
id(String) - Method in class dev.langchain4j.model.zhipu.chat.ChatCompletionResponse.Builder
 
id(String) - Method in class dev.langchain4j.model.zhipu.chat.ToolCall.Builder
 
idToRetriever - Variable in class dev.langchain4j.rag.query.router.LanguageModelQueryRouter
 
ignoreErrors() - Method in interface dev.langchain4j.model.qianfan.client.AsyncResponseHandling
 
ignoreErrors() - Method in interface dev.langchain4j.model.qianfan.client.StreamingCompletionHandling
 
ignoreErrors() - Method in interface dev.langchain4j.service.OnCompleteOrOnError
All errors during streaming will be ignored (but will be logged with a WARN log level).
ignoreErrors() - Method in interface dev.langchain4j.service.OnError
All errors during streaming will be ignored (but will be logged with a WARN log level).
illegalArgument(String, Object...) - Static method in class dev.langchain4j.internal.Exceptions
Constructs an IllegalArgumentException with the given formatted result.
illegalConfiguration(String) - Static method in exception class dev.langchain4j.exception.IllegalConfigurationException
 
illegalConfiguration(String, Object...) - Static method in exception class dev.langchain4j.exception.IllegalConfigurationException
 
IllegalConfigurationException - Exception Class in dev.langchain4j.exception
 
IllegalConfigurationException(String) - Constructor for exception class dev.langchain4j.exception.IllegalConfigurationException
 
image() - Method in class dev.langchain4j.data.message.ImageContent
Get the Image.
Image - Class in dev.langchain4j.data.image
Represents an image as a URL or as a Base64-encoded string.
IMAGE - Enum constant in enum class dev.langchain4j.data.message.ContentType
Image content.
Image.Builder - Class in dev.langchain4j.data.image
Builder for Image.
ImageContent - Class in dev.langchain4j.data.message
Represents an image with a DetailLevel.
ImageContent(Image) - Constructor for class dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given image.
ImageContent(Image, ImageContent.DetailLevel) - Constructor for class dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given image.
ImageContent(String) - Constructor for class dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given url.
ImageContent(String, ImageContent.DetailLevel) - Constructor for class dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given url and detail level.
ImageContent(String, String) - Constructor for class dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given base64 data and mime type.
ImageContent(String, String, ImageContent.DetailLevel) - Constructor for class dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given base64 data and mime type.
ImageContent(URI) - Constructor for class dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given url.
ImageContent(URI, ImageContent.DetailLevel) - Constructor for class dev.langchain4j.data.message.ImageContent
Create a new ImageContent from the given url and detail level.
ImageContent.DetailLevel - Enum Class in dev.langchain4j.data.message
The detail level of an Image.
ImageModel - Interface in dev.langchain4j.model.image
Text to Image generator model.
index - Variable in class dev.langchain4j.model.anthropic.internal.api.AnthropicStreamingData
 
index() - Method in class dev.langchain4j.model.qianfan.client.embedding.EmbeddingData
 
index(SearchIndex) - Method in class dev.langchain4j.rag.content.retriever.azure.search.AzureAiSearchContentRetriever.Builder
If using a custom index, sets the index to be used.
index(SearchIndex) - Method in class dev.langchain4j.store.embedding.azure.search.AzureAiSearchEmbeddingStore.Builder
If using a custom index, sets the index to be used.
index(Integer) - Method in class dev.langchain4j.model.qianfan.client.embedding.EmbeddingData.Builder
 
index(Integer) - Method in class dev.langchain4j.model.zhipu.chat.ChatCompletionChoice.Builder
 
index(Integer) - Method in class dev.langchain4j.model.zhipu.chat.ToolCall.Builder
 
index(Integer) - Method in class dev.langchain4j.model.zhipu.embedding.Embedding.Builder
 
index(String) - Method in class dev.langchain4j.store.embedding.pinecone.PineconeEmbeddingStore.Builder
 
INDEX_NAME - Static variable in class dev.langchain4j.store.embedding.azure.search.AbstractAzureAiSearchEmbeddingStore
 
indexes() - Method in interface dev.langchain4j.store.embedding.pgvector.MetadataStorageConfig
Metadata Indexes, list of fields to use as index.
indexMapping(IndexMapping) - Method in class dev.langchain4j.store.embedding.mongodb.MongoDbEmbeddingStore.Builder
set MongoDB search index fields mapping
IndexMapping - Class in dev.langchain4j.store.embedding.mongodb
 
IndexMapping() - Constructor for class dev.langchain4j.store.embedding.mongodb.IndexMapping
 
indexName(String) - Method in class dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore.AzureCosmosDbMongoVCoreEmbeddingStore.Builder
 
indexName(String) - Method in class dev.langchain4j.store.embedding.elasticsearch.ElasticsearchEmbeddingStore.Builder
 
indexName(String) - Method in class dev.langchain4j.store.embedding.mongodb.MongoDbEmbeddingStore.Builder
 
indexName(String) - Method in class dev.langchain4j.store.embedding.opensearch.OpenSearchEmbeddingStore.Builder
 
indexName(String) - Method in class dev.langchain4j.store.embedding.redis.RedisEmbeddingStore.Builder
 
indexSize(Long) - Method in class dev.langchain4j.store.embedding.vearch.SpaceEngine.Builder
 
indexType() - Method in interface dev.langchain4j.store.embedding.pgvector.MetadataStorageConfig
Index Type: BTREE (default) GIN ...
indexType(IndexType) - Method in class dev.langchain4j.store.embedding.milvus.MilvusEmbeddingStore.Builder
 
infinispanConfigBuilder(ConfigurationBuilder) - Method in class dev.langchain4j.store.embedding.infinispan.InfinispanEmbeddingStore.Builder
Infinispan Configuration Builder
InfinispanEmbeddingStore - Class in dev.langchain4j.store.embedding.infinispan
Infinispan Embedding Store
InfinispanEmbeddingStore(ConfigurationBuilder, InfinispanStoreConfiguration) - Constructor for class dev.langchain4j.store.embedding.infinispan.InfinispanEmbeddingStore
Creates an instance of InfinispanEmbeddingStore
InfinispanEmbeddingStore(RemoteCacheManager, InfinispanStoreConfiguration) - Constructor for class dev.langchain4j.store.embedding.infinispan.InfinispanEmbeddingStore
Creates an Infinispan embedding store from a RemoteCacheManager Assumes marshalling configuration is already provided by the RemoteCacheManager instance.
InfinispanEmbeddingStore.Builder - Class in dev.langchain4j.store.embedding.infinispan
 
InfinispanStoreConfiguration - Record Class in dev.langchain4j.store.embedding.infinispan
Holds configuration for the store
InfinispanStoreConfiguration(String, Integer, Integer, String, String, String, String, String, String, boolean, boolean) - Constructor for record class dev.langchain4j.store.embedding.infinispan.InfinispanStoreConfiguration
Creates the configuration and sets default values
ingest(Document) - Method in class dev.langchain4j.store.embedding.EmbeddingStoreIngestor
Ingests a specified document into an EmbeddingStore that was specified during the creation of this EmbeddingStoreIngestor.
ingest(Document...) - Method in class dev.langchain4j.store.embedding.EmbeddingStoreIngestor
Ingests specified documents into an EmbeddingStore that was specified during the creation of this EmbeddingStoreIngestor.
ingest(Document, EmbeddingStore<TextSegment>) - Static method in class dev.langchain4j.store.embedding.EmbeddingStoreIngestor
Ingests a specified Document into a specified EmbeddingStore.
ingest(List<Document>) - Method in class dev.langchain4j.store.embedding.EmbeddingStoreIngestor
Ingests specified documents into an EmbeddingStore that was specified during the creation of this EmbeddingStoreIngestor.
ingest(List<Document>, EmbeddingStore<TextSegment>) - Static method in class dev.langchain4j.store.embedding.EmbeddingStoreIngestor
Ingests specified Documents into a specified EmbeddingStore.
initialize(String, AzureKeyCredential, TokenCredential, boolean, int, SearchIndex) - Method in class dev.langchain4j.store.embedding.azure.search.AbstractAzureAiSearchEmbeddingStore
 
initTable(Boolean, Boolean, Boolean, Integer, Integer) - Method in class dev.langchain4j.store.embedding.pgvector.PgVectorEmbeddingStore
Initialize metadata table following configuration
inject(List<Content>, UserMessage) - Method in interface dev.langchain4j.rag.content.injector.ContentInjector
Injects given Contents into a given UserMessage.
inject(List<Content>, UserMessage) - Method in class dev.langchain4j.rag.content.injector.DefaultContentInjector
 
InMemoryChatMemoryStore - Class in dev.langchain4j.store.memory.chat
Implementation of ChatMemoryStore that stores state of ChatMemory (chat messages) in-memory.
InMemoryChatMemoryStore() - Constructor for class dev.langchain4j.store.memory.chat.InMemoryChatMemoryStore
Constructs a new InMemoryChatMemoryStore.
InMemoryEmbeddingStore<Embedded> - Class in dev.langchain4j.store.embedding.inmemory
An EmbeddingStore that stores embeddings in memory.
InMemoryEmbeddingStore() - Constructor for class dev.langchain4j.store.embedding.inmemory.InMemoryEmbeddingStore
 
InMemoryEmbeddingStoreJsonCodec - Interface in dev.langchain4j.store.embedding.inmemory
 
InMemoryEmbeddingStoreJsonCodecFactory - Interface in dev.langchain4j.spi.store.embedding.inmemory
 
INNER_PRODUCT - Enum constant in enum class dev.langchain4j.store.embedding.vearch.MetricType
Inner Product
input - Variable in class dev.langchain4j.model.anthropic.internal.api.AnthropicContent
 
input - Variable in class dev.langchain4j.model.anthropic.internal.api.AnthropicToolUseContent
 
input() - Method in class dev.langchain4j.model.qianfan.client.embedding.EmbeddingRequest
 
input(String) - Method in class dev.langchain4j.model.zhipu.embedding.EmbeddingRequest.Builder
 
input(String...) - Method in class dev.langchain4j.model.qianfan.client.embedding.EmbeddingRequest.Builder
 
input(List<String>) - Method in class dev.langchain4j.model.qianfan.client.embedding.EmbeddingRequest.Builder
 
inputs(String) - Method in class dev.langchain4j.model.huggingface.client.TextGenerationRequest.Builder
 
inputSchema - Variable in class dev.langchain4j.model.anthropic.internal.api.AnthropicTool
 
inputStream() - Method in interface dev.langchain4j.data.document.DocumentSource
Provides an InputStream to read the content of the document.
inputStream() - Method in class dev.langchain4j.data.document.source.amazon.s3.AmazonS3Source
 
inputStream() - Method in class dev.langchain4j.data.document.source.azure.storage.blob.AzureBlobStorageSource
 
inputStream() - Method in class dev.langchain4j.data.document.source.FileSystemSource
 
inputStream() - Method in class dev.langchain4j.data.document.source.github.GitHubSource
 
inputStream() - Method in class dev.langchain4j.data.document.source.tencent.cos.TencentCosSource
 
inputStream() - Method in class dev.langchain4j.data.document.source.UrlSource
 
inputTokenCount() - Method in class dev.langchain4j.model.output.TokenUsage
Returns the input token count, or null if unknown.
inputTokens - Variable in class dev.langchain4j.model.anthropic.internal.api.AnthropicUsage
 
INTEGER - Enum constant in enum class dev.langchain4j.store.embedding.vearch.SpacePropertyType
 
INTEGER - Static variable in class dev.langchain4j.agent.tool.JsonSchemaProperty
A property with key "type" and value "integer".
IntegerParam() - Constructor for class dev.langchain4j.store.embedding.vearch.SpacePropertyParam.IntegerParam
 
IntegerParam(Boolean) - Constructor for class dev.langchain4j.store.embedding.vearch.SpacePropertyParam.IntegerParam
 
intercept(Interceptor.Chain) - Method in class dev.langchain4j.model.qianfan.client.AuthorizationHeaderInjector
 
intercept(Interceptor.Chain) - Method in class dev.langchain4j.model.qianfan.client.RequestLoggingInterceptor
 
intercept(Interceptor.Chain) - Method in class dev.langchain4j.model.qianfan.client.ResponseLoggingInterceptor
 
InternalOpenAiHelper - Class in dev.langchain4j.model.openai
 
InternalOpenAiHelper() - Constructor for class dev.langchain4j.model.openai.InternalOpenAiHelper
 
InternalQianfanHelper - Class in dev.langchain4j.model.qianfan
 
InternalQianfanHelper() - Constructor for class dev.langchain4j.model.qianfan.InternalQianfanHelper
 
IntOutputParser - Class in dev.langchain4j.model.output
 
IntOutputParser() - Constructor for class dev.langchain4j.model.output.IntOutputParser
 
invoke(String) - Method in class dev.langchain4j.model.bedrock.internal.AbstractBedrockChatModel
Invoke call to the API
invoke(String) - Method in class dev.langchain4j.model.bedrock.internal.AbstractBedrockEmbeddingModel
Invoke model
isBetween(double, double) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isBetween(float, float) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isBetween(int, int) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isBetween(long, long) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isBetween(String, String) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isCollectionEmpty(Collection<?>) - Static method in class dev.langchain4j.internal.Utils
Deprecated.
isEnd(Boolean) - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionResponse.Builder
 
isEqualTo(double) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isEqualTo(float) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isEqualTo(int) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isEqualTo(long) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isEqualTo(String) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
IsEqualTo - Class in dev.langchain4j.store.embedding.filter.comparison
 
IsEqualTo(String, Object) - Constructor for class dev.langchain4j.store.embedding.filter.comparison.IsEqualTo
 
isError - Variable in class dev.langchain4j.model.anthropic.internal.api.AnthropicToolResultContent
 
isGreaterThan(double) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isGreaterThan(float) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isGreaterThan(int) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isGreaterThan(long) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isGreaterThan(String) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
IsGreaterThan - Class in dev.langchain4j.store.embedding.filter.comparison
 
IsGreaterThan(String, Comparable<?>) - Constructor for class dev.langchain4j.store.embedding.filter.comparison.IsGreaterThan
 
isGreaterThanOrEqualTo(double) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isGreaterThanOrEqualTo(float) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isGreaterThanOrEqualTo(int) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isGreaterThanOrEqualTo(long) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isGreaterThanOrEqualTo(String) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
IsGreaterThanOrEqualTo - Class in dev.langchain4j.store.embedding.filter.comparison
 
IsGreaterThanOrEqualTo(String, Comparable<?>) - Constructor for class dev.langchain4j.store.embedding.filter.comparison.IsGreaterThanOrEqualTo
 
isIn(double...) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isIn(float...) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isIn(int...) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isIn(long...) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isIn(String...) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isIn(Collection<?>) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
IsIn - Class in dev.langchain4j.store.embedding.filter.comparison
 
IsIn(String, Collection<?>) - Constructor for class dev.langchain4j.store.embedding.filter.comparison.IsIn
 
isLessThan(double) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isLessThan(float) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isLessThan(int) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isLessThan(long) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isLessThan(String) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
IsLessThan - Class in dev.langchain4j.store.embedding.filter.comparison
 
IsLessThan(String, Comparable<?>) - Constructor for class dev.langchain4j.store.embedding.filter.comparison.IsLessThan
 
isLessThanOrEqualTo(double) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isLessThanOrEqualTo(float) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isLessThanOrEqualTo(int) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isLessThanOrEqualTo(long) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isLessThanOrEqualTo(String) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
IsLessThanOrEqualTo - Class in dev.langchain4j.store.embedding.filter.comparison
 
IsLessThanOrEqualTo(String, Comparable<?>) - Constructor for class dev.langchain4j.store.embedding.filter.comparison.IsLessThanOrEqualTo
 
isNotEqualTo(double) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isNotEqualTo(float) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isNotEqualTo(int) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isNotEqualTo(long) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isNotEqualTo(String) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
IsNotEqualTo - Class in dev.langchain4j.store.embedding.filter.comparison
 
IsNotEqualTo(String, Object) - Constructor for class dev.langchain4j.store.embedding.filter.comparison.IsNotEqualTo
 
isNotIn(double...) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isNotIn(float...) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isNotIn(int...) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isNotIn(long...) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isNotIn(String...) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
isNotIn(Collection<?>) - Method in class dev.langchain4j.store.embedding.filter.MetadataFilterBuilder
 
IsNotIn - Class in dev.langchain4j.store.embedding.filter.comparison
 
IsNotIn(String, Collection<?>) - Constructor for class dev.langchain4j.store.embedding.filter.comparison.IsNotIn
 
isNotNullOrBlank(String) - Static method in class dev.langchain4j.internal.Utils
Is the given string not null and not blank?
isNotNullOrEmpty(String) - Static method in class dev.langchain4j.internal.Utils
Is the given string not null and not empty ("")?
isNullOrBlank(String) - Static method in class dev.langchain4j.internal.Utils
Is the given string null or blank?
isNullOrEmpty(String) - Static method in class dev.langchain4j.internal.Utils
Is the given string null or empty ("")?
isNullOrEmpty(Collection<?>) - Static method in class dev.langchain4j.internal.Utils
Is the collection null or empty?
Isometric - Enum constant in enum class dev.langchain4j.model.bedrock.BedrockStabilityAIChatModel.StylePreset
 
isTruncated(Boolean) - Method in class dev.langchain4j.model.qianfan.client.chat.ChatCompletionResponse.Builder
 
items(JsonSchemaProperty) - Static method in class dev.langchain4j.agent.tool.JsonSchemaProperty
Wraps the given type in a property with key "items".
IVFFLAT - Enum constant in enum class dev.langchain4j.store.embedding.vearch.RetrievalType
 
IVFFLATParam() - Constructor for class dev.langchain4j.store.embedding.vearch.RetrievalParam.IVFFLATParam
 
IVFPQ - Enum constant in enum class dev.langchain4j.store.embedding.vearch.RetrievalType
 
IVFPQParam() - Constructor for class dev.langchain4j.store.embedding.vearch.RetrievalParam.IVFPQParam
 

J

J2MidV2 - Enum constant in enum class dev.langchain4j.model.bedrock.BedrockAI21LabsChatModel.Types
 
J2UltraV1 - Enum constant in enum class dev.langchain4j.model.bedrock.BedrockAI21LabsChatModel.Types
 
JacocoIgnoreCoverageGenerated - Annotation Interface in dev.langchain4j.internal
Annotation to mark methods where JaCoCo coverage should be ignored.
jitterDelayMillis(int) - Method in class dev.langchain4j.internal.RetryUtils.RetryPolicy
This method returns the jitter delay in milliseconds for a given attempt.
jitterScale(double) - Method in class dev.langchain4j.internal.RetryUtils.RetryPolicy.Builder
Sets the jitter scale.
join(StructuredPrompt) - Static method in class dev.langchain4j.model.input.structured.StructuredPrompt.Util
Joins the lines of the prompt template.
joinDelimiter() - Method in class dev.langchain4j.data.document.splitter.DocumentByCharacterSplitter
 
joinDelimiter() - Method in class dev.langchain4j.data.document.splitter.DocumentByLineSplitter
 
joinDelimiter() - Method in class dev.langchain4j.data.document.splitter.DocumentByParagraphSplitter
 
joinDelimiter() - Method in class dev.langchain4j.data.document.splitter.DocumentByRegexSplitter
 
joinDelimiter() - Method in class dev.langchain4j.data.document.splitter.DocumentBySentenceSplitter
 
joinDelimiter() - Method in class dev.langchain4j.data.document.splitter.DocumentByWordSplitter
 
joinDelimiter() - Method in class dev.langchain4j.data.document.splitter.HierarchicalDocumentSplitter
Delimiter string to use to re-join the parts.
Json - Class in dev.langchain4j.internal
A utility class for JSON.
Json - Class in dev.langchain4j.model.qianfan.client
 
JSON_OBJECT - Enum constant in enum class dev.langchain4j.model.mistralai.MistralAiResponseFormatType
 
Json.JsonCodec - Interface in dev.langchain4j.internal
The abstract JSON codec interface.
JsonCodecFactory - Interface in dev.langchain4j.spi.json
A factory for creating Json.JsonCodec instances through SPI.
JsonSchemaProperty - Class in dev.langchain4j.agent.tool
Represents a property in a JSON schema.
JsonSchemaProperty - Class in dev.langchain4j.model.qianfan.client.chat
 
JsonSchemaProperty(String, Object) - Constructor for class dev.langchain4j.agent.tool.JsonSchemaProperty
Construct a property with key and value.
JsonSchemaProperty(String, Object) - Constructor for class dev.langchain4j.model.qianfan.client.chat.JsonSchemaProperty
 
Judge0JavaScriptExecutionTool - Class in dev.langchain4j.code
A tool that executes JS code using the Judge0 service, hosted by Rapid API.
Judge0JavaScriptExecutionTool(String) - Constructor for class dev.langchain4j.code.Judge0JavaScriptExecutionTool
Constructs a new instance with the provided Rapid API key.
Judge0JavaScriptExecutionTool(String, boolean, Duration) - Constructor for class dev.langchain4j.code.Judge0JavaScriptExecutionTool
Constructs a new instance with the provided Rapid API key, a flag to control whether to fix the code, and a timeout.

K

key() - Method in class dev.langchain4j.agent.tool.JsonSchemaProperty
Get the key.
key() - Method in class dev.langchain4j.model.qianfan.client.chat.JsonSchemaProperty
 
key() - Method in class dev.langchain4j.store.embedding.filter.comparison.IsEqualTo
 
key() - Method in class dev.langchain4j.store.embedding.filter.comparison.IsGreaterThan
 
key() - Method in class dev.langchain4j.store.embedding.filter.comparison.IsGreaterThanOrEqualTo
 
key() - Method in class dev.langchain4j.store.embedding.filter.comparison.IsIn
 
key() - Method in class dev.langchain4j.store.embedding.filter.comparison.IsLessThan
 
key() - Method in class dev.langchain4j.store.embedding.filter.comparison.IsLessThanOrEqualTo
 
key() - Method in class dev.langchain4j.store.embedding.filter.comparison.IsNotEqualTo
 
key() - Method in class dev.langchain4j.store.embedding.filter.comparison.IsNotIn
 
KEY_ATTRIBUTES_BLOB - Static variable in class dev.langchain4j.store.embedding.astradb.AstraDbEmbeddingStore
Saving the text chunk as an attribut.
KEY_SIMILARITY - Static variable in class dev.langchain4j.store.embedding.astradb.AstraDbEmbeddingStore
Metadata used for similarity.
keyspace - Variable in class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore.Builder
 
keyspace - Variable in class dev.langchain4j.store.memory.chat.cassandra.CassandraChatMemoryStore.Builder
 
keyspace(String) - Method in class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore.Builder
 
keyspace(String) - Method in class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore.BuilderAstra
 
keyspace(String) - Method in class dev.langchain4j.store.memory.chat.cassandra.CassandraChatMemoryStore.Builder
 
keyspace(String) - Method in class dev.langchain4j.store.memory.chat.cassandra.CassandraChatMemoryStore.BuilderAstra
 
kind(String) - Method in class dev.langchain4j.store.embedding.azure.cosmos.mongo.vcore.AzureCosmosDbMongoVCoreEmbeddingStore.Builder
 
knowledgeId(String) - Method in class dev.langchain4j.model.zhipu.chat.Retrieval.RetrievalBuilder
 

L

landscape - Enum constant in enum class dev.langchain4j.model.vertexai.VertexAiImageModel.ImageStyle
 
LangChainInfinispanItem - Record Class in dev.langchain4j.store.embedding.infinispan
Langchain item that is serialized for the langchain integration use case
LangChainInfinispanItem(String, float[], String, Set<LangChainMetadata>) - Constructor for record class dev.langchain4j.store.embedding.infinispan.LangChainInfinispanItem
Creates an instance of a LangChainInfinispanItem record class.
langchainItemFullType() - Method in record class dev.langchain4j.store.embedding.infinispan.InfinispanStoreConfiguration
Get the full name of the langchainItem protobuf type
LangChainItemMarshaller - Class in dev.langchain4j.store.embedding.infinispan
Marshaller to read and write embeddings to Infinispan
LangChainItemMarshaller(String) - Constructor for class dev.langchain4j.store.embedding.infinispan.LangChainItemMarshaller
Constructor for the LangChainItemMarshaller Marshaller
langchainItemName() - Method in record class dev.langchain4j.store.embedding.infinispan.InfinispanStoreConfiguration
Returns the value of the langchainItemName record component.
langchainItemName(String) - Method in class dev.langchain4j.store.embedding.infinispan.InfinispanEmbeddingStore.Builder
Infinispan schema langchainItemName
LangChainMetadata - Record Class in dev.langchain4j.store.embedding.infinispan
Langchain Metadata item that is serialized for the langchain integration use case
LangChainMetadata(String, String) - Constructor for record class dev.langchain4j.store.embedding.infinispan.LangChainMetadata
Creates an instance of a LangChainMetadata record class.
LangChainMetadataMarshaller - Class in dev.langchain4j.store.embedding.infinispan
Marshaller to read and write metadata to Infinispan
LangChainMetadataMarshaller(String) - Constructor for class dev.langchain4j.store.embedding.infinispan.LangChainMetadataMarshaller
Constructor for the LangChainMetadata Marshaller
LangchainSchemaCreator - Class in dev.langchain4j.store.embedding.infinispan
LangchainSchemaCreator for Infinispan
LangchainSchemaCreator() - Constructor for class dev.langchain4j.store.embedding.infinispan.LangchainSchemaCreator
 
language() - Method in class dev.langchain4j.web.search.WebSearchRequest
Get the desired language for search results.
language(String) - Method in class dev.langchain4j.model.vertexai.VertexAiImageModel.Builder
 
language(String) - Method in class dev.langchain4j.web.search.WebSearchRequest.Builder
Set the desired language for search results.
LanguageModel - Interface in dev.langchain4j.model.language
Represents a language model that has a simple text interface (as opposed to a chat interface).
LanguageModelQueryRouter - Class in dev.langchain4j.rag.query.router
A QueryRouter that utilizes a ChatLanguageModel to make a routing decision.
LanguageModelQueryRouter(ChatLanguageModel, Map<ContentRetriever, String>) - Constructor for class dev.langchain4j.rag.query.router.LanguageModelQueryRouter
 
LanguageModelQueryRouter(ChatLanguageModel, Map<ContentRetriever, String>, PromptTemplate, LanguageModelQueryRouter.FallbackStrategy) - Constructor for class dev.langchain4j.rag.query.router.LanguageModelQueryRouter
 
LanguageModelQueryRouter.FallbackStrategy - Enum Class in dev.langchain4j.rag.query.router
Strategy applied if the call to the LLM fails of if LLM does not return a valid response.
LanguageModelSqlFilterBuilder - Class in dev.langchain4j.store.embedding.filter.builder.sql
Given a natural language Query, this class creates a suitable Filter using a language model.
LanguageModelSqlFilterBuilder(ChatLanguageModel, TableDefinition) - Constructor for class dev.langchain4j.store.embedding.filter.builder.sql.LanguageModelSqlFilterBuilder
 
left() - Method in class dev.langchain4j.store.embedding.filter.logical.And
 
left() - Method in class dev.langchain4j.store.embedding.filter.logical.Or
 
LENGTH - Enum constant in enum class dev.langchain4j.model.output.FinishReason
The call finished because the token length was reached.
LineArt - Enum constant in enum class dev.langchain4j.model.bedrock.BedrockStabilityAIChatModel.StylePreset
 
listDatabase() - Method in interface dev.langchain4j.store.embedding.vearch.VearchApi
 
listModels() - Method in class dev.langchain4j.model.mistralai.MistralAiClient
 
listSpaceOfDatabase(String) - Method in interface dev.langchain4j.store.embedding.vearch.VearchApi
 
ListSpaceResponse - Class in dev.langchain4j.store.embedding.vearch
 
ListSpaceResponse() - Constructor for class dev.langchain4j.store.embedding.vearch.ListSpaceResponse
 
LLAMA_2_13B_CHAT - Enum constant in enum class dev.langchain4j.model.qianfan.QianfanChatModelNameEnum
 
LLAMA_2_70B_CHAT - Enum constant in enum class dev.langchain4j.model.qianfan.QianfanChatModelNameEnum
 
LLAMA_2_7B_CHAT - Enum constant in enum class dev.langchain4j.model.qianfan.QianfanChatModelNameEnum
 
load(DocumentSource, DocumentParser) - Static method in class dev.langchain4j.data.document.DocumentLoader
Loads a document from the given source using the given parser.
load(String, DocumentParser) - Static method in class dev.langchain4j.data.document.loader.UrlDocumentLoader
Loads a document from the specified URL.
load(URL, DocumentParser) - Static method in class dev.langchain4j.data.document.loader.UrlDocumentLoader
Loads a document from the specified URL.
loadDocument(String) - Static method in class dev.langchain4j.data.document.loader.FileSystemDocumentLoader
Loads a Document from the specified file path.
loadDocument(String, DocumentParser) - Static method in class dev.langchain4j.data.document.loader.FileSystemDocumentLoader
Loads a Document from the specified file path.
loadDocument(String, String, DocumentParser) - Method in class dev.langchain4j.data.document.loader.amazon.s3.AmazonS3DocumentLoader
Loads a single document from the specified S3 bucket based on the specified object key.
loadDocument(String, String, DocumentParser) - Method in class dev.langchain4j.data.document.loader.azure.storage.blob.AzureBlobStorageDocumentLoader
 
loadDocument(String, String, DocumentParser) - Method in class dev.langchain4j.data.document.loader.tencent.cos.TencentCosDocumentLoader
Loads a single document from the specified COS bucket based on the specified object key.
loadDocument(String, String, String, String, DocumentParser) - Method in class dev.langchain4j.data.document.loader.github.GitHubDocumentLoader
 
loadDocument(Path) - Static method in class dev.langchain4j.data.document.loader.FileSystemDocumentLoader
Loads a Document from the specified file Path.
loadDocument(Path, DocumentParser) - Static method in class dev.langchain4j.data.document.loader.FileSystemDocumentLoader
Loads a Document from the specified file Path.
loadDocuments(String) - Static method in class dev.langchain4j.data.document.loader.FileSystemDocumentLoader
Loads Documents from the specified directory.
loadDocuments(String, DocumentParser) - Method in class dev.langchain4j.data.document.loader.amazon.s3.AmazonS3DocumentLoader
Loads all documents from an S3 bucket.
loadDocuments(String, DocumentParser) - Method in class dev.langchain4j.data.document.loader.azure.storage.blob.AzureBlobStorageDocumentLoader
 
loadDocuments(String, DocumentParser) - Static method in class dev.langchain4j.data.document.loader.FileSystemDocumentLoader
Loads Documents from the specified directory.
loadDocuments(String, DocumentParser) - Method in class dev.langchain4j.data.document.loader.tencent.cos.TencentCosDocumentLoader
Loads all documents from an COS bucket.
loadDocuments(String, String, DocumentParser) - Method in class dev.langchain4j.data.document.loader.amazon.s3.AmazonS3DocumentLoader
Loads all documents from an S3 bucket.
loadDocuments(String, String, DocumentParser) - Method in class dev.langchain4j.data.document.loader.tencent.cos.TencentCosDocumentLoader
Loads all documents from an COS bucket.
loadDocuments(String, String, String, DocumentParser) - Method in class dev.langchain4j.data.document.loader.github.GitHubDocumentLoader
 
loadDocuments(String, String, String, String, DocumentParser) - Method in class dev.langchain4j.data.document.loader.github.GitHubDocumentLoader
 
loadDocuments(String, PathMatcher) - Static method in class dev.langchain4j.data.document.loader.FileSystemDocumentLoader
Loads matching Documents from the specified directory.
loadDocuments(String, PathMatcher, DocumentParser) - Static method in class dev.langchain4j.data.document.loader.FileSystemDocumentLoader
Loads matching Documents from the specified directory.
loadDocuments(Path) - Static method in class dev.langchain4j.data.document.loader.FileSystemDocumentLoader
Loads Documents from the specified directory.
loadDocuments(Path, DocumentParser) - Static method in class dev.langchain4j.data.document.loader.FileSystemDocumentLoader
Loads Documents from the specified directory.
loadDocuments(Path, PathMatcher) - Static method in class dev.langchain4j.data.document.loader.FileSystemDocumentLoader
Loads matching Documents from the specified directory.
loadDocuments(Path, PathMatcher, DocumentParser) - Static method in class dev.langchain4j.data.document.loader.FileSystemDocumentLoader
Loads matching Documents from the specified directory.
loadDocumentsRecursively(String) - Static method in class dev.langchain4j.data.document.loader.FileSystemDocumentLoader
Recursively loads Documents from the specified directory and its subdirectories.
loadDocumentsRecursively(String, DocumentParser) - Static method in class dev.langchain4j.data.document.loader.FileSystemDocumentLoader
Recursively loads Documents from the specified directory and its subdirectories.
loadDocumentsRecursively(String, PathMatcher) - Static method in class dev.langchain4j.data.document.loader.FileSystemDocumentLoader
Recursively loads matching Documents from the specified directory and its subdirectories.
loadDocumentsRecursively(String, PathMatcher, DocumentParser) - Static method in class dev.langchain4j.data.document.loader.FileSystemDocumentLoader
Recursively loads matching Documents from the specified directory and its subdirectories.
loadDocumentsRecursively(Path) - Static method in class dev.langchain4j.data.document.loader.FileSystemDocumentLoader
Recursively loads Documents from the specified directory and its subdirectories.
loadDocumentsRecursively(Path, DocumentParser) - Static method in class dev.langchain4j.data.document.loader.FileSystemDocumentLoader
Recursively loads Documents from the specified directory and its subdirectories.
loadDocumentsRecursively(Path, PathMatcher) - Static method in class dev.langchain4j.data.document.loader.FileSystemDocumentLoader
Recursively loads matching Documents from the specified directory and its subdirectories.
loadDocumentsRecursively(Path, PathMatcher, DocumentParser) - Static method in class dev.langchain4j.data.document.loader.FileSystemDocumentLoader
Recursively loads matching Documents from the specified directory and its subdirectories.
loadFactories(Class<T>) - Static method in class dev.langchain4j.spi.ServiceHelper
Load all the services of a given type.
loadFactories(Class<T>, ClassLoader) - Static method in class dev.langchain4j.spi.ServiceHelper
Load all the services of a given type.
LocalAiChatModel - Class in dev.langchain4j.model.localai
See LocalAI documentation for more details.
LocalAiChatModel(String, String, Double, Double, Integer, Duration, Integer, Boolean, Boolean) - Constructor for class dev.langchain4j.model.localai.LocalAiChatModel
 
LocalAiChatModel.LocalAiChatModelBuilder - Class in dev.langchain4j.model.localai
 
LocalAiChatModelBuilder() - Constructor for class dev.langchain4j.model.localai.LocalAiChatModel.LocalAiChatModelBuilder
 
LocalAiChatModelBuilderFactory - Interface in dev.langchain4j.model.localai.spi
A factory for building LocalAiChatModel.LocalAiChatModelBuilder instances.
LocalAiEmbeddingModel - Class in dev.langchain4j.model.localai
See LocalAI documentation for more details.
LocalAiEmbeddingModel(String, String, Duration, Integer, Boolean, Boolean) - Constructor for class dev.langchain4j.model.localai.LocalAiEmbeddingModel
 
LocalAiEmbeddingModel.LocalAiEmbeddingModelBuilder - Class in dev.langchain4j.model.localai
 
LocalAiEmbeddingModelBuilder() - Constructor for class dev.langchain4j.model.localai.LocalAiEmbeddingModel.LocalAiEmbeddingModelBuilder
 
LocalAiEmbeddingModelBuilderFactory - Interface in dev.langchain4j.model.localai.spi
A factory for building LocalAiEmbeddingModel.LocalAiEmbeddingModelBuilder instances.
LocalAiLanguageModel - Class in dev.langchain4j.model.localai
See LocalAI documentation for more details.
LocalAiLanguageModel(String, String, Double, Double, Integer, Duration, Integer, Boolean, Boolean) - Constructor for class dev.langchain4j.model.localai.LocalAiLanguageModel
 
LocalAiLanguageModel.LocalAiLanguageModelBuilder - Class in dev.langchain4j.model.localai
 
LocalAiLanguageModelBuilder() - Constructor for class dev.langchain4j.model.localai.LocalAiLanguageModel.LocalAiLanguageModelBuilder
 
LocalAiLanguageModelBuilderFactory - Interface in dev.langchain4j.model.localai.spi
A factory for building LocalAiLanguageModel.LocalAiLanguageModelBuilder instances.
LocalAiStreamingChatModel - Class in dev.langchain4j.model.localai
See LocalAI documentation for more details.
LocalAiStreamingChatModel(String, String, Double, Double, Integer, Duration, Boolean, Boolean) - Constructor for class dev.langchain4j.model.localai.LocalAiStreamingChatModel
 
LocalAiStreamingChatModel.LocalAiStreamingChatModelBuilder - Class in dev.langchain4j.model.localai
 
LocalAiStreamingChatModelBuilder() - Constructor for class dev.langchain4j.model.localai.LocalAiStreamingChatModel.LocalAiStreamingChatModelBuilder
 
LocalAiStreamingChatModelBuilderFactory - Interface in dev.langchain4j.model.localai.spi
LocalAiStreamingLanguageModel - Class in dev.langchain4j.model.localai
See LocalAI documentation for more details.
LocalAiStreamingLanguageModel(String, String, Double, Double, Integer, Duration, Boolean, Boolean) - Constructor for class dev.langchain4j.model.localai.LocalAiStreamingLanguageModel
 
LocalAiStreamingLanguageModel.LocalAiStreamingLanguageModelBuilder - Class in dev.langchain4j.model.localai
 
LocalAiStreamingLanguageModelBuilder() - Constructor for class dev.langchain4j.model.localai.LocalAiStreamingLanguageModel.LocalAiStreamingLanguageModelBuilder
 
LocalAiStreamingLanguageModelBuilderFactory - Interface in dev.langchain4j.model.localai.spi
localDataCenter(String) - Method in class dev.langchain4j.store.embedding.cassandra.CassandraEmbeddingStore.Builder
 
localDataCenter(String) - Method in class dev.langchain4j.store.memory.chat.cassandra.CassandraChatMemoryStore.Builder
 
LocalDateOutputParser - Class in dev.langchain4j.model.output
 
LocalDateOutputParser() - Constructor for class dev.langchain4j.model.output.LocalDateOutputParser
 
LocalDateTimeOutputParser - Class in dev.langchain4j.model.output
 
LocalDateTimeOutputParser() - Constructor for class dev.langchain4j.model.output.LocalDateTimeOutputParser
 
LocalTimeOutputParser - Class in dev.langchain4j.model.output
 
LocalTimeOutputParser() - Constructor for class dev.langchain4j.model.output.LocalTimeOutputParser
 
location(String) - Method in class dev.langchain4j.model.vertexai.VertexAiChatModel.Builder
 
location(String) - Method in class dev.langchain4j.model.vertexai.VertexAiEmbeddingModel.Builder
 
location(String) - Method in class dev.langchain4j.model.vertexai.VertexAiImageModel.Builder
 
location(String) - Method in class dev.langchain4j.model.vertexai.VertexAiLanguageModel.Builder
 
logitBias(Map<String, Integer>) - Method in class dev.langchain4j.model.azure.AzureOpenAiChatModel.Builder
 
logitBias(Map<String, Integer>) - Method in class dev.langchain4j.model.azure.AzureOpenAiLanguageModel.Builder
 
logitBias(Map<String, Integer>) - Method in class dev.langchain4j.model.azure.AzureOpenAiStreamingChatModel.Builder
 
logitBias(Map<String, Integer>) - Method in class dev.langchain4j.model.azure.AzureOpenAiStreamingLanguageModel.Builder
 
logprobs(Integer) - Method in class dev.langchain4j.model.azure.AzureOpenAiLanguageModel.Builder
 
logprobs(Integer) - Method in class dev.langchain4j.model.azure.AzureOpenAiStreamingLanguageModel.Builder
 
logRequests - Variable in class dev.langchain4j.model.anthropic.internal.client.AnthropicClient.Builde