Enhancement: support ollama embeddings (#12753)

This commit is contained in:
shamoon
2026-05-08 17:06:14 -07:00
committed by GitHub
parent 177d81c8d4
commit 79d0a04df0
12 changed files with 211 additions and 10 deletions
+9
View File
@@ -57,6 +57,7 @@ export const ConfigCategory = {
export const LLMEmbeddingBackendConfig = {
OPENAI_LIKE: 'openai-like',
HUGGINGFACE: 'huggingface',
OLLAMA: 'ollama',
}
export const LLMBackendConfig = {
@@ -301,6 +302,13 @@ export const PaperlessConfigOptions: ConfigOption[] = [
config_key: 'PAPERLESS_AI_LLM_EMBEDDING_MODEL',
category: ConfigCategory.AI,
},
{
key: 'llm_embedding_endpoint',
title: $localize`LLM Embedding Endpoint`,
type: ConfigOptionType.String,
config_key: 'PAPERLESS_AI_LLM_EMBEDDING_ENDPOINT',
category: ConfigCategory.AI,
},
{
key: 'llm_backend',
title: $localize`LLM Backend`,
@@ -363,6 +371,7 @@ export interface PaperlessConfig extends ObjectWithId {
ai_enabled: boolean
llm_embedding_backend: string
llm_embedding_model: string
llm_embedding_endpoint: string
llm_backend: string
llm_model: string
llm_api_key: string