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

This commit is contained in:
shamoon authored and GitHub committed 2026-06-01 17:56:21 +00:00
1 parent bb860a5834
commit f6c865bf47
15 files changed
+318 -36

No files matched your search

+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,