Commit graph

34 commits

Author SHA1 Message Date
Icereed
cbd9c5438c
feat(ocr): add support for Azure Document Intelligence provider (#279) 2025-03-10 10:51:56 +01:00
Icereed
b7fab1af8a
feat: add custom HTTP transport with headers for OpenAI client (#245)
* feat: add custom HTTP transport with headers for OpenAI client

Closes #237
2025-02-17 11:39:45 +01:00
mkrinke
16e478687e
feat: Add TLS configuration support for HTTPS connections in Paperless client (#230)
* feat: Add TLS configuration support for HTTPS connections in Paperless client

* fix: Correct insecure skip verify environment variable logic
2025-02-12 15:47:29 +01:00
mkrinke
29c2bb6d04
refactor: Improve auto-tagging process to skip OCR-tagged documents (#227)
* refactor: Improve auto-tagging process to skip OCR-tagged documents

* Use empty template in test case
2025-02-12 05:41:16 +01:00
Icereed
cf7c93c314
fix(ocr): fix the auto-tag trigger for OCR (#216) 2025-02-10 20:21:45 +00:00
Icereed
c8c0dd75ff
Google Document AI (#208)
* feat(ocr): implement OCR provider interface and add Google Document AI and LLM providers

* chore(deps): reorder dependencies in go.mod for better readability

* chore: update version numbers and adjust Docker configuration for Google Document AI integration

* feat(logging): add structured logging to Google Document AI and LLM providers

* chore: add placeholder file to maintain directory structure in web-app/dist

* chore(docker): remove Google Application Credentials configuration from docker-compose
2025-02-10 14:34:12 +00:00
Icereed
b8807859c5
Add GET routes for /history and /experimental-ocr; Refactor Sidebar.tsx (#186) 2025-02-03 13:32:13 +00:00
Icereed
897f0fbbd7
feat: restructure Dockerfile to build Vite frontend and embed assets in Go application (#178) 2025-02-03 10:51:42 +01:00
Icereed
90ca87a207
feat: add TOKEN_LIMIT environment variable for controlling maximum to… (#161)
* feat: add TOKEN_LIMIT environment variable for controlling maximum tokens in prompts

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-02-02 15:14:18 +00:00
Icereed
e661989829
LLM powered Correspondents handling (#89)
---------

Co-authored-by: Jonas Hess <Jonas@Hess.pm>
2025-01-13 15:59:29 +01:00
Icereed
e144661dfb
Add RemoveTags field to DocumentSuggestion for explicit tag removal (#118)
* feat: add functionality to manage suggested and removable tags in document suggestions

* feat: process multiple documents for auto-tagging and OCR
2025-01-13 09:52:56 +00:00
Icereed
95626371d7
Enhance logging (#114)
* enhance logging

* refactor: enhance logging in document suggestion and title generation processes
2025-01-13 08:31:51 +01:00
Icereed
c8e866c369
feat: add versioning information to Docker build and application startup (#113)
* feat: add versioning information to Docker build and application startup

Bonus: Pin Alpine package versions.
2025-01-13 08:02:55 +01:00
Icereed
38321c4ac9
Limit pages for OCR (#102)
Bonus: Adds logging for image dimensions and size

Closes #95
2025-01-10 17:03:53 +01:00
Icereed
32f83ec93f
feat: add support automatic OCR (#75) 2025-01-06 23:03:41 +01:00
Christoph Ruckstetter
3b1d876d13
Allow setting of path to read static files from (#58)
* feat: allow setting of path to load static files from

* Describe WEBUI_PATH setting in readme

---------

Co-authored-by: Icereed <domi@icereed.net>
2025-01-06 09:29:07 +00:00
Brian Torres-Gil
6226b8c898
feat: Setting to disabled auto generation of title or tags (#60) 2025-01-06 09:19:00 +00:00
Christoph Ruckstetter
bede39f6ef
make listen interface configurable (#57)
* make listen interface configurable

* describe new listen interface setting in readme
2025-01-03 16:51:36 +00:00
ccrlawrence
b788f09185
UNDO feature - easily track changes (#54) 2024-12-13 16:48:09 +01:00
Jonas Hess
5dadbcb53d feat: improve auto throughput & logging 2024-10-31 21:17:16 +01:00
Icereed
03364f2741
OCR via LLM (#29) 2024-10-28 17:34:41 +01:00
Jonas Hess
e62c5442f5 feat: Add exponential backoff for auto processing 2024-10-22 06:38:25 +02:00
Dominik Schröter
4abd5cc13c Refactor paperless client and app structure 2024-10-21 21:52:23 +02:00
Jonas Hess
95c9d1bdb5 feat: Add background routine to process documents with autoTag every 10 seconds
- Spawn a new goroutine in the `main` function to process documents with the `autoTag` every 10 seconds.
- Implement `processAutoTagDocuments` function to:
  - Fetch documents with the `autoTag`.
  - Generate suggestions using the LLM.
  - Apply the suggestions to the documents.
  - Remove the `autoTag` from the documents.
- Add logging for each document being processed.
2024-10-21 21:34:48 +02:00
Jonas Hess
83088e1e15
Specific error messages for missing environment variables (#21) 2024-10-21 09:56:49 +02:00
Dominik Schröter
6410136f89 feat: add support for customizable server-side prompts
- **Custom Prompt Templates**: Introduced support for user-modifiable prompt templates using Go's `text/template`.
  - Added default prompt templates for title and tag generation.
  - Templates are stored in the `prompts` directory and are loaded at startup.
  - If the template files do not exist, they are created with default content.
  - Users can modify the templates by editing the files in the `prompts` directory.
- **API Endpoints for Prompts**:
  - Added `GET /api/prompts` endpoint to retrieve the current prompt templates.
  - Added `POST /api/prompts` endpoint to update the prompt templates.
  - These endpoints prepare for future UI support for modifying prompts.
- **Thread Safety**:
  - Implemented a `sync.RWMutex` to ensure thread-safe access to the templates.
- **Updated Backend Logic**:
  - Modified `getSuggestedTitle` and `getSuggestedTags` functions to use the loaded templates.
  - Templates utilize variables like `{{.Language}}`, `{{.Content}}`, `{{.AvailableTags}}`, and `{{.Title}}`.
- **Docker and Documentation**:
  - Updated the `loadTemplates` function to ensure the `prompts` directory exists and to save default templates if missing.
  - Updated the README with instructions on how to mount the `prompts` directory in Docker and Docker Compose.
  - Provided guidance on modifying the prompt templates via file edits.
2024-10-16 14:57:14 +02:00
Dominik Schröter
0dd1d0b5ad Fix tags API pagination 2024-10-16 14:47:50 +02:00
Dominik Schröter
aa67b2443a Able to apply empty tags 2024-10-07 20:51:28 +02:00
Dominik Schröter
51bf716854 Redesign for optional titles or tags 2024-10-07 13:50:01 +02:00
Icereed
c7b5c6a060
Enhance UX for tag selection (#5)
Fixes #1
2024-10-04 13:05:02 +02:00
Dominik Schröter
4ba0b36be7 Refactor getSuggestedTags function to filter out tags not in the available tags list 2024-09-24 09:18:50 +02:00
Dominik Schröter
12e6acd5a9 Refactor LLM provider configuration to support custom server URL 2024-09-24 09:18:33 +02:00
Dominik Schröter
26a160209f Initial support for auto-tagging 2024-09-23 17:08:36 +02:00
Dominik Schröter
833bd9b1b7 Publish paperless-gpt 2024-09-23 14:59:50 +02:00