diff --git a/models/spring-ai-ollama/src/test/java/org/springframework/ai/ollama/api/OllamaModelOptionsTests.java b/models/spring-ai-ollama/src/test/java/org/springframework/ai/ollama/api/OllamaModelOptionsTests.java index 0a847348d..fc586d63b 100644 --- a/models/spring-ai-ollama/src/test/java/org/springframework/ai/ollama/api/OllamaModelOptionsTests.java +++ b/models/spring-ai-ollama/src/test/java/org/springframework/ai/ollama/api/OllamaModelOptionsTests.java @@ -28,11 +28,7 @@ public class OllamaModelOptionsTests { @Test public void testOptions() { - var options = OllamaOptions.create() - .withTemperature(3.14f) - .withEmbeddingOnly(false) - .withTopK(30) - .withStop(List.of("a", "b", "c")); + var options = OllamaOptions.create().withTemperature(3.14f).withTopK(30).withStop(List.of("a", "b", "c")); var optionsMap = options.toMap(); System.out.println(optionsMap); diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/ollama-chat.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/ollama-chat.adoc index caf813047..a3fbcf784 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/ollama-chat.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/ollama-chat.adoc @@ -74,7 +74,6 @@ NOTE: The `options` properties are based on the link:https://github.com/jmorganc | spring.ai.ollama.chat.options.vocab-only | ??? | - | spring.ai.ollama.chat.options.use-mmap | ??? | true | spring.ai.ollama.chat.options.use-mlock | ??? | false -| spring.ai.ollama.chat.options.embedding-only | ??? | false | spring.ai.ollama.chat.options.rope-frequency-base | ??? | 10000.0 | spring.ai.ollama.chat.options.rope-frequency-scale | ??? | 1.0 | spring.ai.ollama.chat.options.num-thread | Sets the number of threads to use during computation. By default, Ollama will detect this for optimal performance. It is recommended to set this value to the number of physical CPU cores your system has (as opposed to the logical number of cores). 0 = let the runtime decide | 0 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 ff2535517..c0e8a7a55 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 @@ -81,7 +81,6 @@ The prefix `spring.ai.ollama.embedding.options` is the property prefix that conf | spring.ai.ollama.embedding.options.vocab-only | ??? | - | spring.ai.ollama.embedding.options.use-mmap | ??? | - | spring.ai.ollama.embedding.options.use-mlock | ??? | - -| spring.ai.ollama.embedding.options.embedding-only | ??? | - | spring.ai.ollama.embedding.options.rope-frequency-base | ??? | - | spring.ai.ollama.embedding.options.rope-frequency-scale | ??? | - | spring.ai.ollama.embedding.options.num-thread | Sets the number of threads to use during computation. By default, Ollama will detect this for optimal performance. It is recommended to set this value to the number of physical CPU cores your system has (as opposed to the logical number of cores). | -