Enhancement: AI LLM chunk size and context window config (#12891)

This commit is contained in:
shamoon
2026-06-01 17:56:21 +00:00
committed by GitHub
parent bb860a5834
commit f6c865bf47
15 changed files with 318 additions and 36 deletions
+12
View File
@@ -318,6 +318,18 @@ class ApplicationConfiguration(AbstractSingletonModel):
max_length=256,
)
llm_embedding_chunk_size = models.PositiveSmallIntegerField(
verbose_name=_("Sets the LLM embedding chunk size"),
null=True,
validators=[MinValueValidator(1)],
)
llm_context_size = models.PositiveIntegerField(
verbose_name=_("Sets the LLM context size"),
null=True,
validators=[MinValueValidator(1)],
)
llm_backend = models.CharField(
verbose_name=_("Sets the LLM backend"),
blank=True,