Commit graph

13 commits

Author SHA1 Message Date
Kaindl Network
d61337fed3
Set Fixed Alpine Version ()
The Dockerfile lacks reproducibility during the build process if the container images in use are not pinned to a specific version.
2025-02-11 10:18:53 +01:00
Icereed
c8c0dd75ff
Google Document AI ()
* 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
renovate[bot]
93773725f4
chore(deps): update golang docker tag to v1.23.6 ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-05 06:56:24 +01:00
renovate[bot]
a2acaa9543
chore(deps): update node.js to v22 ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-03 13:37:21 +01:00
Icereed
897f0fbbd7
feat: restructure Dockerfile to build Vite frontend and embed assets in Go application () 2025-02-03 10:51:42 +01:00
renovate[bot]
9ca67c7e38
chore(deps): update golang docker tag to v1.23.5 ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-03 09:27:59 +01:00
Icereed
c8e866c369
feat: add versioning information to Docker build and application startup ()
* feat: add versioning information to Docker build and application startup

Bonus: Pin Alpine package versions.
2025-01-13 08:02:55 +01:00
ccrlawrence
b788f09185
UNDO feature - easily track changes () 2024-12-13 16:48:09 +01:00
Icereed
03364f2741
OCR via LLM () 2024-10-28 17:34:41 +01:00
Icereed
10df151525
Fix prompts mount ()
Fixes 
2024-10-26 15:21:13 +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
47275e277a Refactor Dockerfile to remove unnecessary chmod command 2024-09-23 15:21:47 +02:00
Dominik Schröter
833bd9b1b7 Publish paperless-gpt 2024-09-23 14:59:50 +02:00