mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-14 03:57:13 +00:00
Enhancement: AI LLM chunk size and context window config (#12891)
This commit is contained in:
1 parent
bb860a5834
commit
f6c865bf47
15 files changed
+318
-36
No files matched your search
@@ -74,6 +74,7 @@ def get_embedding_model() -> "BaseEmbedding":
|
||||
embedding = OllamaEmbedding(
|
||||
model_name=config.llm_embedding_model or "embeddinggemma",
|
||||
base_url=endpoint,
|
||||
ollama_additional_kwargs={"num_ctx": config.llm_context_size},
|
||||
)
|
||||
embedding._client = Client(
|
||||
host=endpoint,
|
||||
|
||||
Reference in new issue
Block a user