OllamaResult |
OllamaAPI.ask(String model,
String prompt,
Options options) |
Ask a question to a model running on Ollama server.
|
OllamaResult |
OllamaAPI.askWithImageFiles(String model,
String prompt,
List<File> imageFiles) |
With one or more image files, ask a question to a model running on Ollama server.
|
OllamaResult |
OllamaAPI.askWithImageURLs(String model,
String prompt,
List<String> imageURLs) |
With one or more image URLs, ask a question to a model running on Ollama server.
|
void |
OllamaAPI.createModelWithFilePath(String modelName,
String modelFilePath) |
Create a custom model from a model file.
|
void |
OllamaAPI.createModelWithModelFileContents(String modelName,
String modelFileContents) |
Create a custom model from a model file.
|
void |
OllamaAPI.deleteModel(String modelName,
boolean ignoreIfNotPresent) |
Delete a model from Ollama server.
|
List<Double> |
OllamaAPI.generateEmbeddings(String model,
String prompt) |
Generate embeddings for a given text from a model
|
ModelDetail |
OllamaAPI.getModelDetails(String modelName) |
Gets model details from the Ollama server.
|
List<Model> |
OllamaAPI.listModels() |
List available models from Ollama server.
|
void |
OllamaAPI.pullModel(String modelName) |
|