Uses of Interface
dev.langchain4j.model.chat.ChatModel
Packages that use ChatModel
Package
Description
-
Uses of ChatModel in dev.langchain4j.chain
Methods in dev.langchain4j.chain with parameters of type ChatModelModifier and TypeMethodDescriptionConstructors in dev.langchain4j.chain with parameters of type ChatModelModifierConstructorDescriptionConversationalRetrievalChain
(ChatModel chatModel, ChatMemory chatMemory, ContentRetriever contentRetriever) ConversationalRetrievalChain
(ChatModel chatModel, ChatMemory chatMemory, RetrievalAugmentor retrievalAugmentor) -
Uses of ChatModel in dev.langchain4j.experimental.rag.content.retriever.sql
Methods in dev.langchain4j.experimental.rag.content.retriever.sql with parameters of type ChatModelModifier and TypeMethodDescriptionConstructors in dev.langchain4j.experimental.rag.content.retriever.sql with parameters of type ChatModelModifierConstructorDescriptionSqlDatabaseContentRetriever
(DataSource dataSource, String sqlDialect, String databaseStructure, PromptTemplate promptTemplate, ChatModel chatModel, Integer maxRetries) Creates an instance of aSqlDatabaseContentRetriever
. -
Uses of ChatModel in dev.langchain4j.model.anthropic
Classes in dev.langchain4j.model.anthropic that implement ChatModelModifier and TypeClassDescriptionclass
Represents an Anthropic language model with a Messages (chat) API. -
Uses of ChatModel in dev.langchain4j.model.azure
Classes in dev.langchain4j.model.azure that implement ChatModelModifier and TypeClassDescriptionclass
Represents an OpenAI language model, hosted on Azure, that has a chat completion interface, such as gpt-3.5-turbo. -
Uses of ChatModel in dev.langchain4j.model.bedrock
Classes in dev.langchain4j.model.bedrock that implement ChatModelModifier and TypeClassDescriptionclass
Deprecated, for removal: This API element is subject to removal in a future version.class
Deprecated, for removal: This API element is subject to removal in a future version.please useBedrockChatModel
insteadclass
Deprecated, for removal: This API element is subject to removal in a future version.please useBedrockChatModel
insteadclass
BedrockChatModel uses the Bedrock ConverseAPI.class
Deprecated, for removal: This API element is subject to removal in a future version.please useBedrockChatModel
insteadclass
Deprecated, for removal: This API element is subject to removal in a future version.please useBedrockChatModel
insteadclass
Deprecated, for removal: This API element is subject to removal in a future version.please useBedrockChatModel
insteadclass
Deprecated, for removal: This API element is subject to removal in a future version.Will be removed in the next release, this functionality will not be supported anymore.class
Deprecated, for removal: This API element is subject to removal in a future version.please useBedrockChatModel
instead -
Uses of ChatModel in dev.langchain4j.model.bedrock.internal
Classes in dev.langchain4j.model.bedrock.internal that implement ChatModelModifier and TypeClassDescriptionclass
AbstractBedrockChatModel<T extends BedrockChatModelResponse>
Bedrock chat model using the Bedrock InvokeAPI. -
Uses of ChatModel in dev.langchain4j.model.chat
Classes in dev.langchain4j.model.chat that implement ChatModelModifier and TypeClassDescriptionclass
AChatModel
which throws aModelDisabledException
for all of its methods -
Uses of ChatModel in dev.langchain4j.model.github
Classes in dev.langchain4j.model.github that implement ChatModelModifier and TypeClassDescriptionclass
Represents a language model, hosted on GitHub Models, that has a chat completion interface, such as gpt-4o. -
Uses of ChatModel in dev.langchain4j.model.googleai
Classes in dev.langchain4j.model.googleai that implement ChatModel -
Uses of ChatModel in dev.langchain4j.model.huggingface
Classes in dev.langchain4j.model.huggingface that implement ChatModel -
Uses of ChatModel in dev.langchain4j.model.jlama
Classes in dev.langchain4j.model.jlama that implement ChatModel -
Uses of ChatModel in dev.langchain4j.model.localai
Classes in dev.langchain4j.model.localai that implement ChatModel -
Uses of ChatModel in dev.langchain4j.model.mistralai
Classes in dev.langchain4j.model.mistralai that implement ChatModelModifier and TypeClassDescriptionclass
Represents a Mistral AI Chat Model with a chat completion interface, such as open-mistral-7b and open-mixtral-8x7b This model allows generating chat completion of a sync way based on a list of chat messages. -
Uses of ChatModel in dev.langchain4j.model.ollama
Classes in dev.langchain4j.model.ollama that implement ChatModelModifier and TypeClassDescriptionclass
-
Uses of ChatModel in dev.langchain4j.model.openai
Classes in dev.langchain4j.model.openai that implement ChatModelModifier and TypeClassDescriptionclass
Represents an OpenAI language model with a chat completion interface, such as gpt-4o-mini and o3. -
Uses of ChatModel in dev.langchain4j.model.openaiofficial
Classes in dev.langchain4j.model.openaiofficial that implement ChatModel -
Uses of ChatModel in dev.langchain4j.model.vertexai
Classes in dev.langchain4j.model.vertexai that implement ChatModelModifier and TypeClassDescriptionclass
Deprecated, for removal: This API element is subject to removal in a future version.The "Bison" models have been discontinued by Google.class
Represents a Google Vertex AI Gemini language model with a chat completion interface, such as gemini-pro. -
Uses of ChatModel in dev.langchain4j.model.workersai
Classes in dev.langchain4j.model.workersai that implement ChatModel -
Uses of ChatModel in dev.langchain4j.rag.query.router
Fields in dev.langchain4j.rag.query.router declared as ChatModelMethods in dev.langchain4j.rag.query.router with parameters of type ChatModelModifier and TypeMethodDescriptionConstructors in dev.langchain4j.rag.query.router with parameters of type ChatModelModifierConstructorDescriptionLanguageModelQueryRouter
(ChatModel chatModel, Map<ContentRetriever, String> retrieverToDescription) LanguageModelQueryRouter
(ChatModel chatModel, Map<ContentRetriever, String> retrieverToDescription, PromptTemplate promptTemplate, LanguageModelQueryRouter.FallbackStrategy fallbackStrategy) -
Uses of ChatModel in dev.langchain4j.rag.query.transformer
Fields in dev.langchain4j.rag.query.transformer declared as ChatModelModifier and TypeFieldDescriptionprotected final ChatModel
CompressingQueryTransformer.chatModel
protected final ChatModel
ExpandingQueryTransformer.chatModel
Methods in dev.langchain4j.rag.query.transformer with parameters of type ChatModelModifier and TypeMethodDescriptionConstructors in dev.langchain4j.rag.query.transformer with parameters of type ChatModelModifierConstructorDescriptionCompressingQueryTransformer
(ChatModel chatModel) CompressingQueryTransformer
(ChatModel chatModel, PromptTemplate promptTemplate) ExpandingQueryTransformer
(ChatModel chatModel) ExpandingQueryTransformer
(ChatModel chatModel, int n) ExpandingQueryTransformer
(ChatModel chatModel, PromptTemplate promptTemplate) ExpandingQueryTransformer
(ChatModel chatModel, PromptTemplate promptTemplate, Integer n) -
Uses of ChatModel in dev.langchain4j.service
Fields in dev.langchain4j.service declared as ChatModelMethods in dev.langchain4j.service with parameters of type ChatModelModifier and TypeMethodDescriptionConfigures chat model that will be used under the hood of the AI Service.static <T> T
Creates an AI Service (an implementation of the provided interface), that is backed by the provided chat model. -
Uses of ChatModel in dev.langchain4j.service.tool
Methods in dev.langchain4j.service.tool with parameters of type ChatModelModifier and TypeMethodDescriptionToolService.executeInferenceAndToolsLoop
(ChatResponse chatResponse, ChatRequestParameters parameters, List<ChatMessage> messages, ChatModel chatModel, ChatMemory chatMemory, Object memoryId, Map<String, ToolExecutor> toolExecutors) -
Uses of ChatModel in dev.langchain4j.store.embedding.filter.builder.sql
Fields in dev.langchain4j.store.embedding.filter.builder.sql declared as ChatModelModifier and TypeFieldDescriptionprotected final ChatModel
LanguageModelSqlFilterBuilder.chatModel
Methods in dev.langchain4j.store.embedding.filter.builder.sql with parameters of type ChatModelModifier and TypeMethodDescriptionConstructors in dev.langchain4j.store.embedding.filter.builder.sql with parameters of type ChatModelModifierConstructorDescriptionLanguageModelSqlFilterBuilder
(ChatModel chatModel, TableDefinition tableDefinition)
BedrockChatModel
instead