Skip to content

Commit 0c1e286

Browse files
authored
Update .env.example
1 parent f2257ca commit 0c1e286

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

.env.example

+19-19
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1+
PAPERLESS_AI_INITIAL_SETUP=yes
12
PAPERLESS_API_URL=http://localhost:8000/api
2-
PAPERLESS_API_TOKEN=xxxxxxxxxxxxxxxxxxxxx
3-
AI_PROVIDER=openai
3+
PAPERLESS_API_TOKEN=xxxxxxxxxxxxxxxxxxxx
4+
PAPERLESS_USERNAME=clusterzx
5+
AI_PROVIDER=custom
6+
OPENAI_API_KEY=
7+
OPENAI_MODEL=
8+
OLLAMA_API_URL=http://localhost:11434
9+
OLLAMA_MODEL=llama3.2
410
SCAN_INTERVAL=*/30 * * * *
5-
SYSTEM_PROMPT=``You are a personalized document analyzer. Your task is to analyze documents and extract relevant information.\n\nAnalyze the document content and extract the following information into a structured JSON object:\n\n1. title: Create a concise, meaningful title for the document\n2. correspondent: Identify the sender/institution but do not include addresses\n3. tags: Select up to 4 relevant thematic tags\n4. document_date: Extract the document date (format: YYYY-MM-DD)\n5. language: Determine the document language (e.g. "de" or "en")\n \nImportant rules for the analysis:\n\nFor tags:\n- FIRST check the existing tags before suggesting new ones\n- Use only relevant categories\n- Maximum 4 tags per document, less if sufficient (at least 1)\n- Avoid generic or too specific tags\n- Use only the most important information for tag creation\n- The output language is the one used in the document! IMPORTANT!\n\nFor the title:\n- Short and concise, NO ADDRESSES\n- Contains the most important identification features\n- For invoices/orders, mention invoice/order number if available\n- The output language is the one used in the document! IMPORTANT!\n\nFor the correspondent:\n- Identify the sender or institution\n\nFor the document date:\n- Extract the date of the document\n- Use the format YYYY-MM-DD\n- If multiple dates are present, use the most relevant one\n\nFor the language:\n- Determine the document language\n- Use language codes like "de" for German or "en" for English\n- If the language is not clear, use "und" as a placeholder
6-
7-
Return the result EXCLUSIVELY as a JSON object. The Tags and Title MUST be in the language that is used in the document.:
8-
9-
{
10-
"title": "xxxxx",
11-
"correspondent": "xxxxxxxx",
12-
"tags": ["Tag1", "Tag2", "Tag3", "Tag4"],
13-
"document_date": "YYYY-MM-DD",
14-
"language": "en/de/es/..."
15-
}`
11+
SYSTEM_PROMPT=`You are a personalized document analyzer. Your task is to analyze documents and extract relevant information.\n\nAnalyze the document content and extract the following information into a structured JSON object:\n\n1. title: Create a concise, meaningful title for the document\n2. correspondent: Identify the sender/institution but do not include addresses\n3. tags: Select up to 4 relevant thematic tags\n4. document_date: Extract the document date (format: YYYY-MM-DD)\n5. language: Determine the document language (e.g. "de" or "en")\n \nImportant rules for the analysis:\n\nFor tags:\n- FIRST check the existing tags before suggesting new ones\n- Use only relevant categories\n- Maximum 4 tags per document, less if sufficient (at least 1)\n- Avoid generic or too specific tags\n- Use only the most important information for tag creation\n- The output language is the one used in the document! IMPORTANT!\n\nFor the title:\n- Short and concise, NO ADDRESSES\n- Contains the most important identification features\n- For invoices/orders, mention invoice/order number if available\n- The output language is the one used in the document! IMPORTANT!\n\nFor the correspondent:\n- Identify the sender or institution\n When generating the correspondent, always create the shortest possible form of the company name (e.g. "Amazon" instead of "Amazon EU SARL, German branch")\n\nFor the document date:\n- Extract the date of the document\n- Use the format YYYY-MM-DD\n- If multiple dates are present, use the most relevant one\n\nFor the language:\n- Determine the document language\n- Use language codes like "de" for German or "en" for English\n- If the language is not clear, use "und" as a placeholder
12+
`
1613
PROCESS_PREDEFINED_DOCUMENTS=yes
17-
TAGS=indexed,indexed2
18-
ADD_AI_PROCESSED_TAG=yes
14+
TAGS=pre-process
15+
ADD_AI_PROCESSED_TAG=no
1916
AI_PROCESSED_TAG_NAME=ai-processed
20-
USE_PROMPT_TAGS=yes
21-
PROMPT_TAGS=Gehalt,Rechnung,Vertrag,Arbeitgeber
22-
OPENAI_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
23-
OPENAI_MODEL=gpt-4o-mini
17+
USE_PROMPT_TAGS=no
18+
PROMPT_TAGS=
19+
USE_EXISTING_DATA=no
20+
API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
21+
CUSTOM_API_KEY=xxxxxxxxxxxxxxxxxxxxxxx
22+
CUSTOM_BASE_URL=https://api.deepseek.com/v1
23+
CUSTOM_MODEL=deepseek-chat

0 commit comments

Comments
 (0)