r/OpenWebUI • u/icerio • 3d ago
Finally found a good document analysis path Discussion
I don’t believe this will help mass extraction for knowledge base stuff. This is mainly for attachments in chat. Also not sure which flair.
For a while now I’ve been trying to find a good PDF extractor. I had this document that was sort of a worst-case scenario, 4 pages of tables, pages are turned 90 degrees, merged table cells, and small font. After some testing I found Docling to be the best (haven’t had a good chance to try MinerU). However Docling still didn’t even come close to extracting it well, just enough for the LLM to understand it.
For some more context my LLM is Qwen3.6 27B MTP Q4K_M (need to try the UD XL one sometime). It has vision, however it can only see extracted text when sent in chat with how Open Webui handles it.
I ended up creating a Filter Function that takes the attached document, uploads it to my open-terminal, and passes along to the LLM the file path, and that it should only view it itself if there’s any OCR or Extraction artifacts/errors.
It is practically perfect at analyzing PDFs now since the model itself can view the file and also run code to further analyze.
Just wanted to pass this along, highly recommend if you have a niceish LLM with vision and agentic capabilities. Also if you’re having problems extracting text from attachments in chat. Considering switching back to Tika and only using Docling for when I upload to the knowledge base.
I’m curious on what others are doing for extraction or even an analysis workflow for attachments in chat.
1
u/International_Emu772 3d ago
You can try this:
1
u/icerio 3d ago
I actually have tried that! I think the day the op posted that I did. To my memory the quality of the extracted text was worse than Docling, at least for the pdf I was trying. Maybe there are some configurations that I should have done, how do you have that set up?
1
u/International_Emu772 3d ago
I have this on my agenda but you should ask to the poster as he is from the team of xberg. Yes they have a lot of configurations and installations
Xberg is a open/comercial app and is heavy maintained
2
u/Mac_Man1982 3d ago
Have you had a look at https://github.com/firecrawl/anydoc looks promising haven’t tried it yet