Commit graph

195 commits

Author SHA1 Message Date
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
Icereed
13f31ddc3f
Update README.md 2024-12-20 15:12:16 +01:00
ccrlawrence
b788f09185
UNDO feature - easily track changes (#54) 2024-12-13 16:48:09 +01:00
ccrlawrence
5b3373743a
Fix Vision OCR for OpenAI (#47)
## Summary by CodeRabbit

- **New Features**
	- Updated environment variable descriptions for improved clarity on OCR processing options.
	- Enhanced the `doOCRViaLLM` method to support different LLM providers and improve image data handling.

- **Bug Fixes**
	- Standardized error handling for better reporting across multiple methods. 

- **Documentation**
	- Revised Docker Compose section in `README.md` to reflect updated environment variable options.
2024-11-13 05:47:25 +01:00
ccrlawrence
d1f23de5a6
Tag query change (#44)
* Tag query change

---------

Co-authored-by: Icereed <domi@icereed.net>
2024-11-11 10:40:39 +01:00
Icereed
6d4683c9a3
Merge pull request #40 from Hess-IT-Beratung/feat/improve_logging_and_auto_throughput
feat: improve auto throughput & logging
2024-11-04 10:47:41 +01:00
Jonas Hess
5dadbcb53d feat: improve auto throughput & logging 2024-10-31 21:17:16 +01:00
Icereed
def89b5aea
fix: Put OCR pages into correct order (#38)
A race condition caused the pages to be in a mixed order.
2024-10-28 23:05:25 +01:00
Icereed
2d13913b3a
Fix OCR screen (#37) 2024-10-28 22:46:37 +01:00
Icereed
03364f2741
OCR via LLM (#29) 2024-10-28 17:34:41 +01:00
Icereed
10df151525
Fix prompts mount (#30)
Fixes #27
2024-10-26 15:21:13 +02:00
Jonas Hess
e62c5442f5 feat: Add exponential backoff for auto processing 2024-10-22 06:38:25 +02:00
Jonas Hess
eeb821aeb0 chore: Update README.md 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
Icereed
6fad4bb153
Create FUNDING.yml 2024-10-21 18:40:53 +02:00
Icereed
341fc0621a
feat: Add Contributor Covenant banner 2024-10-21 10:25:03 +02:00
Jonas Hess
83088e1e15
Specific error messages for missing environment variables (#21) 2024-10-21 09:56:49 +02:00
Icereed
d1e990ff4b
Fix GH Action for PRs from forks (#23) 2024-10-21 09:50:03 +02:00
Dominik Schröter
8b28edb4f7 feat: Add CODE_OF_CONDUCT.md and CONTRIBUTING.md files 2024-10-20 11:18:17 +02:00
Icereed
66e0029be5
Add GitHub Star History 2024-10-16 16:17:41 +02:00
Icereed
951ef8996c
Merge pull request #15 from icereed/custom-prompts
Add Customizable Server-Side Prompts and Fix Tag Pagination
2024-10-16 15:03:59 +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
Icereed
31f0e81465
Merge pull request #11 from icereed/redesign-tags-titles
Redesign
2024-10-07 22:16:06 +02:00
Dominik Schröter
b47f062730 Introduce dark mode 2024-10-07 22:14:05 +02:00
Dominik Schröter
cc04527e36 Enhance drop shadow of cards 2024-10-07 21:38:34 +02:00
Dominik Schröter
ddcb245925 Redesign suggestion card 2024-10-07 21:27:47 +02:00
Dominik Schröter
aa67b2443a Able to apply empty tags 2024-10-07 20:51:28 +02:00
Dominik Schröter
a069768f45 Refactor Web-App 2024-10-07 15:38:03 +02:00
Dominik Schröter
51bf716854 Redesign for optional titles or tags 2024-10-07 13:50:01 +02:00
Icereed
4776486fab
Add banner with screenshot to Readme (#7) 2024-10-04 14:26:56 +02:00
Dominik Schröter
fcbc392e67 Refactor Docker image tagging logic 2024-10-04 14:03:24 +02:00
Icereed
199e1413ba
Add GitHub Actions workflow for building and pushing Docker images (#6)
* Add GitHub Actions workflow for caching npm dependencies and building and pushing Docker images
2024-10-04 13:35:06 +02:00
Icereed
c7b5c6a060
Enhance UX for tag selection (#5)
Fixes #1
2024-10-04 13:05:02 +02:00
Icereed
e87d80e5bf
Update README.md 2024-09-27 21:41:48 +02:00
Dominik Schröter
960ceb090f Document OLLAMA_HOST 2024-09-24 09:20:40 +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
47275e277a Refactor Dockerfile to remove unnecessary chmod command 2024-09-23 15:21:47 +02:00
Icereed
6940ab47fe Cleanup 2024-09-23 15:17:00 +02:00
Dominik Schröter
833bd9b1b7 Publish paperless-gpt 2024-09-23 14:59:50 +02:00