Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- additionalModels() - Method in record class org.springframework.ai.ollama.management.ModelManagementOptions
-
Returns the value of the
additionalModelsrecord component. - additionalModels(List<String>) - Method in class org.springframework.ai.ollama.management.ModelManagementOptions.Builder
- ALWAYS - Enum constant in enum class org.springframework.ai.ollama.management.PullModelStrategy
-
Always pull the model, even if it's already available.
- arguments() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Message.ToolCallFunction
-
Returns the value of the
argumentsrecord component. - ASSISTANT - Enum constant in enum class org.springframework.ai.ollama.api.OllamaApi.Message.Role
-
Assistant message type.
B
- baseUrl(String) - Method in class org.springframework.ai.ollama.api.OllamaApi.Builder
- build() - Method in class org.springframework.ai.ollama.api.OllamaApi.Builder
- build() - Method in class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Builder
- build() - Method in class org.springframework.ai.ollama.api.OllamaApi.Message.Builder
- build() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- build() - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions.Builder
- build() - Method in class org.springframework.ai.ollama.management.ModelManagementOptions.Builder
- build() - Method in class org.springframework.ai.ollama.OllamaChatModel.Builder
- build() - Method in class org.springframework.ai.ollama.OllamaEmbeddingModel.Builder
- builder() - Static method in class org.springframework.ai.ollama.api.OllamaApi
- builder() - Static method in class org.springframework.ai.ollama.api.OllamaChatOptions
- builder() - Static method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- builder() - Static method in record class org.springframework.ai.ollama.management.ModelManagementOptions
- builder() - Static method in class org.springframework.ai.ollama.OllamaChatModel
- builder() - Static method in class org.springframework.ai.ollama.OllamaEmbeddingModel
- builder(String) - Static method in record class org.springframework.ai.ollama.api.OllamaApi.ChatRequest
- builder(OllamaApi.Message.Role) - Static method in record class org.springframework.ai.ollama.api.OllamaApi.Message
- Builder() - Constructor for class org.springframework.ai.ollama.api.OllamaApi.Builder
- Builder() - Constructor for class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- Builder() - Constructor for class org.springframework.ai.ollama.api.OllamaEmbeddingOptions.Builder
- Builder() - Constructor for class org.springframework.ai.ollama.management.ModelManagementOptions.Builder
- Builder(String) - Constructor for class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Builder
- Builder(OllamaApi.Message.Role) - Constructor for class org.springframework.ai.ollama.api.OllamaApi.Message.Builder
C
- call(Prompt) - Method in class org.springframework.ai.ollama.OllamaChatModel
- call(EmbeddingRequest) - Method in class org.springframework.ai.ollama.OllamaEmbeddingModel
- capabilities() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ShowModelResponse
-
Returns the value of the
capabilitiesrecord component. - chat(OllamaApi.ChatRequest) - Method in class org.springframework.ai.ollama.api.OllamaApi
-
Generate the next message in a chat with a provided model.
- ChatRequest(String, List<OllamaApi.Message>, Boolean, Object, String, List<OllamaApi.ChatRequest.Tool>, Map<String, Object>, ThinkOption) - Constructor for record class org.springframework.ai.ollama.api.OllamaApi.ChatRequest
-
Creates an instance of a
ChatRequestrecord class. - ChatResponse(String, Instant, OllamaApi.Message, String, Boolean, Long, Long, Integer, Long, Integer, Long) - Constructor for record class org.springframework.ai.ollama.api.OllamaApi.ChatResponse
-
Creates an instance of a
ChatResponserecord class. - CODELLAMA - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
Code Llama is based on Llama 2 model
- completed() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ProgressResponse
-
Returns the value of the
completedrecord component. - content() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Message
-
Returns the value of the
contentrecord component. - content(String) - Method in class org.springframework.ai.ollama.api.OllamaApi.Message.Builder
- copy() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- copy() - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- copyModel(OllamaApi.CopyModelRequest) - Method in class org.springframework.ai.ollama.api.OllamaApi
-
Copy a model.
- CopyModelRequest(String, String) - Constructor for record class org.springframework.ai.ollama.api.OllamaApi.CopyModelRequest
-
Creates an instance of a
CopyModelRequestrecord class. - createdAt() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatResponse
-
Returns the value of the
createdAtrecord component.
D
- DEFAULT_BASE_URL - Static variable in class org.springframework.ai.ollama.api.common.OllamaApiConstants
- defaultOptions(OllamaChatOptions) - Method in class org.springframework.ai.ollama.OllamaChatModel.Builder
- defaultOptions(OllamaEmbeddingOptions) - Method in class org.springframework.ai.ollama.OllamaEmbeddingModel.Builder
- defaults() - Static method in record class org.springframework.ai.ollama.management.ModelManagementOptions
- deleteModel(String) - Method in class org.springframework.ai.ollama.management.OllamaModelManager
- deleteModel(OllamaApi.DeleteModelRequest) - Method in class org.springframework.ai.ollama.api.OllamaApi
-
Delete a model and its data.
- DeleteModelRequest(String) - Constructor for record class org.springframework.ai.ollama.api.OllamaApi.DeleteModelRequest
-
Creates an instance of a
DeleteModelRequestrecord class. - description() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Tool.Function
-
Returns the value of the
descriptionrecord component. - deserialize(JsonParser, DeserializationContext) - Method in class org.springframework.ai.ollama.api.ThinkOption.ThinkOptionDeserializer
- destination() - Method in record class org.springframework.ai.ollama.api.OllamaApi.CopyModelRequest
-
Returns the value of the
destinationrecord component. - details() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Model
-
Returns the value of the
detailsrecord component. - details() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ShowModelResponse
-
Returns the value of the
detailsrecord component. - Details(String, String, String, List<String>, String, String) - Constructor for record class org.springframework.ai.ollama.api.OllamaApi.Model.Details
-
Creates an instance of a
Detailsrecord class. - digest() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Model
-
Returns the value of the
digestrecord component. - digest() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ProgressResponse
-
Returns the value of the
digestrecord component. - dimensions() - Method in record class org.springframework.ai.ollama.api.OllamaApi.EmbeddingsRequest
-
Returns the value of the
dimensionsrecord component. - dimensions(Integer) - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions.Builder
- DISABLED - Static variable in record class org.springframework.ai.ollama.api.ThinkOption.ThinkBoolean
-
Constant for disabled thinking.
- disableThinking() - Method in class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Builder
-
Disable thinking mode for the model.
- disableThinking() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
-
Disable thinking mode for the model.
- DOLPHIN_PHI - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
The 2.7B uncensored Dolphin model
- done() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatResponse
-
Returns the value of the
donerecord component. - doneReason() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatResponse
-
Returns the value of the
doneReasonrecord component.
E
- embed(Document) - Method in class org.springframework.ai.ollama.OllamaEmbeddingModel
- embed(OllamaApi.EmbeddingsRequest) - Method in class org.springframework.ai.ollama.api.OllamaApi
-
Generate embeddings from a model.
- embeddings() - Method in record class org.springframework.ai.ollama.api.OllamaApi.EmbeddingsResponse
-
Returns the value of the
embeddingsrecord component. - EmbeddingsRequest(String, String) - Constructor for record class org.springframework.ai.ollama.api.OllamaApi.EmbeddingsRequest
-
Shortcut constructor to create a EmbeddingRequest without options.
- EmbeddingsRequest(String, List<String>, String, Map<String, Object>, Boolean, Integer) - Constructor for record class org.springframework.ai.ollama.api.OllamaApi.EmbeddingsRequest
-
Creates an instance of a
EmbeddingsRequestrecord class. - EmbeddingsResponse(String, List<float[]>, Long, Long, Integer) - Constructor for record class org.springframework.ai.ollama.api.OllamaApi.EmbeddingsResponse
-
Creates an instance of a
EmbeddingsResponserecord class. - enabled() - Method in record class org.springframework.ai.ollama.api.ThinkOption.ThinkBoolean
-
Returns the value of the
enabledrecord component. - ENABLED - Static variable in record class org.springframework.ai.ollama.api.ThinkOption.ThinkBoolean
-
Constant for enabled thinking.
- enableThinking() - Method in class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Builder
-
Enable thinking mode for the model.
- enableThinking() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
-
Enable thinking mode for the model.
- equals(Object) - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Tool
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Tool.Function
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.springframework.ai.ollama.api.OllamaApi.CopyModelRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.springframework.ai.ollama.api.OllamaApi.DeleteModelRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.springframework.ai.ollama.api.OllamaApi.EmbeddingsRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.springframework.ai.ollama.api.OllamaApi.EmbeddingsResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.springframework.ai.ollama.api.OllamaApi.ListModelResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.springframework.ai.ollama.api.OllamaApi.Message
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.springframework.ai.ollama.api.OllamaApi.Message.ToolCall
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.springframework.ai.ollama.api.OllamaApi.Message.ToolCallFunction
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.springframework.ai.ollama.api.OllamaApi.Model.Details
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.springframework.ai.ollama.api.OllamaApi.Model
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.springframework.ai.ollama.api.OllamaApi.ProgressResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.springframework.ai.ollama.api.OllamaApi.PullModelRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.springframework.ai.ollama.api.OllamaApi.ShowModelRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.springframework.ai.ollama.api.OllamaApi.ShowModelResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- equals(Object) - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- equals(Object) - Method in record class org.springframework.ai.ollama.api.ThinkOption.ThinkBoolean
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.springframework.ai.ollama.api.ThinkOption.ThinkLevel
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.springframework.ai.ollama.management.ModelManagementOptions
-
Indicates whether some other object is "equal to" this one.
- evalCount() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatResponse
-
Returns the value of the
evalCountrecord component. - evalDuration() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatResponse
-
Returns the value of the
evalDurationrecord component.
F
- f16KV(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- families() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Model.Details
-
Returns the value of the
familiesrecord component. - family() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Model.Details
-
Returns the value of the
familyrecord component. - filterNonSupportedFields(Map<String, Object>) - Static method in class org.springframework.ai.ollama.api.OllamaChatOptions
-
Filter out the non-supported fields from the options.
- filterNonSupportedFields(Map<String, Object>) - Static method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
-
Filter out the non-supported fields from the options.
- format() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatRequest
-
Returns the value of the
formatrecord component. - format() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Model.Details
-
Returns the value of the
formatrecord component. - format(Object) - Method in class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Builder
- format(Object) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- frequencyPenalty(Double) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- fromOptions(OllamaChatOptions) - Static method in class org.springframework.ai.ollama.api.OllamaChatOptions
- fromOptions(OllamaEmbeddingOptions) - Static method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- function() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Tool
-
Returns the value of the
functionrecord component. - function() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Message.ToolCall
-
Returns the value of the
functionrecord component. - Function(String, String, String) - Constructor for record class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Tool.Function
-
Create tool function definition.
- Function(String, String, Map<String, Object>) - Constructor for record class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Tool.Function
-
Creates an instance of a
Functionrecord class. - FUNCTION - Enum constant in enum class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Tool.Type
-
Function tool type.
G
- GEMMA - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
Gemma is a lightweight model with 2 billion and 7 billion
- GEMMA3 - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
The current, most capable model that runs on a single GPU.
- getDefaultOptions() - Method in class org.springframework.ai.ollama.OllamaChatModel
- getDimensions() - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- getEvalDuration() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatResponse
- getF16KV() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getFormat() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getFrequencyPenalty() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getInternalToolExecutionEnabled() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getKeepAlive() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getKeepAlive() - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- getLoadDuration() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatResponse
- getLogitsAll() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getLowVRAM() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getLowVRAM() - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- getMainGPU() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getMainGPU() - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- getMaxTokens() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getMinP() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getMirostat() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getMirostatEta() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getMirostatTau() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getModel() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getModel() - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- getName() - Method in enum class org.springframework.ai.ollama.api.OllamaModel
- getNumBatch() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getNumBatch() - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- getNumCtx() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getNumGPU() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getNumGPU() - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- getNumKeep() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getNumPredict() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getNumThread() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getNumThread() - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- getOutputSchema() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getPenalizeNewline() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getPresencePenalty() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getPromptEvalDuration() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatResponse
- getRepeatLastN() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getRepeatPenalty() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getSeed() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getStop() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getStopSequences() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getTemperature() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getTfsZ() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getThinkOption() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getToolCallbacks() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getToolContext() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getToolNames() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getTopK() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getTopP() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getTotalDuration() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatResponse
- getTruncate() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getTruncate() - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- getTypicalP() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getUseMLock() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getUseMLock() - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- getUseMMap() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getUseMMap() - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- getUseNUMA() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getUseNUMA() - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- getVocabOnly() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- getVocabOnly() - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
H
- hashCode() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Tool.Function
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Tool
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.springframework.ai.ollama.api.OllamaApi.CopyModelRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.springframework.ai.ollama.api.OllamaApi.DeleteModelRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.springframework.ai.ollama.api.OllamaApi.EmbeddingsRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.springframework.ai.ollama.api.OllamaApi.EmbeddingsResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ListModelResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Message
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Message.ToolCall
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Message.ToolCallFunction
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Model.Details
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Model
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ProgressResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.springframework.ai.ollama.api.OllamaApi.PullModelRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ShowModelRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ShowModelResponse
-
Returns a hash code value for this object.
- hashCode() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- hashCode() - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- hashCode() - Method in record class org.springframework.ai.ollama.api.ThinkOption.ThinkBoolean
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.springframework.ai.ollama.api.ThinkOption.ThinkLevel
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.springframework.ai.ollama.management.ModelManagementOptions
-
Returns a hash code value for this object.
- HIGH - Static variable in record class org.springframework.ai.ollama.api.ThinkOption.ThinkLevel
-
High thinking level for GPT-OSS.
I
- id() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Message.ToolCall
-
Returns the value of the
idrecord component. - id() - Method in enum class org.springframework.ai.ollama.api.OllamaModel
- images() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Message
-
Returns the value of the
imagesrecord component. - images(List<String>) - Method in class org.springframework.ai.ollama.api.OllamaApi.Message.Builder
- index() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Message.ToolCallFunction
-
Returns the value of the
indexrecord component. - input() - Method in record class org.springframework.ai.ollama.api.OllamaApi.EmbeddingsRequest
-
Returns the value of the
inputrecord component. - insecure() - Method in record class org.springframework.ai.ollama.api.OllamaApi.PullModelRequest
-
Returns the value of the
insecurerecord component. - internalToolExecutionEnabled(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- isModelAvailable(String) - Method in class org.springframework.ai.ollama.management.OllamaModelManager
- isStreamingDone(OllamaApi.ChatResponse) - Static method in class org.springframework.ai.ollama.api.OllamaApiHelper
- isStreamingToolCall(OllamaApi.ChatResponse) - Static method in class org.springframework.ai.ollama.api.OllamaApiHelper
K
- keepAlive() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatRequest
-
Returns the value of the
keepAliverecord component. - keepAlive() - Method in record class org.springframework.ai.ollama.api.OllamaApi.EmbeddingsRequest
-
Returns the value of the
keepAliverecord component. - keepAlive(String) - Method in class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Builder
- keepAlive(String) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- keepAlive(String) - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions.Builder
L
- level() - Method in record class org.springframework.ai.ollama.api.ThinkOption.ThinkLevel
-
Returns the value of the
levelrecord component. - license() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ShowModelResponse
-
Returns the value of the
licenserecord component. - ListModelResponse(List<OllamaApi.Model>) - Constructor for record class org.springframework.ai.ollama.api.OllamaApi.ListModelResponse
-
Creates an instance of a
ListModelResponserecord class. - listModels() - Method in class org.springframework.ai.ollama.api.OllamaApi
-
List models that are available locally on the machine where Ollama is running.
- LLAMA2 - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
Llama 2 is a collection of language models ranging from 7B to 70B parameters.
- LLAMA2_UNCENSORED - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
Uncensored Llama 2 model
- LLAMA3 - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
Llama 3 is a collection of language models ranging from 8B and 70B parameters.
- LLAMA3_1 - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
The 8B language model from Meta.
- LLAMA3_2 - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
The Llama 3.2 3B language model from Meta.
- LLAMA3_2_1B - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
The Llama 3.2 1B language model from Meta.
- LLAMA3_2_3B - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
The Llama 3.2 3B language model from Meta.
- LLAMA3_2_VISION_11b - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
The Llama 3.2 Vision 11B language model from Meta.
- LLAMA3_2_VISION_90b - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
The Llama 3.2 Vision 90B language model from Meta.
- LLAVA - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
Llava is a Large Language and Vision Assistant model
- loadDuration() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatResponse
-
Returns the value of the
loadDurationrecord component. - loadDuration() - Method in record class org.springframework.ai.ollama.api.OllamaApi.EmbeddingsResponse
-
Returns the value of the
loadDurationrecord component. - logitsAll(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- LOW - Static variable in record class org.springframework.ai.ollama.api.ThinkOption.ThinkLevel
-
Low thinking level for GPT-OSS.
- lowVRAM(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- lowVRAM(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions.Builder
M
- mainGPU(Integer) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- mainGPU(Integer) - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions.Builder
- maxRetries() - Method in record class org.springframework.ai.ollama.management.ModelManagementOptions
-
Returns the value of the
maxRetriesrecord component. - maxRetries(Integer) - Method in class org.springframework.ai.ollama.management.ModelManagementOptions.Builder
- MEDIUM - Static variable in record class org.springframework.ai.ollama.api.ThinkOption.ThinkLevel
-
Medium thinking level for GPT-OSS.
- merge(OllamaApi.ChatResponse, OllamaApi.ChatResponse) - Static method in class org.springframework.ai.ollama.api.OllamaApiHelper
- message() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatResponse
-
Returns the value of the
messagerecord component. - Message(OllamaApi.Message.Role, String, List<String>, List<OllamaApi.Message.ToolCall>, String, String) - Constructor for record class org.springframework.ai.ollama.api.OllamaApi.Message
-
Creates an instance of a
Messagerecord class. - messages() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatRequest
-
Returns the value of the
messagesrecord component. - messages() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ShowModelResponse
-
Returns the value of the
messagesrecord component. - messages(List<OllamaApi.Message>) - Method in class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Builder
- minP(Double) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- mirostat(Integer) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- mirostatEta(Float) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- mirostatTau(Float) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- MISTRAL - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
The 7B parameters model
- MISTRAL_NEMO - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
A 12B model with 128k context length, built by Mistral AI in collaboration with NVIDIA.
- model() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatRequest
-
Returns the value of the
modelrecord component. - model() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatResponse
-
Returns the value of the
modelrecord component. - model() - Method in record class org.springframework.ai.ollama.api.OllamaApi.DeleteModelRequest
-
Returns the value of the
modelrecord component. - model() - Method in record class org.springframework.ai.ollama.api.OllamaApi.EmbeddingsRequest
-
Returns the value of the
modelrecord component. - model() - Method in record class org.springframework.ai.ollama.api.OllamaApi.EmbeddingsResponse
-
Returns the value of the
modelrecord component. - model() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Model
-
Returns the value of the
modelrecord component. - model() - Method in record class org.springframework.ai.ollama.api.OllamaApi.PullModelRequest
-
Returns the value of the
modelrecord component. - model() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ShowModelRequest
-
Returns the value of the
modelrecord component. - model(String) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- model(String) - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions.Builder
- model(OllamaModel) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- model(OllamaModel) - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions.Builder
- Model(String, String, Instant, Long, String, OllamaApi.Model.Details) - Constructor for record class org.springframework.ai.ollama.api.OllamaApi.Model
-
Creates an instance of a
Modelrecord class. - modelfile() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ShowModelResponse
-
Returns the value of the
modelfilerecord component. - modelInfo() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ShowModelResponse
-
Returns the value of the
modelInforecord component. - modelManagementOptions(ModelManagementOptions) - Method in class org.springframework.ai.ollama.OllamaChatModel.Builder
- modelManagementOptions(ModelManagementOptions) - Method in class org.springframework.ai.ollama.OllamaEmbeddingModel.Builder
- ModelManagementOptions - Record Class in org.springframework.ai.ollama.management
-
Options for managing models in Ollama.
- ModelManagementOptions(PullModelStrategy, List<String>, Duration, Integer) - Constructor for record class org.springframework.ai.ollama.management.ModelManagementOptions
-
Creates an instance of a
ModelManagementOptionsrecord class. - ModelManagementOptions.Builder - Class in org.springframework.ai.ollama.management
- models() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ListModelResponse
-
Returns the value of the
modelsrecord component. - modifiedAt() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Model
-
Returns the value of the
modifiedAtrecord component. - modifiedAt() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ShowModelResponse
-
Returns the value of the
modifiedAtrecord component. - MOONDREAM - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
A small vision language model designed to run efficiently on edge devices.
- MXBAI_EMBED_LARGE - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
State-of-the-art large embedding model from mixedbread.ai
N
- name() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Tool.Function
-
Returns the value of the
namerecord component. - name() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Message.ToolCallFunction
-
Returns the value of the
namerecord component. - name() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Model
-
Returns the value of the
namerecord component. - NEURAL_CHAT - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
A fine-tuned Mistral model
- NEVER - Enum constant in enum class org.springframework.ai.ollama.management.PullModelStrategy
-
Never pull the model.
- NOMIC_EMBED_TEXT - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
A high-performing open embedding model with a large token context window.
- numBatch(Integer) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- numBatch(Integer) - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions.Builder
- numCtx(Integer) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- numGPU(Integer) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- numGPU(Integer) - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions.Builder
- numKeep(Integer) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- numPredict(Integer) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- numThread(Integer) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- numThread(Integer) - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions.Builder
O
- observationRegistry(ObservationRegistry) - Method in class org.springframework.ai.ollama.OllamaChatModel.Builder
- observationRegistry(ObservationRegistry) - Method in class org.springframework.ai.ollama.OllamaEmbeddingModel.Builder
- ollamaApi(OllamaApi) - Method in class org.springframework.ai.ollama.OllamaChatModel.Builder
- ollamaApi(OllamaApi) - Method in class org.springframework.ai.ollama.OllamaEmbeddingModel.Builder
- OllamaApi - Class in org.springframework.ai.ollama.api
-
Java Client for the Ollama API.
- OllamaApi.Builder - Class in org.springframework.ai.ollama.api
- OllamaApi.ChatRequest - Record Class in org.springframework.ai.ollama.api
-
Chat request object.
- OllamaApi.ChatRequest.Builder - Class in org.springframework.ai.ollama.api
- OllamaApi.ChatRequest.Tool - Record Class in org.springframework.ai.ollama.api
-
Represents a tool the model may call.
- OllamaApi.ChatRequest.Tool.Function - Record Class in org.springframework.ai.ollama.api
-
Function definition.
- OllamaApi.ChatRequest.Tool.Type - Enum Class in org.springframework.ai.ollama.api
-
Create a tool of type 'function' and the given function definition.
- OllamaApi.ChatResponse - Record Class in org.springframework.ai.ollama.api
-
Ollama chat response object.
- OllamaApi.CopyModelRequest - Record Class in org.springframework.ai.ollama.api
- OllamaApi.DeleteModelRequest - Record Class in org.springframework.ai.ollama.api
- OllamaApi.EmbeddingsRequest - Record Class in org.springframework.ai.ollama.api
-
Generate embeddings from a model.
- OllamaApi.EmbeddingsResponse - Record Class in org.springframework.ai.ollama.api
-
The response object returned from the /embedding endpoint.
- OllamaApi.ListModelResponse - Record Class in org.springframework.ai.ollama.api
- OllamaApi.Message - Record Class in org.springframework.ai.ollama.api
-
Chat message object.
- OllamaApi.Message.Builder - Class in org.springframework.ai.ollama.api
- OllamaApi.Message.Role - Enum Class in org.springframework.ai.ollama.api
-
The role of the message in the conversation.
- OllamaApi.Message.ToolCall - Record Class in org.springframework.ai.ollama.api
-
The relevant tool call.
- OllamaApi.Message.ToolCallFunction - Record Class in org.springframework.ai.ollama.api
-
The function definition.
- OllamaApi.Model - Record Class in org.springframework.ai.ollama.api
- OllamaApi.Model.Details - Record Class in org.springframework.ai.ollama.api
- OllamaApi.ProgressResponse - Record Class in org.springframework.ai.ollama.api
- OllamaApi.PullModelRequest - Record Class in org.springframework.ai.ollama.api
- OllamaApi.ShowModelRequest - Record Class in org.springframework.ai.ollama.api
- OllamaApi.ShowModelResponse - Record Class in org.springframework.ai.ollama.api
- OllamaApiConstants - Class in org.springframework.ai.ollama.api.common
-
Common value constants for Ollama api.
- OllamaApiHelper - Class in org.springframework.ai.ollama.api
- OllamaChatModel - Class in org.springframework.ai.ollama
-
ChatModelimplementation for Ollama. - OllamaChatModel(OllamaApi, OllamaChatOptions, ToolCallingManager, ObservationRegistry, ModelManagementOptions) - Constructor for class org.springframework.ai.ollama.OllamaChatModel
- OllamaChatModel(OllamaApi, OllamaChatOptions, ToolCallingManager, ObservationRegistry, ModelManagementOptions, ToolExecutionEligibilityPredicate, RetryTemplate) - Constructor for class org.springframework.ai.ollama.OllamaChatModel
- OllamaChatModel.Builder - Class in org.springframework.ai.ollama
- OllamaChatOptions - Class in org.springframework.ai.ollama.api
-
Helper class for creating strongly-typed Ollama options.
- OllamaChatOptions() - Constructor for class org.springframework.ai.ollama.api.OllamaChatOptions
- OllamaChatOptions.Builder - Class in org.springframework.ai.ollama.api
- OllamaEmbeddingModel - Class in org.springframework.ai.ollama
-
EmbeddingModelimplementation for Ollama. - OllamaEmbeddingModel(OllamaApi, OllamaEmbeddingOptions, ObservationRegistry, ModelManagementOptions) - Constructor for class org.springframework.ai.ollama.OllamaEmbeddingModel
- OllamaEmbeddingModel.Builder - Class in org.springframework.ai.ollama
- OllamaEmbeddingOptions - Class in org.springframework.ai.ollama.api
-
Helper class for creating strongly-typed Ollama options.
- OllamaEmbeddingOptions() - Constructor for class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- OllamaEmbeddingOptions.Builder - Class in org.springframework.ai.ollama.api
- OllamaModel - Enum Class in org.springframework.ai.ollama.api
-
Helper class for common Ollama models.
- OllamaModelManager - Class in org.springframework.ai.ollama.management
-
Manage the lifecycle of models in Ollama.
- OllamaModelManager(OllamaApi) - Constructor for class org.springframework.ai.ollama.management.OllamaModelManager
- OllamaModelManager(OllamaApi, ModelManagementOptions) - Constructor for class org.springframework.ai.ollama.management.OllamaModelManager
- OllamaRuntimeHints - Class in org.springframework.ai.ollama.aot
-
The OllamaRuntimeHints class is responsible for registering runtime hints for Ollama AI API classes.
- OllamaRuntimeHints() - Constructor for class org.springframework.ai.ollama.aot.OllamaRuntimeHints
- options() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatRequest
-
Returns the value of the
optionsrecord component. - options() - Method in record class org.springframework.ai.ollama.api.OllamaApi.EmbeddingsRequest
-
Returns the value of the
optionsrecord component. - options() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ShowModelRequest
-
Returns the value of the
optionsrecord component. - options(Map<String, Object>) - Method in class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Builder
- options(OllamaChatOptions) - Method in class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Builder
- ORCA_MINI - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
Orca Mini is based on Llama and Llama 2 ranging from 3 billion parameters to 70 billion
- org.springframework.ai.ollama - package org.springframework.ai.ollama
- org.springframework.ai.ollama.aot - package org.springframework.ai.ollama.aot
- org.springframework.ai.ollama.api - package org.springframework.ai.ollama.api
- org.springframework.ai.ollama.api.common - package org.springframework.ai.ollama.api.common
- org.springframework.ai.ollama.management - package org.springframework.ai.ollama.management
-
Management support for Ollama.
- outputSchema(String) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
P
- parameters() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Tool.Function
-
Returns the value of the
parametersrecord component. - parameters() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ShowModelResponse
-
Returns the value of the
parametersrecord component. - parameterSize() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Model.Details
-
Returns the value of the
parameterSizerecord component. - parentModel() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Model.Details
-
Returns the value of the
parentModelrecord component. - password() - Method in record class org.springframework.ai.ollama.api.OllamaApi.PullModelRequest
-
Returns the value of the
passwordrecord component. - penalizeNewline(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- PHI - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
The Phi-2 2.7B language model
- PHI3 - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
The Phi-3 3.8B language model
- presencePenalty(Double) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- ProgressResponse(String, String, Long, Long) - Constructor for record class org.springframework.ai.ollama.api.OllamaApi.ProgressResponse
-
Creates an instance of a
ProgressResponserecord class. - projectorInfo() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ShowModelResponse
-
Returns the value of the
projectorInforecord component. - promptEvalCount() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatResponse
-
Returns the value of the
promptEvalCountrecord component. - promptEvalCount() - Method in record class org.springframework.ai.ollama.api.OllamaApi.EmbeddingsResponse
-
Returns the value of the
promptEvalCountrecord component. - promptEvalDuration() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatResponse
-
Returns the value of the
promptEvalDurationrecord component. - PROVIDER_NAME - Static variable in class org.springframework.ai.ollama.api.common.OllamaApiConstants
- pullModel(String) - Method in class org.springframework.ai.ollama.management.OllamaModelManager
- pullModel(String, PullModelStrategy) - Method in class org.springframework.ai.ollama.management.OllamaModelManager
- pullModel(OllamaApi.PullModelRequest) - Method in class org.springframework.ai.ollama.api.OllamaApi
-
Download a model from the Ollama library.
- PullModelRequest(String) - Constructor for record class org.springframework.ai.ollama.api.OllamaApi.PullModelRequest
- PullModelRequest(String, boolean, String, String, boolean) - Constructor for record class org.springframework.ai.ollama.api.OllamaApi.PullModelRequest
-
Creates an instance of a
PullModelRequestrecord class. - pullModelStrategy() - Method in record class org.springframework.ai.ollama.management.ModelManagementOptions
-
Returns the value of the
pullModelStrategyrecord component. - pullModelStrategy(PullModelStrategy) - Method in class org.springframework.ai.ollama.management.ModelManagementOptions.Builder
- PullModelStrategy - Enum Class in org.springframework.ai.ollama.management
-
Strategy for pulling Ollama models.
Q
- quantizationLevel() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Model.Details
-
Returns the value of the
quantizationLevelrecord component. - QWEN_2_5_3B - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
- QWEN_2_5_7B - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
Qwen 2.5
- QWEN_3_06B - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
Qwen3 0.6b
- QWEN_3_1_7_B - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
Qwen3 1.7b
- QWEN2_5_VL - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
Flagship vision-language model of Qwen and also a significant leap from the previous Qwen2-VL.
- QWEN3_4B - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
Qwen3 4B
- QWEN3_4B_THINKING - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
Qwen3 4B with thinking support.
- QWEN3_7B - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
Qwen3 is the latest generation of large language models in Qwen series, offering a comprehensive suite of dense and mixture-of-experts (MoE) models.
- QWEN3_EMBED_8B - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
A multilingual text embedding model with 8B parameters.
- QWQ - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
QwQ is the reasoning model of the Qwen series.
R
- registerHints(RuntimeHints, ClassLoader) - Method in class org.springframework.ai.ollama.aot.OllamaRuntimeHints
- repeatLastN(Integer) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- repeatPenalty(Double) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- REQUEST_BODY_NULL_ERROR - Static variable in class org.springframework.ai.ollama.api.OllamaApi
- responseErrorHandler(ResponseErrorHandler) - Method in class org.springframework.ai.ollama.api.OllamaApi.Builder
- restClientBuilder(RestClient.Builder) - Method in class org.springframework.ai.ollama.api.OllamaApi.Builder
- retryTemplate(RetryTemplate) - Method in class org.springframework.ai.ollama.OllamaChatModel.Builder
- role() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Message
-
Returns the value of the
rolerecord component.
S
- seed(Integer) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- serialize(ThinkOption, JsonGenerator, SerializerProvider) - Method in class org.springframework.ai.ollama.api.ThinkOption.ThinkOptionSerializer
- setDimensions(Integer) - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- setF16KV(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setFormat(Object) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setFrequencyPenalty(Double) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setInternalToolExecutionEnabled(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setKeepAlive(String) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setKeepAlive(String) - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- setLogitsAll(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setLowVRAM(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setLowVRAM(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- setMainGPU(Integer) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setMainGPU(Integer) - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- setMaxTokens(Integer) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setMinP(Double) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setMirostat(Integer) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setMirostatEta(Float) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setMirostatTau(Float) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setModel(String) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setModel(String) - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- setNumBatch(Integer) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setNumBatch(Integer) - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- setNumCtx(Integer) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setNumGPU(Integer) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setNumGPU(Integer) - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- setNumKeep(Integer) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setNumPredict(Integer) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setNumThread(Integer) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setNumThread(Integer) - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- setObservationConvention(ChatModelObservationConvention) - Method in class org.springframework.ai.ollama.OllamaChatModel
-
Use the provided convention for reporting observation data
- setObservationConvention(EmbeddingModelObservationConvention) - Method in class org.springframework.ai.ollama.OllamaEmbeddingModel
-
Use the provided convention for reporting observation data
- setOutputSchema(String) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setPenalizeNewline(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setPresencePenalty(Double) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setRepeatLastN(Integer) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setRepeatPenalty(Double) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setSeed(Integer) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setStop(List<String>) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setStopSequences(List<String>) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setTemperature(Double) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setTfsZ(Float) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setThinkOption(ThinkOption) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setToolCallbacks(List<ToolCallback>) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setToolContext(Map<String, Object>) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setToolNames(Set<String>) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setTopK(Integer) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setTopP(Double) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setTruncate(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setTruncate(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- setTypicalP(Float) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setUseMLock(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setUseMLock(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- setUseMMap(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setUseMMap(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- setUseNUMA(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setUseNUMA(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- setVocabOnly(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
- setVocabOnly(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
- showModel(OllamaApi.ShowModelRequest) - Method in class org.springframework.ai.ollama.api.OllamaApi
-
Show information about a model available locally on the machine where Ollama is running.
- ShowModelRequest(String) - Constructor for record class org.springframework.ai.ollama.api.OllamaApi.ShowModelRequest
- ShowModelRequest(String, String, Boolean, Map<String, Object>) - Constructor for record class org.springframework.ai.ollama.api.OllamaApi.ShowModelRequest
-
Creates an instance of a
ShowModelRequestrecord class. - ShowModelResponse(String, String, String, String, String, OllamaApi.Model.Details, List<OllamaApi.Message>, Map<String, Object>, Map<String, Object>, List<String>, Instant) - Constructor for record class org.springframework.ai.ollama.api.OllamaApi.ShowModelResponse
-
Creates an instance of a
ShowModelResponserecord class. - size() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Model
-
Returns the value of the
sizerecord component. - source() - Method in record class org.springframework.ai.ollama.api.OllamaApi.CopyModelRequest
-
Returns the value of the
sourcerecord component. - STARLING_LM - Enum constant in enum class org.springframework.ai.ollama.api.OllamaModel
-
Starling-7B model
- status() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ProgressResponse
-
Returns the value of the
statusrecord component. - stop(List<String>) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- stream() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatRequest
-
Returns the value of the
streamrecord component. - stream() - Method in record class org.springframework.ai.ollama.api.OllamaApi.PullModelRequest
-
Returns the value of the
streamrecord component. - stream(boolean) - Method in class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Builder
- stream(Prompt) - Method in class org.springframework.ai.ollama.OllamaChatModel
- streamingChat(OllamaApi.ChatRequest) - Method in class org.springframework.ai.ollama.api.OllamaApi
-
Streaming response for the chat completion request.
- system() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ShowModelRequest
-
Returns the value of the
systemrecord component. - system() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ShowModelResponse
-
Returns the value of the
systemrecord component. - SYSTEM - Enum constant in enum class org.springframework.ai.ollama.api.OllamaApi.Message.Role
-
System message type used as instructions to the model.
T
- temperature(Double) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- template() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ShowModelResponse
-
Returns the value of the
templaterecord component. - tfsZ(Float) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- think() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatRequest
-
Returns the value of the
thinkrecord component. - think(ThinkOption) - Method in class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Builder
- ThinkBoolean(boolean) - Constructor for record class org.springframework.ai.ollama.api.ThinkOption.ThinkBoolean
-
Creates an instance of a
ThinkBooleanrecord class. - thinkHigh() - Method in class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Builder
-
Set thinking level to "high" (for GPT-OSS model).
- thinkHigh() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
-
Set thinking level to "high" (for GPT-OSS model).
- thinking() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Message
-
Returns the value of the
thinkingrecord component. - thinking(String) - Method in class org.springframework.ai.ollama.api.OllamaApi.Message.Builder
- ThinkLevel(String) - Constructor for record class org.springframework.ai.ollama.api.ThinkOption.ThinkLevel
-
models/spring-ai-ollama/src/main/java/org/springframework/ai/ollama/api/ThinkOption.java Creates a new ThinkLevel with validation.
- thinkLow() - Method in class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Builder
-
Set thinking level to "low" (for GPT-OSS model).
- thinkLow() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
-
Set thinking level to "low" (for GPT-OSS model).
- thinkMedium() - Method in class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Builder
-
Set thinking level to "medium" (for GPT-OSS model).
- thinkMedium() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
-
Set thinking level to "medium" (for GPT-OSS model).
- thinkOption(ThinkOption) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
-
Set the think option explicitly.
- ThinkOption - Interface in org.springframework.ai.ollama.api
-
Represents the thinking option for Ollama models.
- ThinkOption.ThinkBoolean - Record Class in org.springframework.ai.ollama.api
-
Boolean-style think option for models that support simple enable/disable.
- ThinkOption.ThinkLevel - Record Class in org.springframework.ai.ollama.api
-
String-level think option for the GPT-OSS model which requires explicit levels.
- ThinkOption.ThinkOptionDeserializer - Class in org.springframework.ai.ollama.api
-
Deserializer that reads boolean or string values into ThinkOption instances.
- ThinkOption.ThinkOptionSerializer - Class in org.springframework.ai.ollama.api
-
Serializer that writes ThinkOption as raw boolean or string values.
- ThinkOptionDeserializer() - Constructor for class org.springframework.ai.ollama.api.ThinkOption.ThinkOptionDeserializer
- ThinkOptionSerializer() - Constructor for class org.springframework.ai.ollama.api.ThinkOption.ThinkOptionSerializer
- timeout() - Method in record class org.springframework.ai.ollama.management.ModelManagementOptions
-
Returns the value of the
timeoutrecord component. - timeout(Duration) - Method in class org.springframework.ai.ollama.management.ModelManagementOptions.Builder
- toJsonValue() - Method in record class org.springframework.ai.ollama.api.ThinkOption.ThinkBoolean
- toJsonValue() - Method in record class org.springframework.ai.ollama.api.ThinkOption.ThinkLevel
- toJsonValue() - Method in interface org.springframework.ai.ollama.api.ThinkOption
-
Converts this think option to its JSON representation.
- toMap() - Method in class org.springframework.ai.ollama.api.OllamaChatOptions
-
Convert the
OllamaChatOptionsobject to aMapof key/value pairs. - toMap() - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions
-
Convert the
OllamaEmbeddingOptionsobject to aMapof key/value pairs. - Tool(OllamaApi.ChatRequest.Tool.Function) - Constructor for record class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Tool
-
Create a tool of type 'function' and the given function definition.
- Tool(OllamaApi.ChatRequest.Tool.Type, OllamaApi.ChatRequest.Tool.Function) - Constructor for record class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Tool
-
Creates an instance of a
Toolrecord class. - TOOL - Enum constant in enum class org.springframework.ai.ollama.api.OllamaApi.Message.Role
-
Tool message.
- ToolCall(String, OllamaApi.Message.ToolCallFunction) - Constructor for record class org.springframework.ai.ollama.api.OllamaApi.Message.ToolCall
-
Creates an instance of a
ToolCallrecord class. - toolCallbacks(List<ToolCallback>) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- toolCallbacks(ToolCallback...) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- ToolCallFunction(String, Map<String, Object>) - Constructor for record class org.springframework.ai.ollama.api.OllamaApi.Message.ToolCallFunction
- ToolCallFunction(String, Map<String, Object>, Integer) - Constructor for record class org.springframework.ai.ollama.api.OllamaApi.Message.ToolCallFunction
-
Creates an instance of a
ToolCallFunctionrecord class. - toolCallingManager(ToolCallingManager) - Method in class org.springframework.ai.ollama.OllamaChatModel.Builder
- toolCalls() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Message
-
Returns the value of the
toolCallsrecord component. - toolCalls(List<OllamaApi.Message.ToolCall>) - Method in class org.springframework.ai.ollama.api.OllamaApi.Message.Builder
- toolContext(Map<String, Object>) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- toolExecutionEligibilityPredicate(ToolExecutionEligibilityPredicate) - Method in class org.springframework.ai.ollama.OllamaChatModel.Builder
- toolName() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Message
-
Returns the value of the
toolNamerecord component. - toolName(String) - Method in class org.springframework.ai.ollama.api.OllamaApi.Message.Builder
- toolNames(String...) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- toolNames(Set<String>) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- tools() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatRequest
-
Returns the value of the
toolsrecord component. - tools(List<OllamaApi.ChatRequest.Tool>) - Method in class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Builder
- topK(Integer) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- topP(Double) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- toString() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Tool.Function
-
Returns a string representation of this record class.
- toString() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Tool
-
Returns a string representation of this record class.
- toString() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatRequest
-
Returns a string representation of this record class.
- toString() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatResponse
-
Returns a string representation of this record class.
- toString() - Method in record class org.springframework.ai.ollama.api.OllamaApi.CopyModelRequest
-
Returns a string representation of this record class.
- toString() - Method in record class org.springframework.ai.ollama.api.OllamaApi.DeleteModelRequest
-
Returns a string representation of this record class.
- toString() - Method in record class org.springframework.ai.ollama.api.OllamaApi.EmbeddingsRequest
-
Returns a string representation of this record class.
- toString() - Method in record class org.springframework.ai.ollama.api.OllamaApi.EmbeddingsResponse
-
Returns a string representation of this record class.
- toString() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ListModelResponse
-
Returns a string representation of this record class.
- toString() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Message.ToolCall
-
Returns a string representation of this record class.
- toString() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Message.ToolCallFunction
-
Returns a string representation of this record class.
- toString() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Message
-
Returns a string representation of this record class.
- toString() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Model.Details
-
Returns a string representation of this record class.
- toString() - Method in record class org.springframework.ai.ollama.api.OllamaApi.Model
-
Returns a string representation of this record class.
- toString() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ProgressResponse
-
Returns a string representation of this record class.
- toString() - Method in record class org.springframework.ai.ollama.api.OllamaApi.PullModelRequest
-
Returns a string representation of this record class.
- toString() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ShowModelRequest
-
Returns a string representation of this record class.
- toString() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ShowModelResponse
-
Returns a string representation of this record class.
- toString() - Method in record class org.springframework.ai.ollama.api.ThinkOption.ThinkBoolean
-
Returns a string representation of this record class.
- toString() - Method in record class org.springframework.ai.ollama.api.ThinkOption.ThinkLevel
-
Returns a string representation of this record class.
- toString() - Method in record class org.springframework.ai.ollama.management.ModelManagementOptions
-
Returns a string representation of this record class.
- total() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ProgressResponse
-
Returns the value of the
totalrecord component. - totalDuration() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatResponse
-
Returns the value of the
totalDurationrecord component. - totalDuration() - Method in record class org.springframework.ai.ollama.api.OllamaApi.EmbeddingsResponse
-
Returns the value of the
totalDurationrecord component. - truncate() - Method in record class org.springframework.ai.ollama.api.OllamaApi.EmbeddingsRequest
-
Returns the value of the
truncaterecord component. - truncate(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- truncate(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions.Builder
- type() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Tool
-
Returns the value of the
typerecord component. - typicalP(Float) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
U
- useMLock(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- useMLock(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions.Builder
- useMMap(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- useMMap(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions.Builder
- useNUMA(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- useNUMA(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions.Builder
- USER - Enum constant in enum class org.springframework.ai.ollama.api.OllamaApi.Message.Role
-
User message type.
- username() - Method in record class org.springframework.ai.ollama.api.OllamaApi.PullModelRequest
-
Returns the value of the
usernamerecord component.
V
- valueOf(String) - Static method in enum class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Tool.Type
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.springframework.ai.ollama.api.OllamaApi.Message.Role
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.springframework.ai.ollama.api.OllamaModel
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.springframework.ai.ollama.management.PullModelStrategy
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.springframework.ai.ollama.api.OllamaApi.ChatRequest.Tool.Type
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.springframework.ai.ollama.api.OllamaApi.Message.Role
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.springframework.ai.ollama.api.OllamaModel
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.springframework.ai.ollama.management.PullModelStrategy
-
Returns an array containing the constants of this enum class, in the order they are declared.
- verbose() - Method in record class org.springframework.ai.ollama.api.OllamaApi.ShowModelRequest
-
Returns the value of the
verboserecord component. - vocabOnly(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaChatOptions.Builder
- vocabOnly(Boolean) - Method in class org.springframework.ai.ollama.api.OllamaEmbeddingOptions.Builder
W
- webClientBuilder(WebClient.Builder) - Method in class org.springframework.ai.ollama.api.OllamaApi.Builder
- WHEN_MISSING - Enum constant in enum class org.springframework.ai.ollama.management.PullModelStrategy
-
Only pull the model if it's not already available.
All Classes and Interfaces|All Packages|Constant Field Values