Repository navigation
How do I tell the underlying model to not produce numbers and fractions in the latex format? #989
Replies: 1 comment
|
Yes, this is fixable from the OCR prompt — but your compose file is missing the volume that makes prompt edits stick. Add this to the volumes:
- ./prompts:/app/promptsCreate the folder next to your compose file and restart. On first run the defaults get copied in. Then open the paperless-gpt web UI, go to Settings, and edit the OCR prompt. Add a line like: Templates reload as soon as you save, so no restart needed to test. If it still slips through, that's the model rather than the prompt. gemma4:e4b is small, and small vision models drift into LaTeX because so much of their training data with fractions was LaTeX. Try a dedicated vision model for To check which stage is doing it, run one document and look at the raw OCR text in paperless before any tagging happens. If the |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I've got paperless-gpt set up like so:
And this seems to be working well but I'm having an issue where the underlying model produces numbers and fractions in the latex format. Instead of
28 ⅜or28 3/8,$28 \frac{3}{8}''$is produced. Can anything be done about this?All reactions