Ollama4j
A Java library (wrapper/binding) for Ollama server.
Loading...
Searching...
No Matches
OllamaEmbeddingsRequestBuilder.java
Go to the documentation of this file.
1package io.github.ollama4j.models.embeddings;
2
3import io.github.ollama4j.utils.Options;
4
5@Deprecated(since="1.0.90")
7
8 private OllamaEmbeddingsRequestBuilder(String model, String prompt){
9 request = new OllamaEmbeddingsRequestModel(model, prompt);
10 }
11
12 private OllamaEmbeddingsRequestModel request;
13
14 public static OllamaEmbeddingsRequestBuilder getInstance(String model, String prompt){
15 return new OllamaEmbeddingsRequestBuilder(model, prompt);
16 }
17
19 return request;
20 }
21
23 this.request.setOptions(options.getOptionsMap());
24 return this;
25 }
26
28 this.request.setKeepAlive(keepAlive);
29 return this;
30 }
31
32}
static OllamaEmbeddingsRequestBuilder getInstance(String model, String prompt)