Uses of Interface
dev.langchain4j.model.chat.ChatLanguageModel
Package
Description
-
Uses of ChatLanguageModel in dev.langchain4j.chain
Modifier and TypeMethodDescriptionConversationalChain.ConversationalChainBuilder.chatLanguageModel
(ChatLanguageModel chatLanguageModel) ConversationalRetrievalChain.Builder.chatLanguageModel
(ChatLanguageModel chatLanguageModel) ModifierConstructorDescriptionConversationalRetrievalChain
(ChatLanguageModel chatLanguageModel, ChatMemory chatMemory, PromptTemplate promptTemplate, Retriever<TextSegment> retriever) Deprecated, for removal: This API element is subject to removal in a future version.ConversationalRetrievalChain
(ChatLanguageModel chatLanguageModel, ChatMemory chatMemory, ContentRetriever contentRetriever) ConversationalRetrievalChain
(ChatLanguageModel chatLanguageModel, ChatMemory chatMemory, RetrievalAugmentor retrievalAugmentor) -
Uses of ChatLanguageModel in dev.langchain4j.experimental.rag.content.retriever.sql
ModifierConstructorDescriptionSqlDatabaseContentRetriever
(DataSource dataSource, String sqlDialect, String databaseStructure, PromptTemplate promptTemplate, ChatLanguageModel chatLanguageModel, Integer maxRetries) Creates an instance of aSqlDatabaseContentRetriever
. -
Uses of ChatLanguageModel in dev.langchain4j.model.anthropic
Modifier and TypeClassDescriptionclass
Represents an Anthropic language model with a Messages (chat) API. -
Uses of ChatLanguageModel in dev.langchain4j.model.azure
Modifier and TypeClassDescriptionclass
Represents an OpenAI language model, hosted on Azure, that has a chat completion interface, such as gpt-3.5-turbo. -
Uses of ChatLanguageModel in dev.langchain4j.model.bedrock
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
Bedrock stability AI model This is for image generation.class
Bedrock Amazon Titan chat model -
Uses of ChatLanguageModel in dev.langchain4j.model.bedrock.internal
Modifier and TypeClassDescriptionclass
AbstractBedrockChatModel<T extends BedrockChatModelResponse>
Bedrock chat model -
Uses of ChatLanguageModel in dev.langchain4j.model.chat
Modifier and TypeClassDescriptionclass
AChatLanguageModel
which throws aModelDisabledException
for all of its methods -
Uses of ChatLanguageModel in dev.langchain4j.model.dashscope
Modifier and TypeClassDescriptionclass
Represents a Qwen language model with a chat completion interface. -
Uses of ChatLanguageModel in dev.langchain4j.model.github
Modifier and TypeClassDescriptionclass
Represents a language model, hosted on GitHub Models, that has a chat completion interface, such as gpt-4o. -
Uses of ChatLanguageModel in dev.langchain4j.model.googleai
-
Uses of ChatLanguageModel in dev.langchain4j.model.huggingface
-
Uses of ChatLanguageModel in dev.langchain4j.model.jlama
-
Uses of ChatLanguageModel in dev.langchain4j.model.localai
-
Uses of ChatLanguageModel in dev.langchain4j.model.mistralai
Modifier 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 ChatLanguageModel in dev.langchain4j.model.ollama
Modifier and TypeClassDescriptionclass
-
Uses of ChatLanguageModel in dev.langchain4j.model.openai
Modifier and TypeClassDescriptionclass
Represents an OpenAI language model with a chat completion interface, such as gpt-3.5-turbo and gpt-4. -
Uses of ChatLanguageModel in dev.langchain4j.model.vertexai
Modifier and TypeClassDescriptionclass
Represents a Google Vertex AI language model with a chat completion interface, such as chat-bison.class
Represents a Google Vertex AI Gemini language model with a chat completion interface, such as gemini-pro. -
Uses of ChatLanguageModel in dev.langchain4j.model.workersai
-
Uses of ChatLanguageModel in dev.langchain4j.rag.content.retriever.neo4j
ModifierConstructorDescriptionNeo4jContentRetriever
(Neo4jGraph graph, ChatLanguageModel chatLanguageModel, PromptTemplate promptTemplate) -
Uses of ChatLanguageModel in dev.langchain4j.rag.query.router
Modifier and TypeFieldDescriptionprotected final ChatLanguageModel
LanguageModelQueryRouter.chatLanguageModel
Modifier and TypeMethodDescriptionLanguageModelQueryRouter.LanguageModelQueryRouterBuilder.chatLanguageModel
(ChatLanguageModel chatLanguageModel) ModifierConstructorDescriptionLanguageModelQueryRouter
(ChatLanguageModel chatLanguageModel, Map<ContentRetriever, String> retrieverToDescription) LanguageModelQueryRouter
(ChatLanguageModel chatLanguageModel, Map<ContentRetriever, String> retrieverToDescription, PromptTemplate promptTemplate, LanguageModelQueryRouter.FallbackStrategy fallbackStrategy) -
Uses of ChatLanguageModel in dev.langchain4j.rag.query.transformer
Modifier and TypeFieldDescriptionprotected final ChatLanguageModel
CompressingQueryTransformer.chatLanguageModel
protected final ChatLanguageModel
ExpandingQueryTransformer.chatLanguageModel
Modifier and TypeMethodDescriptionCompressingQueryTransformer.CompressingQueryTransformerBuilder.chatLanguageModel
(ChatLanguageModel chatLanguageModel) ExpandingQueryTransformer.ExpandingQueryTransformerBuilder.chatLanguageModel
(ChatLanguageModel chatLanguageModel) ModifierConstructorDescriptionCompressingQueryTransformer
(ChatLanguageModel chatLanguageModel) CompressingQueryTransformer
(ChatLanguageModel chatLanguageModel, PromptTemplate promptTemplate) ExpandingQueryTransformer
(ChatLanguageModel chatLanguageModel) ExpandingQueryTransformer
(ChatLanguageModel chatLanguageModel, int n) ExpandingQueryTransformer
(ChatLanguageModel chatLanguageModel, PromptTemplate promptTemplate) ExpandingQueryTransformer
(ChatLanguageModel chatLanguageModel, PromptTemplate promptTemplate, Integer n) -
Uses of ChatLanguageModel in dev.langchain4j.service
Modifier and TypeMethodDescriptionAiServices.chatLanguageModel
(ChatLanguageModel chatLanguageModel) Configures chat model that will be used under the hood of the AI Service.static <T> T
AiServices.create
(Class<T> aiService, ChatLanguageModel chatLanguageModel) Creates an AI Service (an implementation of the provided interface), that is backed by the provided chat model. -
Uses of ChatLanguageModel in dev.langchain4j.store.embedding.filter.builder.sql
Modifier and TypeFieldDescriptionprotected final ChatLanguageModel
LanguageModelSqlFilterBuilder.chatLanguageModel
ModifierConstructorDescriptionLanguageModelSqlFilterBuilder
(ChatLanguageModel chatLanguageModel, TableDefinition tableDefinition)
ContentRetriever
instead.