- Add ENABLE_INTELLIGENT_TAGGING for advanced AI-powered tagging - Add ENABLE_DATE_EXTRACTION for automatic date/timeline parsing - Add ENABLE_TIMELINE_TAGGING to create temporal tags (YYYY, Q#-YYYY, Last-Month, etc) - Set TAG_EXTRACTION_MODEL to reasoning for sophisticated analysis - Configure timeline granularity (year, quarter, month) - Add custom prompt for temporal context extraction - Auto-create tags for historical and recent documents
50 lines
1.4 KiB
YAML
50 lines
1.4 KiB
YAML
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=reasoning
|
|
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
|
|
|
|
# Advanced tagging with AI
|
|
ENABLE_INTELLIGENT_TAGGING=yes
|
|
ENABLE_DATE_EXTRACTION=yes
|
|
ENABLE_TIMELINE_TAGGING=yes
|
|
AUTO_CREATE_TAGS=yes
|
|
|
|
# Tagging prompts for custom extraction
|
|
CUSTOM_EXTRACTION_PROMPT=Extract document date, time period, financial year, and temporal context. Create tags like YYYY, Q1-YYYY, Last-Month, Current-Year, Historic
|
|
TAG_EXTRACTION_MODEL=reasoning
|
|
|
|
# Scanning behavior
|
|
SCAN_INTERVAL_SECONDS=60
|
|
PROCESS_EXISTING_DOCUMENTS=no
|
|
ADD_AI_TAG=yes
|
|
AI_TAG_NAME=ai-processed
|
|
|
|
# Date/Timeline tagging configuration
|
|
DATE_EXTRACTION_FORMAT=iso8601
|
|
TIMELINE_TAG_GRANULARITY=year,quarter,month
|
|
AUTO_TAG_HISTORICAL=yes
|
|
AUTO_TAG_RECENT=yes
|
|
|
|
# Performance
|
|
MAX_CONCURRENT_REQUESTS=2
|
|
REQUEST_TIMEOUT=60
|
|
DATE_EXTRACTION_TIMEOUT=30
|