From 1589d563040b73b836e89dc6901a306629ef1ad6 Mon Sep 17 00:00:00 2001 From: cboy <791314183@qq.com> Date: Wed, 25 Sep 2024 00:38:52 +0800 Subject: [PATCH] Update ollama-embeddings.adoc --- .../modules/ROOT/pages/api/embeddings/ollama-embeddings.adoc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/embeddings/ollama-embeddings.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/embeddings/ollama-embeddings.adoc index 2f79cd379e..eb43d0228f 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/embeddings/ollama-embeddings.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/embeddings/ollama-embeddings.adoc @@ -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()); ----