Uses of Class
dev.langchain4j.model.input.Prompt
Packages that use Prompt
Package
Description
-
Uses of Prompt in dev.langchain4j.experimental.rag.content.retriever.sql
Methods in dev.langchain4j.experimental.rag.content.retriever.sql that return PromptModifier and TypeMethodDescriptionprotected Prompt
SqlDatabaseContentRetriever.createSystemPrompt()
-
Uses of Prompt in dev.langchain4j.model.chat
Methods in dev.langchain4j.model.chat with parameters of type PromptModifier and TypeMethodDescriptiondefault int
TokenCountEstimator.estimateTokenCount
(Prompt prompt) Estimates the count of tokens in the specified prompt. -
Uses of Prompt in dev.langchain4j.model.input
Methods in dev.langchain4j.model.input that return PromptModifier and TypeMethodDescriptionApplies a value to a template containing a single variable.Applies multiple values to a template containing multiple variables.static Prompt
Create a new Prompt. -
Uses of Prompt in dev.langchain4j.model.input.structured
Methods in dev.langchain4j.model.input.structured that return Prompt -
Uses of Prompt in dev.langchain4j.model.language
Methods in dev.langchain4j.model.language with parameters of type PromptModifier and TypeMethodDescriptiondefault int
TokenCountEstimator.estimateTokenCount
(Prompt prompt) Estimates the count of tokens in the given prompt.void
DisabledStreamingLanguageModel.generate
(Prompt prompt, StreamingResponseHandler<String> handler) Generate a response to the given prompt.default void
StreamingLanguageModel.generate
(Prompt prompt, StreamingResponseHandler<String> handler) Generates a response from the model based on a prompt. -
Uses of Prompt in dev.langchain4j.model.moderation
Methods in dev.langchain4j.model.moderation with parameters of type Prompt -
Uses of Prompt in dev.langchain4j.model.workersai
Methods in dev.langchain4j.model.workersai with parameters of type Prompt -
Uses of Prompt in dev.langchain4j.rag.content.injector
Methods in dev.langchain4j.rag.content.injector that return PromptModifier and TypeMethodDescriptionprotected Prompt
DefaultContentInjector.createPrompt
(ChatMessage chatMessage, List<Content> contents) protected Prompt
DefaultContentInjector.createPrompt
(UserMessage userMessage, List<Content> contents) Deprecated. -
Uses of Prompt in dev.langchain4j.rag.query.router
Methods in dev.langchain4j.rag.query.router that return PromptModifier and TypeMethodDescriptionprotected Prompt
LanguageModelQueryRouter.createPrompt
(Query query) -
Uses of Prompt in dev.langchain4j.rag.query.transformer
Methods in dev.langchain4j.rag.query.transformer that return PromptModifier and TypeMethodDescriptionprotected Prompt
CompressingQueryTransformer.createPrompt
(Query query, String chatMemory) protected Prompt
ExpandingQueryTransformer.createPrompt
(Query query) -
Uses of Prompt in dev.langchain4j.spi.prompt.structured
Methods in dev.langchain4j.spi.prompt.structured that return Prompt -
Uses of Prompt in dev.langchain4j.store.embedding.filter.builder.sql
Methods in dev.langchain4j.store.embedding.filter.builder.sql that return PromptModifier and TypeMethodDescriptionprotected Prompt
LanguageModelSqlFilterBuilder.createPrompt
(Query query)
DefaultContentInjector.createPrompt(ChatMessage, List)
instead.