Skip to content

Commit

Permalink
Update ollama-embeddings.adoc
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhangbin committed Sep 24, 2024
1 parent b468354 commit 1589d56
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,13 @@ var ollamaApi = new OllamaApi();
var embeddingModel = new OllamaEmbeddingModel(ollamaApi,
OllamaOptions.builder()
.withModel(OllamaModel.MISTRAL.id())
.build()
.toMap());
.build());
EmbeddingResponse embeddingResponse = embeddingModel.call(
new EmbeddingRequest(List.of("Hello World", "World is big and salvation is near"),
OllamaOptions.builder()
.withModel("chroma/all-minilm-l6-v2-f32"))
.withtTruncate(false)
.withTruncate(false)
.build());
----

Expand Down

0 comments on commit 1589d56

Please sign in to comment.