Ollama: Always truncate embedding inputs https://docs.ollama.com/api#parameters-8
| @@ -46,6 +46,7 @@ export async function getOllamaVector(text, apiUrl, model, keep, directories) { | ||
| 46 | 46 | prompt: text, |
| 47 | 47 | model: model, |
| 48 | 48 | keep_alive: keep ? -1 : undefined, |
| 49 | + truncate: true, | |
| 49 | 50 | }), |
| 50 | 51 | }); |
| 51 | 52 | |