Skip to content

Commit

Permalink
Fix a compliation issue and docs related to 23db7cc
Browse files Browse the repository at this point in the history
  • Loading branch information
tzolov committed Mar 24, 2024
1 parent 23db7cc commit 472ac52
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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). | -
Expand Down

0 comments on commit 472ac52

Please sign in to comment.