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

This commit is contained in:
shamoon
2026-06-01 10:56:21 -07:00
committed by GitHub
parent bb860a5834
commit f6c865bf47
15 changed files with 318 additions and 36 deletions
+16
View File
@@ -309,6 +309,20 @@ export const PaperlessConfigOptions: ConfigOption[] = [
config_key: 'PAPERLESS_AI_LLM_EMBEDDING_ENDPOINT',
category: ConfigCategory.AI,
},
{
key: 'llm_embedding_chunk_size',
title: $localize`LLM Embedding Chunk Size`,
type: ConfigOptionType.Number,
config_key: 'PAPERLESS_AI_LLM_EMBEDDING_CHUNK_SIZE',
category: ConfigCategory.AI,
},
{
key: 'llm_context_size',
title: $localize`LLM Context Size`,
type: ConfigOptionType.Number,
config_key: 'PAPERLESS_AI_LLM_CONTEXT_SIZE',
category: ConfigCategory.AI,
},
{
key: 'llm_backend',
title: $localize`LLM Backend`,
@@ -372,6 +386,8 @@ export interface PaperlessConfig extends ObjectWithId {
llm_embedding_backend: string
llm_embedding_model: string
llm_embedding_endpoint: string
llm_embedding_chunk_size: number
llm_context_size: number
llm_backend: string
llm_model: string
llm_api_key: string