mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-08-29 05:57:32 +00:00
Enhancement: AI LLM chunk size and context window config (#12891)
This commit is contained in:
@@ -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