Index
All Classes and Interfaces|All Packages|Serialized Form
A
- aroundReadFrom(ReaderInterceptorContext) - Method in class io.quarkiverse.langchain4j.ollama.OllamaRestApi.OllamaRestApiReaderInterceptor
- aroundWriteTo(WriterInterceptorContext) - Method in class io.quarkiverse.langchain4j.ollama.OllamaRestApi.OpenAiRestApiWriterInterceptor
- ASSISTANT - Enum constant in enum class io.quarkiverse.langchain4j.ollama.Role
B
- baseUrl() - Method in interface io.quarkiverse.langchain4j.ollama.runtime.config.LangChain4jOllamaConfig.OllamaConfig
-
Base URL where the Ollama serving is running
- baseUrl(String) - Method in class io.quarkiverse.langchain4j.ollama.OllamaChatLanguageModel.Builder
- baseUrl(String) - Method in class io.quarkiverse.langchain4j.ollama.OllamaEmbeddingModel.Builder
- baseUrl(String) - Method in class io.quarkiverse.langchain4j.ollama.OllamaStreamingChatLanguageModel.Builder
- build() - Method in class io.quarkiverse.langchain4j.ollama.ChatRequest.Builder
- build() - Method in class io.quarkiverse.langchain4j.ollama.EmbeddingRequest.Builder
- build() - Method in class io.quarkiverse.langchain4j.ollama.EmbeddingResponse.Builder
- build() - Method in class io.quarkiverse.langchain4j.ollama.Message.Builder
- build() - Method in class io.quarkiverse.langchain4j.ollama.OllamaChatLanguageModel.Builder
- build() - Method in class io.quarkiverse.langchain4j.ollama.OllamaEmbeddingModel.Builder
- build() - Method in class io.quarkiverse.langchain4j.ollama.OllamaStreamingChatLanguageModel.Builder
- build() - Method in class io.quarkiverse.langchain4j.ollama.Options.Builder
- builder() - Static method in record class io.quarkiverse.langchain4j.ollama.ChatRequest
- builder() - Static method in class io.quarkiverse.langchain4j.ollama.EmbeddingRequest
- builder() - Static method in record class io.quarkiverse.langchain4j.ollama.Message
- builder() - Static method in class io.quarkiverse.langchain4j.ollama.OllamaChatLanguageModel
- builder() - Static method in class io.quarkiverse.langchain4j.ollama.OllamaEmbeddingModel
- builder() - Static method in class io.quarkiverse.langchain4j.ollama.OllamaStreamingChatLanguageModel
- builder() - Static method in record class io.quarkiverse.langchain4j.ollama.Options
- Builder() - Constructor for class io.quarkiverse.langchain4j.ollama.ChatRequest.Builder
- Builder() - Constructor for class io.quarkiverse.langchain4j.ollama.Message.Builder
- Builder() - Constructor for class io.quarkiverse.langchain4j.ollama.Options.Builder
C
- chat(ChatRequest) - Method in class io.quarkiverse.langchain4j.ollama.OllamaClient
- chat(ChatRequest) - Method in interface io.quarkiverse.langchain4j.ollama.OllamaRestApi
- chatModel() - Method in interface io.quarkiverse.langchain4j.ollama.runtime.config.LangChain4jOllamaConfig.OllamaConfig
-
Chat model related settings
- chatModel(LangChain4jOllamaConfig, String) - Method in class io.quarkiverse.langchain4j.ollama.runtime.OllamaRecorder
- ChatModelConfig - Interface in io.quarkiverse.langchain4j.ollama.runtime.config
- ChatRequest - Record Class in io.quarkiverse.langchain4j.ollama
- ChatRequest(String, List<Message>, Options, String, Boolean) - Constructor for record class io.quarkiverse.langchain4j.ollama.ChatRequest
-
Creates an instance of a
ChatRequest
record class. - ChatRequest.Builder - Class in io.quarkiverse.langchain4j.ollama
- ChatResponse - Record Class in io.quarkiverse.langchain4j.ollama
- ChatResponse(String, String, Message, Boolean, Integer, Integer) - Constructor for record class io.quarkiverse.langchain4j.ollama.ChatResponse
-
Creates an instance of a
ChatResponse
record class. - content() - Method in record class io.quarkiverse.langchain4j.ollama.Message
-
Returns the value of the
content
record component. - content(String) - Method in class io.quarkiverse.langchain4j.ollama.Message.Builder
- createdAt() - Method in record class io.quarkiverse.langchain4j.ollama.ChatResponse
-
Returns the value of the
createdAt
record component.
D
- defaultConfig() - Method in interface io.quarkiverse.langchain4j.ollama.runtime.config.LangChain4jOllamaConfig
-
Default model config.
- deserialize(JsonParser, DeserializationContext) - Method in class io.quarkiverse.langchain4j.ollama.runtime.jackson.RoleDeserializer
- done() - Method in record class io.quarkiverse.langchain4j.ollama.ChatResponse
-
Returns the value of the
done
record component.
E
- embedAll(List<TextSegment>) - Method in class io.quarkiverse.langchain4j.ollama.OllamaEmbeddingModel
- embedding(float[]) - Method in class io.quarkiverse.langchain4j.ollama.EmbeddingResponse.Builder
- embedding(EmbeddingRequest) - Method in class io.quarkiverse.langchain4j.ollama.OllamaClient
- embeddingModel() - Method in interface io.quarkiverse.langchain4j.ollama.runtime.config.LangChain4jOllamaConfig.OllamaConfig
-
Embedding model related settings
- embeddingModel(LangChain4jOllamaConfig, String) - Method in class io.quarkiverse.langchain4j.ollama.runtime.OllamaRecorder
- EmbeddingModelConfig - Interface in io.quarkiverse.langchain4j.ollama.runtime.config
- EmbeddingRequest - Class in io.quarkiverse.langchain4j.ollama
- EmbeddingRequest.Builder - Class in io.quarkiverse.langchain4j.ollama
- EmbeddingResponse - Class in io.quarkiverse.langchain4j.ollama
- EmbeddingResponse.Builder - Class in io.quarkiverse.langchain4j.ollama
- embeddings(EmbeddingRequest) - Method in interface io.quarkiverse.langchain4j.ollama.OllamaRestApi
- emptyDone() - Static method in record class io.quarkiverse.langchain4j.ollama.ChatResponse
- enableIntegration() - Method in interface io.quarkiverse.langchain4j.ollama.runtime.config.LangChain4jOllamaConfig.OllamaConfig
-
Whether to enable the integration.
- equals(Object) - Method in record class io.quarkiverse.langchain4j.ollama.ChatRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.quarkiverse.langchain4j.ollama.ChatResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.quarkiverse.langchain4j.ollama.Message
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.quarkiverse.langchain4j.ollama.Options
-
Indicates whether some other object is "equal to" this one.
- evalCount() - Method in record class io.quarkiverse.langchain4j.ollama.ChatResponse
-
Returns the value of the
evalCount
record component.
F
- format() - Method in record class io.quarkiverse.langchain4j.ollama.ChatRequest
-
Returns the value of the
format
record component. - format() - Method in interface io.quarkiverse.langchain4j.ollama.runtime.config.ChatModelConfig
-
the format to return a response in.
- format(String) - Method in class io.quarkiverse.langchain4j.ollama.ChatRequest.Builder
- format(String) - Method in class io.quarkiverse.langchain4j.ollama.OllamaChatLanguageModel.Builder
- format(String) - Method in class io.quarkiverse.langchain4j.ollama.OllamaStreamingChatLanguageModel.Builder
- from(ChatRequest) - Method in class io.quarkiverse.langchain4j.ollama.ChatRequest.Builder
G
- generate(List<ChatMessage>) - Method in class io.quarkiverse.langchain4j.ollama.OllamaChatLanguageModel
- generate(List<ChatMessage>, StreamingResponseHandler<AiMessage>) - Method in class io.quarkiverse.langchain4j.ollama.OllamaStreamingChatLanguageModel
- getEmbedding() - Method in class io.quarkiverse.langchain4j.ollama.EmbeddingResponse
- getModel() - Method in class io.quarkiverse.langchain4j.ollama.EmbeddingRequest
- getPrompt() - Method in class io.quarkiverse.langchain4j.ollama.EmbeddingRequest
H
- hashCode() - Method in record class io.quarkiverse.langchain4j.ollama.ChatRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.quarkiverse.langchain4j.ollama.ChatResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.quarkiverse.langchain4j.ollama.Message
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.quarkiverse.langchain4j.ollama.Options
-
Returns a hash code value for this object.
I
- images() - Method in record class io.quarkiverse.langchain4j.ollama.Message
-
Returns the value of the
images
record component. - images(List<String>) - Method in class io.quarkiverse.langchain4j.ollama.Message.Builder
- io.quarkiverse.langchain4j.ollama - package io.quarkiverse.langchain4j.ollama
- io.quarkiverse.langchain4j.ollama.runtime - package io.quarkiverse.langchain4j.ollama.runtime
- io.quarkiverse.langchain4j.ollama.runtime.config - package io.quarkiverse.langchain4j.ollama.runtime.config
- io.quarkiverse.langchain4j.ollama.runtime.jackson - package io.quarkiverse.langchain4j.ollama.runtime.jackson
L
- LangChain4jOllamaConfig - Interface in io.quarkiverse.langchain4j.ollama.runtime.config
- LangChain4jOllamaConfig.OllamaConfig - Interface in io.quarkiverse.langchain4j.ollama.runtime.config
- logRequest(HttpClientRequest, Buffer, boolean) - Method in class io.quarkiverse.langchain4j.ollama.OllamaRestApi.OllamaLogger
- logRequests() - Method in interface io.quarkiverse.langchain4j.ollama.runtime.config.ChatModelConfig
-
Whether chat model requests should be logged
- logRequests() - Method in interface io.quarkiverse.langchain4j.ollama.runtime.config.EmbeddingModelConfig
-
Whether embedding model requests should be logged
- logRequests() - Method in interface io.quarkiverse.langchain4j.ollama.runtime.config.LangChain4jOllamaConfig.OllamaConfig
-
Whether the Ollama client should log requests
- logRequests(boolean) - Method in class io.quarkiverse.langchain4j.ollama.OllamaChatLanguageModel.Builder
- logRequests(boolean) - Method in class io.quarkiverse.langchain4j.ollama.OllamaEmbeddingModel.Builder
- logRequests(boolean) - Method in class io.quarkiverse.langchain4j.ollama.OllamaStreamingChatLanguageModel.Builder
- logResponse(HttpClientResponse, boolean) - Method in class io.quarkiverse.langchain4j.ollama.OllamaRestApi.OllamaLogger
- logResponses() - Method in interface io.quarkiverse.langchain4j.ollama.runtime.config.ChatModelConfig
-
Whether chat model responses should be logged
- logResponses() - Method in interface io.quarkiverse.langchain4j.ollama.runtime.config.EmbeddingModelConfig
-
Whether embedding model responses should be logged
- logResponses() - Method in interface io.quarkiverse.langchain4j.ollama.runtime.config.LangChain4jOllamaConfig.OllamaConfig
-
Whether the Ollama client should log responses
- logResponses(boolean) - Method in class io.quarkiverse.langchain4j.ollama.OllamaChatLanguageModel.Builder
- logResponses(boolean) - Method in class io.quarkiverse.langchain4j.ollama.OllamaEmbeddingModel.Builder
- logResponses(boolean) - Method in class io.quarkiverse.langchain4j.ollama.OllamaStreamingChatLanguageModel.Builder
M
- message() - Method in record class io.quarkiverse.langchain4j.ollama.ChatResponse
-
Returns the value of the
message
record component. - Message - Record Class in io.quarkiverse.langchain4j.ollama
- Message(Role, String, List<String>) - Constructor for record class io.quarkiverse.langchain4j.ollama.Message
-
Creates an instance of a
Message
record class. - Message.Builder - Class in io.quarkiverse.langchain4j.ollama
- messages() - Method in record class io.quarkiverse.langchain4j.ollama.ChatRequest
-
Returns the value of the
messages
record component. - messages(List<Message>) - Method in class io.quarkiverse.langchain4j.ollama.ChatRequest.Builder
- model() - Method in record class io.quarkiverse.langchain4j.ollama.ChatRequest
-
Returns the value of the
model
record component. - model() - Method in record class io.quarkiverse.langchain4j.ollama.ChatResponse
-
Returns the value of the
model
record component. - model(String) - Method in class io.quarkiverse.langchain4j.ollama.ChatRequest.Builder
- model(String) - Method in class io.quarkiverse.langchain4j.ollama.EmbeddingRequest.Builder
- model(String) - Method in class io.quarkiverse.langchain4j.ollama.OllamaChatLanguageModel.Builder
- model(String) - Method in class io.quarkiverse.langchain4j.ollama.OllamaEmbeddingModel.Builder
- model(String) - Method in class io.quarkiverse.langchain4j.ollama.OllamaStreamingChatLanguageModel.Builder
- modelId() - Method in interface io.quarkiverse.langchain4j.ollama.runtime.config.ChatModelConfig
-
Model to use.
- modelId() - Method in interface io.quarkiverse.langchain4j.ollama.runtime.config.EmbeddingModelConfig
-
Model to use.
N
- namedConfig() - Method in interface io.quarkiverse.langchain4j.ollama.runtime.config.LangChain4jOllamaConfig
-
Named model config.
- numCtx() - Method in record class io.quarkiverse.langchain4j.ollama.Options
-
Returns the value of the
numCtx
record component. - numCtx(Integer) - Method in class io.quarkiverse.langchain4j.ollama.Options.Builder
- numPredict() - Method in record class io.quarkiverse.langchain4j.ollama.Options
-
Returns the value of the
numPredict
record component. - numPredict() - Method in interface io.quarkiverse.langchain4j.ollama.runtime.config.ChatModelConfig
-
Maximum number of tokens to predict when generating text
- numPredict() - Method in interface io.quarkiverse.langchain4j.ollama.runtime.config.EmbeddingModelConfig
-
Maximum number of tokens to predict when generating text
- numPredict(Integer) - Method in class io.quarkiverse.langchain4j.ollama.Options.Builder
O
- objectMapper(ObjectMapper) - Static method in interface io.quarkiverse.langchain4j.ollama.OllamaRestApi
- OllamaChatLanguageModel - Class in io.quarkiverse.langchain4j.ollama
- OllamaChatLanguageModel.Builder - Class in io.quarkiverse.langchain4j.ollama
- OllamaClient - Class in io.quarkiverse.langchain4j.ollama
- OllamaClient(String, Duration, boolean, boolean) - Constructor for class io.quarkiverse.langchain4j.ollama.OllamaClient
- OllamaEmbeddingModel - Class in io.quarkiverse.langchain4j.ollama
- OllamaEmbeddingModel.Builder - Class in io.quarkiverse.langchain4j.ollama
- OllamaLogger(boolean, boolean) - Constructor for class io.quarkiverse.langchain4j.ollama.OllamaRestApi.OllamaLogger
- OllamaRecorder - Class in io.quarkiverse.langchain4j.ollama.runtime
- OllamaRecorder() - Constructor for class io.quarkiverse.langchain4j.ollama.runtime.OllamaRecorder
- OllamaRestApi - Interface in io.quarkiverse.langchain4j.ollama
-
This Microprofile REST client is used as the building block of all the API calls to HuggingFace.
- OllamaRestApi.OllamaLogger - Class in io.quarkiverse.langchain4j.ollama
-
Introduce a custom logger as the stock one logs at the DEBUG level by default...
- OllamaRestApi.OllamaRestApiReaderInterceptor - Class in io.quarkiverse.langchain4j.ollama
-
This is needed because for some reason Vert.x is not giving us the entire content of the last chunk and this results in a json parsing exception.
- OllamaRestApi.OpenAiRestApiWriterInterceptor - Class in io.quarkiverse.langchain4j.ollama
-
The point of this is to properly set the
stream
value of the request so users don't have to remember to set it manually - OllamaRestApiReaderInterceptor() - Constructor for class io.quarkiverse.langchain4j.ollama.OllamaRestApi.OllamaRestApiReaderInterceptor
- OllamaStreamingChatLanguageModel - Class in io.quarkiverse.langchain4j.ollama
-
Use to have streaming feature on models used trough Ollama.
- OllamaStreamingChatLanguageModel.Builder - Class in io.quarkiverse.langchain4j.ollama
-
Builder for Ollama configuration.
- OpenAiRestApiWriterInterceptor() - Constructor for class io.quarkiverse.langchain4j.ollama.OllamaRestApi.OpenAiRestApiWriterInterceptor
- options() - Method in record class io.quarkiverse.langchain4j.ollama.ChatRequest
-
Returns the value of the
options
record component. - options(Options) - Method in class io.quarkiverse.langchain4j.ollama.ChatRequest.Builder
- options(Options) - Method in class io.quarkiverse.langchain4j.ollama.OllamaChatLanguageModel.Builder
- options(Options) - Method in class io.quarkiverse.langchain4j.ollama.OllamaStreamingChatLanguageModel.Builder
- Options - Record Class in io.quarkiverse.langchain4j.ollama
-
request options in completion/embedding API
- Options(Double, Integer, Double, Double, Integer, Integer, Integer, List<String>) - Constructor for record class io.quarkiverse.langchain4j.ollama.Options
-
Creates an instance of a
Options
record class. - Options.Builder - Class in io.quarkiverse.langchain4j.ollama
P
- prompt(String) - Method in class io.quarkiverse.langchain4j.ollama.EmbeddingRequest.Builder
- promptEvalCount() - Method in record class io.quarkiverse.langchain4j.ollama.ChatResponse
-
Returns the value of the
promptEvalCount
record component.
R
- repeatPenalty() - Method in record class io.quarkiverse.langchain4j.ollama.Options
-
Returns the value of the
repeatPenalty
record component. - repeatPenalty(Double) - Method in class io.quarkiverse.langchain4j.ollama.Options.Builder
- role() - Method in record class io.quarkiverse.langchain4j.ollama.Message
-
Returns the value of the
role
record component. - role(Role) - Method in class io.quarkiverse.langchain4j.ollama.Message.Builder
- Role - Enum Class in io.quarkiverse.langchain4j.ollama
- RoleDeserializer - Class in io.quarkiverse.langchain4j.ollama.runtime.jackson
- RoleDeserializer() - Constructor for class io.quarkiverse.langchain4j.ollama.runtime.jackson.RoleDeserializer
S
- seed() - Method in record class io.quarkiverse.langchain4j.ollama.Options
-
Returns the value of the
seed
record component. - seed() - Method in interface io.quarkiverse.langchain4j.ollama.runtime.config.ChatModelConfig
-
With a static number the result is always the same.
- seed(Integer) - Method in class io.quarkiverse.langchain4j.ollama.Options.Builder
- setBodySize(int) - Method in class io.quarkiverse.langchain4j.ollama.OllamaRestApi.OllamaLogger
- setEmbedding(float[]) - Method in class io.quarkiverse.langchain4j.ollama.EmbeddingResponse
- stop() - Method in record class io.quarkiverse.langchain4j.ollama.Options
-
Returns the value of the
stop
record component. - stop() - Method in interface io.quarkiverse.langchain4j.ollama.runtime.config.ChatModelConfig
-
Sets the stop sequences to use.
- stop() - Method in interface io.quarkiverse.langchain4j.ollama.runtime.config.EmbeddingModelConfig
-
Sets the stop sequences to use.
- stop(List<String>) - Method in class io.quarkiverse.langchain4j.ollama.Options.Builder
- stream() - Method in record class io.quarkiverse.langchain4j.ollama.ChatRequest
-
Returns the value of the
stream
record component. - stream(Boolean) - Method in class io.quarkiverse.langchain4j.ollama.ChatRequest.Builder
- streamingChat(ChatRequest) - Method in class io.quarkiverse.langchain4j.ollama.OllamaClient
- streamingChat(ChatRequest) - Method in interface io.quarkiverse.langchain4j.ollama.OllamaRestApi
- streamingChatModel(LangChain4jOllamaConfig, String) - Method in class io.quarkiverse.langchain4j.ollama.runtime.OllamaRecorder
- SYSTEM - Enum constant in enum class io.quarkiverse.langchain4j.ollama.Role
T
- temperature() - Method in record class io.quarkiverse.langchain4j.ollama.Options
-
Returns the value of the
temperature
record component. - temperature() - Method in interface io.quarkiverse.langchain4j.ollama.runtime.config.ChatModelConfig
-
The temperature of the model.
- temperature() - Method in interface io.quarkiverse.langchain4j.ollama.runtime.config.EmbeddingModelConfig
-
The temperature of the model.
- temperature(Double) - Method in class io.quarkiverse.langchain4j.ollama.Options.Builder
- timeout() - Method in interface io.quarkiverse.langchain4j.ollama.runtime.config.LangChain4jOllamaConfig.OllamaConfig
-
Timeout for Ollama calls
- timeout(Duration) - Method in class io.quarkiverse.langchain4j.ollama.OllamaChatLanguageModel.Builder
- timeout(Duration) - Method in class io.quarkiverse.langchain4j.ollama.OllamaEmbeddingModel.Builder
- timeout(Duration) - Method in class io.quarkiverse.langchain4j.ollama.OllamaStreamingChatLanguageModel.Builder
- topK() - Method in record class io.quarkiverse.langchain4j.ollama.Options
-
Returns the value of the
topK
record component. - topK() - Method in interface io.quarkiverse.langchain4j.ollama.runtime.config.ChatModelConfig
-
Reduces the probability of generating nonsense.
- topK() - Method in interface io.quarkiverse.langchain4j.ollama.runtime.config.EmbeddingModelConfig
-
Reduces the probability of generating nonsense.
- topK(Integer) - Method in class io.quarkiverse.langchain4j.ollama.Options.Builder
- topP() - Method in record class io.quarkiverse.langchain4j.ollama.Options
-
Returns the value of the
topP
record component. - topP() - Method in interface io.quarkiverse.langchain4j.ollama.runtime.config.ChatModelConfig
-
Works together with top-k.
- topP() - Method in interface io.quarkiverse.langchain4j.ollama.runtime.config.EmbeddingModelConfig
-
Works together with top-k.
- topP(Double) - Method in class io.quarkiverse.langchain4j.ollama.Options.Builder
- toString() - Method in record class io.quarkiverse.langchain4j.ollama.ChatRequest
-
Returns a string representation of this record class.
- toString() - Method in record class io.quarkiverse.langchain4j.ollama.ChatResponse
-
Returns a string representation of this record class.
- toString() - Method in record class io.quarkiverse.langchain4j.ollama.Message
-
Returns a string representation of this record class.
- toString() - Method in record class io.quarkiverse.langchain4j.ollama.Options
-
Returns a string representation of this record class.
U
V
- valueOf(String) - Static method in enum class io.quarkiverse.langchain4j.ollama.Role
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class io.quarkiverse.langchain4j.ollama.Role
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages|Serialized Form