Ollama4j
A Java library (wrapper/binding) for Ollama server.
Loading...
Searching...
No Matches
OllamaEmbedResult.java
Go to the documentation of this file.
1
/*
2
* Ollama4j - Java library for interacting with Ollama server.
3
* Copyright (c) 2025 Amith Koujalgi and contributors.
4
*
5
* Licensed under the MIT License (the "License");
6
* you may not use this file except in compliance with the License.
7
*
8
*/
9
package
io.github.ollama4j.models.embed;
10
11
import
com.fasterxml.jackson.annotation.JsonProperty;
12
import
java.util.List;
13
import
lombok.Data;
14
15
@SuppressWarnings(
"unused"
)
16
@Data
17
public
class
OllamaEmbedResult
{
18
@JsonProperty(
"model"
)
19
private
String model;
20
21
@JsonProperty(
"embeddings"
)
22
private
List<List<Double>> embeddings;
23
24
@JsonProperty(
"total_duration"
)
25
private
long
totalDuration;
26
27
@JsonProperty(
"load_duration"
)
28
private
long
loadDuration;
29
30
@JsonProperty(
"prompt_eval_count"
)
31
private
int
promptEvalCount;
32
}
io.github.ollama4j.models.embed.OllamaEmbedResult
Definition
OllamaEmbedResult.java:17
src
main
java
io
github
ollama4j
models
embed
OllamaEmbedResult.java
Generated by
1.12.0