infrastructure(paperless): add paperless-ai production ConfigMap to git
- Commit paperless-ai-config.yaml with production environment variables - Configure Paperless API endpoint and token - Enable AI processing with qwen2.5:3b model - Set up auto-tagging, correspondent/document type extraction - Configure 60s scan interval for document processing - Add ConfigMap to kustomization.yaml for GitOps deployment
This commit is contained in:
@@ -4,6 +4,7 @@ namespace: paperless
|
|||||||
resources:
|
resources:
|
||||||
- pvc.yaml
|
- pvc.yaml
|
||||||
- configmap.yaml
|
- configmap.yaml
|
||||||
|
- paperless-ai-config.yaml
|
||||||
- redis.yaml
|
- redis.yaml
|
||||||
- deployment.yaml
|
- deployment.yaml
|
||||||
- service.yaml
|
- service.yaml
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: paperless-ai-env
|
||||||
|
namespace: paperless
|
||||||
|
data:
|
||||||
|
paperless-ai-config.env: |
|
||||||
|
# Paperless-NGX API configuration
|
||||||
|
PAPERLESS_URL=http://paperless.paperless.svc.cluster.local:8000
|
||||||
|
PAPERLESS_API_TOKEN=7b89463e04c141f4172fbcddf78d623547d327ec
|
||||||
|
|
||||||
|
# AI Processing settings
|
||||||
|
ENABLE_AI_PROCESSING=yes
|
||||||
|
AI_MODEL=qwen2.5:3b-instruct
|
||||||
|
LLM_API_URL=https://api.riotpiao.com/v1
|
||||||
|
LLM_API_TOKEN_FILE=/app/data/llm_token.txt
|
||||||
|
|
||||||
|
# Auto-tagging configuration
|
||||||
|
ENABLE_AUTO_TAGGING=yes
|
||||||
|
ENABLE_CORRESPONDENT_EXTRACTION=yes
|
||||||
|
ENABLE_DOCUMENT_TYPE_EXTRACTION=yes
|
||||||
|
ENABLE_TITLE_GENERATION=yes
|
||||||
|
|
||||||
|
# Scanning behavior
|
||||||
|
SCAN_INTERVAL_SECONDS=60
|
||||||
|
PROCESS_EXISTING_DOCUMENTS=no
|
||||||
|
ADD_AI_TAG=yes
|
||||||
|
AI_TAG_NAME=ai-processed
|
||||||
|
|
||||||
|
# Performance
|
||||||
|
MAX_CONCURRENT_REQUESTS=2
|
||||||
|
REQUEST_TIMEOUT=60
|
||||||
Reference in New Issue
Block a user