Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- accept(String) - Method in class io.github.amithkoujalgi.ollama4j.core.impl.ConsoleOutputStreamHandler
- accept(String) - Method in interface io.github.amithkoujalgi.ollama4j.core.OllamaStreamHandler
- add(String) - Method in class io.github.amithkoujalgi.ollama4j.core.utils.PromptBuilder
-
Appends the specified text to the prompt.
- addLine(String) - Method in class io.github.amithkoujalgi.ollama4j.core.utils.PromptBuilder
-
Appends the specified text followed by a newline character to the prompt.
- addSeparator() - Method in class io.github.amithkoujalgi.ollama4j.core.utils.PromptBuilder
-
Appends a separator line to the prompt.
- ALFRED - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- ALL_MINILM - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- ASSISTANT - Enum constant in enum io.github.amithkoujalgi.ollama4j.core.models.chat.OllamaChatMessageRole
B
- BAKLLAVA - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- BasicAuth - Class in io.github.amithkoujalgi.ollama4j.core.models
- BasicAuth() - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.BasicAuth
- BooleanToJsonFormatFlagSerializer - Class in io.github.amithkoujalgi.ollama4j.core.utils
- BooleanToJsonFormatFlagSerializer() - Constructor for class io.github.amithkoujalgi.ollama4j.core.utils.BooleanToJsonFormatFlagSerializer
- build() - Method in class io.github.amithkoujalgi.ollama4j.core.models.chat.OllamaChatRequestBuilder
- build() - Method in class io.github.amithkoujalgi.ollama4j.core.models.embeddings.OllamaEmbeddingsRequestBuilder
- build() - Method in class io.github.amithkoujalgi.ollama4j.core.models.generate.OllamaGenerateRequestBuilder
- build() - Method in class io.github.amithkoujalgi.ollama4j.core.utils.OptionsBuilder
-
Builds the options map.
- build() - Method in class io.github.amithkoujalgi.ollama4j.core.utils.PromptBuilder
-
Builds and returns the final prompt as a string.
C
- call(OllamaRequestBody, OllamaStreamHandler) - Method in class io.github.amithkoujalgi.ollama4j.core.models.request.OllamaChatEndpointCaller
- call(OllamaRequestBody, OllamaStreamHandler) - Method in class io.github.amithkoujalgi.ollama4j.core.models.request.OllamaGenerateEndpointCaller
- callSync(OllamaRequestBody) - Method in class io.github.amithkoujalgi.ollama4j.core.models.request.OllamaEndpointCaller
-
Calls the api server on the given host and endpoint suffix asynchronously, aka waiting for the response.
- chat(OllamaChatRequestModel) - Method in class io.github.amithkoujalgi.ollama4j.core.OllamaAPI
-
Ask a question to a model using an
OllamaChatRequestModel
. - chat(OllamaChatRequestModel, OllamaStreamHandler) - Method in class io.github.amithkoujalgi.ollama4j.core.OllamaAPI
-
Ask a question to a model using an
OllamaChatRequestModel
. - chat(String, List<OllamaChatMessage>) - Method in class io.github.amithkoujalgi.ollama4j.core.OllamaAPI
-
Ask a question to a model based on a given message stack (i.e.
- CODEBOOGA - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- CODELLAMA - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- CODEUP - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- ConsoleOutputStreamHandler - Class in io.github.amithkoujalgi.ollama4j.core.impl
- ConsoleOutputStreamHandler() - Constructor for class io.github.amithkoujalgi.ollama4j.core.impl.ConsoleOutputStreamHandler
- createModelWithFilePath(String, String) - Method in class io.github.amithkoujalgi.ollama4j.core.OllamaAPI
-
Create a custom model from a model file.
- createModelWithModelFileContents(String, String) - Method in class io.github.amithkoujalgi.ollama4j.core.OllamaAPI
-
Create a custom model from a model file.
- CustomModelFileContentsRequest - Class in io.github.amithkoujalgi.ollama4j.core.models.request
- CustomModelFileContentsRequest() - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.request.CustomModelFileContentsRequest
- CustomModelFilePathRequest - Class in io.github.amithkoujalgi.ollama4j.core.models.request
- CustomModelFilePathRequest() - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.request.CustomModelFilePathRequest
D
- DEEPSEEK_CODER - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- DEEPSEEK_LLM - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- deleteModel(String, boolean) - Method in class io.github.amithkoujalgi.ollama4j.core.OllamaAPI
-
Delete a model from Ollama server.
- DOLPHIN_MISTRAL - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- DOLPHIN_MIXTRAL - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- DOLPHIN_PHI - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- DUCKDB_NSQL - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
E
- equals(Object) - Method in class io.github.amithkoujalgi.ollama4j.core.models.chat.OllamaChatRequestModel
- equals(Object) - Method in class io.github.amithkoujalgi.ollama4j.core.models.generate.OllamaGenerateRequestModel
- EVERYTHINGLM - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
F
- FALCON - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- FileToBase64Serializer - Class in io.github.amithkoujalgi.ollama4j.core.utils
- FileToBase64Serializer() - Constructor for class io.github.amithkoujalgi.ollama4j.core.utils.FileToBase64Serializer
G
- GEMMA - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- generate(String, String, Options) - Method in class io.github.amithkoujalgi.ollama4j.core.OllamaAPI
-
Convenience method to call Ollama API without streaming responses.
- generate(String, String, Options, OllamaStreamHandler) - Method in class io.github.amithkoujalgi.ollama4j.core.OllamaAPI
-
Generate response for a question to a model running on Ollama server.
- generateAsync(String, String) - Method in class io.github.amithkoujalgi.ollama4j.core.OllamaAPI
-
Generate response for a question to a model running on Ollama server and get a callback handle that can be used to check for status and get the response from the model later.
- generateEmbeddings(OllamaEmbeddingsRequestModel) - Method in class io.github.amithkoujalgi.ollama4j.core.OllamaAPI
-
Generate embeddings using a
OllamaEmbeddingsRequestModel
. - generateEmbeddings(String, String) - Method in class io.github.amithkoujalgi.ollama4j.core.OllamaAPI
-
Generate embeddings for a given text from a model
- generateWithImageFiles(String, String, List<File>, Options) - Method in class io.github.amithkoujalgi.ollama4j.core.OllamaAPI
-
Convenience method to call Ollama API without streaming responses.
- generateWithImageFiles(String, String, List<File>, Options, OllamaStreamHandler) - Method in class io.github.amithkoujalgi.ollama4j.core.OllamaAPI
-
With one or more image files, ask a question to a model running on Ollama server.
- generateWithImageURLs(String, String, List<String>, Options) - Method in class io.github.amithkoujalgi.ollama4j.core.OllamaAPI
-
Convenience method to call Ollama API without streaming responses.
- generateWithImageURLs(String, String, List<String>, Options, OllamaStreamHandler) - Method in class io.github.amithkoujalgi.ollama4j.core.OllamaAPI
-
With one or more image URLs, ask a question to a model running on Ollama server.
- getBodyPublisher() - Method in interface io.github.amithkoujalgi.ollama4j.core.utils.OllamaRequestBody
-
Transforms the OllamaRequest Object to a JSON Object via Jackson.
- getChatHistory() - Method in class io.github.amithkoujalgi.ollama4j.core.models.chat.OllamaChatResult
- getEndpointSuffix() - Method in class io.github.amithkoujalgi.ollama4j.core.models.request.OllamaChatEndpointCaller
- getEndpointSuffix() - Method in class io.github.amithkoujalgi.ollama4j.core.models.request.OllamaEndpointCaller
- getEndpointSuffix() - Method in class io.github.amithkoujalgi.ollama4j.core.models.request.OllamaGenerateEndpointCaller
- getInstance(String) - Static method in class io.github.amithkoujalgi.ollama4j.core.models.chat.OllamaChatRequestBuilder
- getInstance(String) - Static method in class io.github.amithkoujalgi.ollama4j.core.models.generate.OllamaGenerateRequestBuilder
- getInstance(String, String) - Static method in class io.github.amithkoujalgi.ollama4j.core.models.embeddings.OllamaEmbeddingsRequestBuilder
- getModelDetails(String) - Method in class io.github.amithkoujalgi.ollama4j.core.OllamaAPI
-
Gets model details from the Ollama server.
- getModelName() - Method in class io.github.amithkoujalgi.ollama4j.core.models.Model
-
Returns the model name without its version
- getModelVersion() - Method in class io.github.amithkoujalgi.ollama4j.core.models.Model
-
Returns the model version without its name
- getObjectMapper() - Static method in class io.github.amithkoujalgi.ollama4j.core.utils.Utils
- getResponse() - Method in class io.github.amithkoujalgi.ollama4j.core.models.OllamaAsyncResultCallback
-
Returns the final completion/response when the execution completes.
- getSampleDatabasePromptWithQuestion(String) - Static method in class io.github.amithkoujalgi.ollama4j.core.utils.SamplePrompts
- getStream() - Method in class io.github.amithkoujalgi.ollama4j.core.models.OllamaAsyncResultCallback
- GOLIATH - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
H
- handleCurrentResponsePart(OllamaChatResponseModel) - Method in class io.github.amithkoujalgi.ollama4j.core.models.chat.OllamaChatStreamObserver
- handleCurrentResponsePart(OllamaGenerateResponseModel) - Method in class io.github.amithkoujalgi.ollama4j.core.models.generate.OllamaGenerateStreamObserver
I
- io.github.amithkoujalgi.ollama4j.core - package io.github.amithkoujalgi.ollama4j.core
- io.github.amithkoujalgi.ollama4j.core.exceptions - package io.github.amithkoujalgi.ollama4j.core.exceptions
- io.github.amithkoujalgi.ollama4j.core.impl - package io.github.amithkoujalgi.ollama4j.core.impl
- io.github.amithkoujalgi.ollama4j.core.models - package io.github.amithkoujalgi.ollama4j.core.models
- io.github.amithkoujalgi.ollama4j.core.models.chat - package io.github.amithkoujalgi.ollama4j.core.models.chat
- io.github.amithkoujalgi.ollama4j.core.models.embeddings - package io.github.amithkoujalgi.ollama4j.core.models.embeddings
- io.github.amithkoujalgi.ollama4j.core.models.generate - package io.github.amithkoujalgi.ollama4j.core.models.generate
- io.github.amithkoujalgi.ollama4j.core.models.request - package io.github.amithkoujalgi.ollama4j.core.models.request
- io.github.amithkoujalgi.ollama4j.core.types - package io.github.amithkoujalgi.ollama4j.core.types
- io.github.amithkoujalgi.ollama4j.core.utils - package io.github.amithkoujalgi.ollama4j.core.utils
- isComplete() - Method in class io.github.amithkoujalgi.ollama4j.core.models.OllamaAsyncResultCallback
-
Returns the status of the thread.
- isEmpty(SerializerProvider, Boolean) - Method in class io.github.amithkoujalgi.ollama4j.core.utils.BooleanToJsonFormatFlagSerializer
K
- keepAlive - Variable in class io.github.amithkoujalgi.ollama4j.core.models.OllamaCommonRequestModel
L
- listModels() - Method in class io.github.amithkoujalgi.ollama4j.core.OllamaAPI
-
List available models from Ollama server.
- ListModelsResponse - Class in io.github.amithkoujalgi.ollama4j.core.models
- ListModelsResponse() - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.ListModelsResponse
- LLAMA_PRO - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- LLAMA2 - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- LLAMA2_CHINESE - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- LLAMA2_UNCENSORED - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- LLAMA3 - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- LLAVA - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- LLAVA_PHI3 - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- loadImageBytesFromUrl(String) - Static method in class io.github.amithkoujalgi.ollama4j.core.utils.Utils
M
- MAGICODER - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- MEDITRON - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- MEDLLAMA2 - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- MEGADOLPHIN - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- MISTRAL - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- MISTRAL_OPENORCA - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- MISTRALLITE - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- MIXTRAL - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- model - Variable in class io.github.amithkoujalgi.ollama4j.core.models.OllamaCommonRequestModel
- Model - Class in io.github.amithkoujalgi.ollama4j.core.models
- Model() - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.Model
- ModelDetail - Class in io.github.amithkoujalgi.ollama4j.core.models
- ModelDetail() - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.ModelDetail
- ModelMeta - Class in io.github.amithkoujalgi.ollama4j.core.models
- ModelMeta() - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.ModelMeta
- ModelPullResponse - Class in io.github.amithkoujalgi.ollama4j.core.models
- ModelPullResponse() - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.ModelPullResponse
- ModelRequest - Class in io.github.amithkoujalgi.ollama4j.core.models.request
- ModelRequest() - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.request.ModelRequest
N
- NEURAL_CHAT - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- NEXUSRAVEN - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- NOMIC_EMBED_TEXT - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- notify(OllamaChatResponseModel) - Method in class io.github.amithkoujalgi.ollama4j.core.models.chat.OllamaChatStreamObserver
- notify(OllamaGenerateResponseModel) - Method in class io.github.amithkoujalgi.ollama4j.core.models.generate.OllamaGenerateStreamObserver
- NOTUS - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- NOTUX - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- NOUS_HERMES - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- NOUS_HERMES2 - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- NOUS_HERMES2_MIXTRAL - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
O
- OllamaAPI - Class in io.github.amithkoujalgi.ollama4j.core
-
The base Ollama API class.
- OllamaAPI(String) - Constructor for class io.github.amithkoujalgi.ollama4j.core.OllamaAPI
-
Instantiates the Ollama API.
- OllamaAsyncResultCallback - Class in io.github.amithkoujalgi.ollama4j.core.models
- OllamaAsyncResultCallback(HttpRequest.Builder, OllamaGenerateRequestModel, long) - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.OllamaAsyncResultCallback
- OllamaBaseException - Exception in io.github.amithkoujalgi.ollama4j.core.exceptions
- OllamaBaseException(String) - Constructor for exception io.github.amithkoujalgi.ollama4j.core.exceptions.OllamaBaseException
- OllamaChatEndpointCaller - Class in io.github.amithkoujalgi.ollama4j.core.models.request
-
Specialization class for requests
- OllamaChatEndpointCaller(String, BasicAuth, long, boolean) - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.request.OllamaChatEndpointCaller
- OllamaChatMessage - Class in io.github.amithkoujalgi.ollama4j.core.models.chat
-
Defines a single Message to be used inside a chat request against the ollama /api/chat endpoint.
- OllamaChatMessage() - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.chat.OllamaChatMessage
- OllamaChatMessageRole - Enum in io.github.amithkoujalgi.ollama4j.core.models.chat
-
Defines the possible Chat Message roles.
- OllamaChatRequestBuilder - Class in io.github.amithkoujalgi.ollama4j.core.models.chat
-
Helper class for creating
OllamaChatRequestModel
objects using the builder-pattern. - OllamaChatRequestModel - Class in io.github.amithkoujalgi.ollama4j.core.models.chat
-
Defines a Request to use against the ollama /api/chat endpoint.
- OllamaChatRequestModel() - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.chat.OllamaChatRequestModel
- OllamaChatRequestModel(String, List<OllamaChatMessage>) - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.chat.OllamaChatRequestModel
- OllamaChatResponseModel - Class in io.github.amithkoujalgi.ollama4j.core.models.chat
- OllamaChatResponseModel() - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.chat.OllamaChatResponseModel
- OllamaChatResult - Class in io.github.amithkoujalgi.ollama4j.core.models.chat
-
Specific chat-API result that contains the chat history sent to the model and appends the answer as
OllamaChatResult
given by theOllamaChatMessageRole.ASSISTANT
role. - OllamaChatResult(String, long, int, List<OllamaChatMessage>) - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.chat.OllamaChatResult
- OllamaChatStreamObserver - Class in io.github.amithkoujalgi.ollama4j.core.models.chat
- OllamaChatStreamObserver(OllamaStreamHandler) - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.chat.OllamaChatStreamObserver
- OllamaCommonRequestModel - Class in io.github.amithkoujalgi.ollama4j.core.models
- OllamaCommonRequestModel() - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.OllamaCommonRequestModel
- OllamaEmbeddingResponseModel - Class in io.github.amithkoujalgi.ollama4j.core.models.embeddings
- OllamaEmbeddingResponseModel() - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.embeddings.OllamaEmbeddingResponseModel
- OllamaEmbeddingsRequestBuilder - Class in io.github.amithkoujalgi.ollama4j.core.models.embeddings
- OllamaEmbeddingsRequestModel - Class in io.github.amithkoujalgi.ollama4j.core.models.embeddings
- OllamaEmbeddingsRequestModel() - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.embeddings.OllamaEmbeddingsRequestModel
- OllamaEndpointCaller - Class in io.github.amithkoujalgi.ollama4j.core.models.request
-
Abstract helperclass to call the ollama api server.
- OllamaEndpointCaller(String, BasicAuth, long, boolean) - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.request.OllamaEndpointCaller
- OllamaErrorResponseModel - Class in io.github.amithkoujalgi.ollama4j.core.models
- OllamaErrorResponseModel() - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.OllamaErrorResponseModel
- OllamaGenerateEndpointCaller - Class in io.github.amithkoujalgi.ollama4j.core.models.request
- OllamaGenerateEndpointCaller(String, BasicAuth, long, boolean) - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.request.OllamaGenerateEndpointCaller
- OllamaGenerateRequestBuilder - Class in io.github.amithkoujalgi.ollama4j.core.models.generate
-
Helper class for creating
OllamaGenerateRequestModel
objects using the builder-pattern. - OllamaGenerateRequestModel - Class in io.github.amithkoujalgi.ollama4j.core.models.generate
- OllamaGenerateRequestModel() - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.generate.OllamaGenerateRequestModel
- OllamaGenerateRequestModel(String, String) - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.generate.OllamaGenerateRequestModel
- OllamaGenerateRequestModel(String, String, List<String>) - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.generate.OllamaGenerateRequestModel
- OllamaGenerateResponseModel - Class in io.github.amithkoujalgi.ollama4j.core.models.generate
- OllamaGenerateResponseModel() - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.generate.OllamaGenerateResponseModel
- OllamaGenerateStreamObserver - Class in io.github.amithkoujalgi.ollama4j.core.models.generate
- OllamaGenerateStreamObserver(OllamaStreamHandler) - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.generate.OllamaGenerateStreamObserver
- OllamaModelType - Class in io.github.amithkoujalgi.ollama4j.core.types
-
A class to provide constants for all the supported models by Ollama.
- OllamaModelType() - Constructor for class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- OllamaRequestBody - Interface in io.github.amithkoujalgi.ollama4j.core.utils
-
Interface to represent a OllamaRequest as HTTP-Request Body via
HttpRequest.BodyPublishers
. - OllamaResult - Class in io.github.amithkoujalgi.ollama4j.core.models
-
The type Ollama result.
- OllamaResult(String, long, int) - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.OllamaResult
- OllamaStreamHandler - Interface in io.github.amithkoujalgi.ollama4j.core
- OPEN_ORCA_PLATYPUS2 - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- OPENCHAT - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- OPENHERMES - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- options - Variable in class io.github.amithkoujalgi.ollama4j.core.models.embeddings.OllamaEmbeddingsRequestModel
- options - Variable in class io.github.amithkoujalgi.ollama4j.core.models.OllamaCommonRequestModel
- Options - Class in io.github.amithkoujalgi.ollama4j.core.utils
-
Class for options for Ollama model.
- Options() - Constructor for class io.github.amithkoujalgi.ollama4j.core.utils.Options
- OptionsBuilder - Class in io.github.amithkoujalgi.ollama4j.core.utils
-
Builder class for creating options for Ollama model.
- OptionsBuilder() - Constructor for class io.github.amithkoujalgi.ollama4j.core.utils.OptionsBuilder
-
Constructs a new OptionsBuilder with an empty options map.
- ORCA_MINI - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- ORCA2 - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
P
- parseResponseAndAddToBuffer(String, StringBuilder) - Method in class io.github.amithkoujalgi.ollama4j.core.models.request.OllamaChatEndpointCaller
- parseResponseAndAddToBuffer(String, StringBuilder) - Method in class io.github.amithkoujalgi.ollama4j.core.models.request.OllamaEndpointCaller
- parseResponseAndAddToBuffer(String, StringBuilder) - Method in class io.github.amithkoujalgi.ollama4j.core.models.request.OllamaGenerateEndpointCaller
- PHI - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- PHI3 - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- PHIND_CODELLAMA - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- ping() - Method in class io.github.amithkoujalgi.ollama4j.core.OllamaAPI
-
API to check the reachability of Ollama server.
- PromptBuilder - Class in io.github.amithkoujalgi.ollama4j.core.utils
-
The
PromptBuilder
class is used to construct prompt texts for language models (LLMs). - PromptBuilder() - Constructor for class io.github.amithkoujalgi.ollama4j.core.utils.PromptBuilder
-
Constructs a new
PromptBuilder
with an empty prompt. - pullModel(String) - Method in class io.github.amithkoujalgi.ollama4j.core.OllamaAPI
-
Pull a model on the Ollama server from the list of available models.
Q
- QWEN - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
R
- reset() - Method in class io.github.amithkoujalgi.ollama4j.core.models.chat.OllamaChatRequestBuilder
- returnFormatJson - Variable in class io.github.amithkoujalgi.ollama4j.core.models.OllamaCommonRequestModel
- run() - Method in class io.github.amithkoujalgi.ollama4j.core.models.OllamaAsyncResultCallback
S
- SAMANTHA_MISTRAL - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- SamplePrompts - Class in io.github.amithkoujalgi.ollama4j.core.utils
- SamplePrompts() - Constructor for class io.github.amithkoujalgi.ollama4j.core.utils.SamplePrompts
- serialize(Boolean, JsonGenerator, SerializerProvider) - Method in class io.github.amithkoujalgi.ollama4j.core.utils.BooleanToJsonFormatFlagSerializer
- serialize(Collection<byte[]>, JsonGenerator, SerializerProvider) - Method in class io.github.amithkoujalgi.ollama4j.core.utils.FileToBase64Serializer
- setBasicAuth(String, String) - Method in class io.github.amithkoujalgi.ollama4j.core.OllamaAPI
-
Set basic authentication for accessing Ollama server that's behind a reverse-proxy/gateway.
- setMirostat(int) - Method in class io.github.amithkoujalgi.ollama4j.core.utils.OptionsBuilder
-
Enable Mirostat sampling for controlling perplexity.
- setMirostatEta(float) - Method in class io.github.amithkoujalgi.ollama4j.core.utils.OptionsBuilder
-
Influences how quickly the algorithm responds to feedback from the generated text.
- setMirostatTau(float) - Method in class io.github.amithkoujalgi.ollama4j.core.utils.OptionsBuilder
-
Controls the balance between coherence and diversity of the output.
- setNumCtx(int) - Method in class io.github.amithkoujalgi.ollama4j.core.utils.OptionsBuilder
-
Sets the size of the context window used to generate the next token.
- setNumGpu(int) - Method in class io.github.amithkoujalgi.ollama4j.core.utils.OptionsBuilder
-
The number of layers to send to the GPU(s).
- setNumGqa(int) - Method in class io.github.amithkoujalgi.ollama4j.core.utils.OptionsBuilder
-
The number of GQA groups in the transformer layer.
- setNumPredict(int) - Method in class io.github.amithkoujalgi.ollama4j.core.utils.OptionsBuilder
-
Maximum number of tokens to predict when generating text.
- setNumThread(int) - Method in class io.github.amithkoujalgi.ollama4j.core.utils.OptionsBuilder
-
Sets the number of threads to use during computation.
- setRepeatLastN(int) - Method in class io.github.amithkoujalgi.ollama4j.core.utils.OptionsBuilder
-
Sets how far back for the model to look back to prevent repetition.
- setRepeatPenalty(float) - Method in class io.github.amithkoujalgi.ollama4j.core.utils.OptionsBuilder
-
Sets how strongly to penalize repetitions.
- setRequestTimeoutSeconds(long) - Method in class io.github.amithkoujalgi.ollama4j.core.models.OllamaAsyncResultCallback
- setRequestTimeoutSeconds(long) - Method in class io.github.amithkoujalgi.ollama4j.core.OllamaAPI
-
Set request timeout in seconds.
- setSeed(int) - Method in class io.github.amithkoujalgi.ollama4j.core.utils.OptionsBuilder
-
Sets the random number seed to use for generation.
- setStop(String) - Method in class io.github.amithkoujalgi.ollama4j.core.utils.OptionsBuilder
-
Sets the stop sequences to use.
- setTemperature(float) - Method in class io.github.amithkoujalgi.ollama4j.core.utils.OptionsBuilder
-
The temperature of the model.
- setTfsZ(float) - Method in class io.github.amithkoujalgi.ollama4j.core.utils.OptionsBuilder
-
Tail free sampling is used to reduce the impact of less probable tokens from the output.
- setTopK(int) - Method in class io.github.amithkoujalgi.ollama4j.core.utils.OptionsBuilder
-
Reduces the probability of generating nonsense.
- setTopP(float) - Method in class io.github.amithkoujalgi.ollama4j.core.utils.OptionsBuilder
-
Works together with top-k.
- setVerbose(boolean) - Method in class io.github.amithkoujalgi.ollama4j.core.OllamaAPI
-
Set/unset logging of responses
- SOLAR - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- SQLCODER - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- STABLE_BELUGA - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- STABLE_CODE - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- STABLELM_ZEPHYR - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- STABLELM2 - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- STARCODER - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- STARLING_LM - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- stream - Variable in class io.github.amithkoujalgi.ollama4j.core.models.OllamaCommonRequestModel
- SYSTEM - Enum constant in enum io.github.amithkoujalgi.ollama4j.core.models.chat.OllamaChatMessageRole
T
- template - Variable in class io.github.amithkoujalgi.ollama4j.core.models.OllamaCommonRequestModel
- TINYDOLPHIN - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- TINYLLAMA - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- toString() - Method in class io.github.amithkoujalgi.ollama4j.core.models.chat.OllamaChatMessage
- toString() - Method in class io.github.amithkoujalgi.ollama4j.core.models.embeddings.OllamaEmbeddingsRequestModel
- toString() - Method in class io.github.amithkoujalgi.ollama4j.core.models.Model
- toString() - Method in class io.github.amithkoujalgi.ollama4j.core.models.ModelDetail
- toString() - Method in class io.github.amithkoujalgi.ollama4j.core.models.ModelMeta
- toString() - Method in class io.github.amithkoujalgi.ollama4j.core.models.OllamaCommonRequestModel
- toString() - Method in class io.github.amithkoujalgi.ollama4j.core.models.OllamaResult
- toString() - Method in class io.github.amithkoujalgi.ollama4j.core.models.request.CustomModelFileContentsRequest
- toString() - Method in class io.github.amithkoujalgi.ollama4j.core.models.request.CustomModelFilePathRequest
- toString() - Method in class io.github.amithkoujalgi.ollama4j.core.models.request.ModelRequest
U
- USER - Enum constant in enum io.github.amithkoujalgi.ollama4j.core.models.chat.OllamaChatMessageRole
- Utils - Class in io.github.amithkoujalgi.ollama4j.core.utils
- Utils() - Constructor for class io.github.amithkoujalgi.ollama4j.core.utils.Utils
V
- valueOf(String) - Static method in enum io.github.amithkoujalgi.ollama4j.core.models.chat.OllamaChatMessageRole
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum io.github.amithkoujalgi.ollama4j.core.models.chat.OllamaChatMessageRole
-
Returns an array containing the constants of this enum type, in the order they are declared.
- VICUNA - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
W
- withGetJsonResponse() - Method in class io.github.amithkoujalgi.ollama4j.core.models.chat.OllamaChatRequestBuilder
- withGetJsonResponse() - Method in class io.github.amithkoujalgi.ollama4j.core.models.generate.OllamaGenerateRequestBuilder
- withKeepAlive(String) - Method in class io.github.amithkoujalgi.ollama4j.core.models.chat.OllamaChatRequestBuilder
- withKeepAlive(String) - Method in class io.github.amithkoujalgi.ollama4j.core.models.embeddings.OllamaEmbeddingsRequestBuilder
- withKeepAlive(String) - Method in class io.github.amithkoujalgi.ollama4j.core.models.generate.OllamaGenerateRequestBuilder
- withMessage(OllamaChatMessageRole, String, String...) - Method in class io.github.amithkoujalgi.ollama4j.core.models.chat.OllamaChatRequestBuilder
- withMessage(OllamaChatMessageRole, String, List<File>) - Method in class io.github.amithkoujalgi.ollama4j.core.models.chat.OllamaChatRequestBuilder
- withMessages(List<OllamaChatMessage>) - Method in class io.github.amithkoujalgi.ollama4j.core.models.chat.OllamaChatRequestBuilder
- withOptions(Options) - Method in class io.github.amithkoujalgi.ollama4j.core.models.chat.OllamaChatRequestBuilder
- withOptions(Options) - Method in class io.github.amithkoujalgi.ollama4j.core.models.embeddings.OllamaEmbeddingsRequestBuilder
- withOptions(Options) - Method in class io.github.amithkoujalgi.ollama4j.core.models.generate.OllamaGenerateRequestBuilder
- withPrompt(String) - Method in class io.github.amithkoujalgi.ollama4j.core.models.generate.OllamaGenerateRequestBuilder
- withStreaming() - Method in class io.github.amithkoujalgi.ollama4j.core.models.chat.OllamaChatRequestBuilder
- withStreaming() - Method in class io.github.amithkoujalgi.ollama4j.core.models.generate.OllamaGenerateRequestBuilder
- withTemplate(String) - Method in class io.github.amithkoujalgi.ollama4j.core.models.chat.OllamaChatRequestBuilder
- withTemplate(String) - Method in class io.github.amithkoujalgi.ollama4j.core.models.generate.OllamaGenerateRequestBuilder
- WIZARD_MATH - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- WIZARD_VICUNA - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- WIZARD_VICUNA_UNCENSORED - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- WIZARDCODER - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- WIZARDLM - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- WIZARDLM_UNCENSORED - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
X
- XWINLM - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
Y
- YARN_LLAMA2 - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- YARN_MISTRAL - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
- YI - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
Z
- ZEPHYR - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form