A B C D E F G I L M N O P R S T U V W X Y Z 
All Classes All Packages

A

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
 
ask(String, String, Options) - Method in class io.github.amithkoujalgi.ollama4j.core.OllamaAPI
Ask a question to a model running on Ollama server.
askAsync(String, String) - Method in class io.github.amithkoujalgi.ollama4j.core.OllamaAPI
Ask 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.
askWithImageFiles(String, String, List<File>) - 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.
askWithImageURLs(String, String, List<String>) - 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.

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
 
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

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
 
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_MIXTRAL - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
 
DOLPHIN21_MISTRAL - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
 
DOLPHIN22_MISTRAL - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
 

E

EmbeddingResponse - Class in io.github.amithkoujalgi.ollama4j.core.models
 
EmbeddingResponse() - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.EmbeddingResponse
 
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
 

G

generateEmbeddings(String, String) - Method in class io.github.amithkoujalgi.ollama4j.core.OllamaAPI
Generate embeddings for a given text from a model
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
 

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.models - package io.github.amithkoujalgi.ollama4j.core.models
 
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.

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
 
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
 
LLAVA - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
 

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
 
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 - 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
 
ModelEmbeddingsRequest - Class in io.github.amithkoujalgi.ollama4j.core.models.request
 
ModelEmbeddingsRequest() - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.request.ModelEmbeddingsRequest
 
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
 
NOUS_HERMES - 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, OllamaRequestModel, 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
 
OllamaErrorResponseModel - Class in io.github.amithkoujalgi.ollama4j.core.models
 
OllamaErrorResponseModel() - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.OllamaErrorResponseModel
 
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
 
OllamaRequestModel - Class in io.github.amithkoujalgi.ollama4j.core.models
 
OllamaRequestModel(String, String) - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.OllamaRequestModel
 
OllamaRequestModel(String, String, List<String>) - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.OllamaRequestModel
 
OllamaResponseModel - Class in io.github.amithkoujalgi.ollama4j.core.models
 
OllamaResponseModel() - Constructor for class io.github.amithkoujalgi.ollama4j.core.models.OllamaResponseModel
 
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
 
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
 
OPENHERMES2_MISTRAL - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
 
OPENHERMES25_MISTRAL - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
 
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

PHI - 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.

R

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
 
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
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
 
STABLELM_ZEPHYR - 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
 

T

toString() - Method in class io.github.amithkoujalgi.ollama4j.core.models.OllamaRequestModel
 
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.ModelEmbeddingsRequest
 
toString() - Method in class io.github.amithkoujalgi.ollama4j.core.models.request.ModelRequest
 

U

Utils - Class in io.github.amithkoujalgi.ollama4j.core.utils
 
Utils() - Constructor for class io.github.amithkoujalgi.ollama4j.core.utils.Utils
 

V

VICUNA - Static variable in class io.github.amithkoujalgi.ollama4j.core.types.OllamaModelType
 

W

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
 
A B C D E F G I L M N O P R S T U V W X Y Z 
All Classes All Packages