Ollama4j
A Java library (wrapper/binding) for Ollama server.
Loading...
Searching...
No Matches
OllamaEmbeddingsRequestBuilder.java
Go to the documentation of this file.
1
package
io.github.ollama4j.models.embeddings;
2
3
import
io.github.ollama4j.utils.Options;
4
5
@Deprecated(since=
"1.0.90"
)
6
public class
OllamaEmbeddingsRequestBuilder
{
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
18
public
OllamaEmbeddingsRequestModel
build
(){
19
return
request;
20
}
21
22
public
OllamaEmbeddingsRequestBuilder
withOptions
(
Options
options){
23
this.request.setOptions(options.getOptionsMap());
24
return
this
;
25
}
26
27
public
OllamaEmbeddingsRequestBuilder
withKeepAlive
(String keepAlive){
28
this.request.setKeepAlive(keepAlive);
29
return
this
;
30
}
31
32
}
io.github.ollama4j.models.embeddings.OllamaEmbeddingsRequestBuilder
Definition
OllamaEmbeddingsRequestBuilder.java:6
io.github.ollama4j.models.embeddings.OllamaEmbeddingsRequestBuilder.withOptions
OllamaEmbeddingsRequestBuilder withOptions(Options options)
Definition
OllamaEmbeddingsRequestBuilder.java:22
io.github.ollama4j.models.embeddings.OllamaEmbeddingsRequestBuilder.withKeepAlive
OllamaEmbeddingsRequestBuilder withKeepAlive(String keepAlive)
Definition
OllamaEmbeddingsRequestBuilder.java:27
io.github.ollama4j.models.embeddings.OllamaEmbeddingsRequestBuilder.getInstance
static OllamaEmbeddingsRequestBuilder getInstance(String model, String prompt)
Definition
OllamaEmbeddingsRequestBuilder.java:14
io.github.ollama4j.models.embeddings.OllamaEmbeddingsRequestBuilder.build
OllamaEmbeddingsRequestModel build()
Definition
OllamaEmbeddingsRequestBuilder.java:18
io.github.ollama4j.models.embeddings.OllamaEmbeddingsRequestModel
Definition
OllamaEmbeddingsRequestModel.java:16
io.github.ollama4j.utils.Options
Definition
Options.java:8
src
main
java
io
github
ollama4j
models
embeddings
OllamaEmbeddingsRequestBuilder.java
Generated by
1.12.0