mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-06-04 04:39:44 +00:00
Enhancement: AI LLM chunk size and context window config (#12891)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user