Ollama: Always truncate embedding inputs
https://docs.ollama.com/api#parameters-8
This commit is contained in:
@@ -46,6 +46,7 @@ export async function getOllamaVector(text, apiUrl, model, keep, directories) {
|
||||
prompt: text,
|
||||
model: model,
|
||||
keep_alive: keep ? -1 : undefined,
|
||||
truncate: true,
|
||||
}),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user