Fix a compliation issue and docs related to 23db7cccdf

This commit is contained in:
Christian Tzolov
2024-03-24 14:55:41 +01:00
parent 23db7cccdf
commit 472ac52bc9
3 changed files with 1 additions and 7 deletions

View File

@@ -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);

View File

@@ -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

View File

@@ -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). | -