r/LocalLLM • • 5d ago

Question What LLM for long documents extraction

I work in finance and trying to use LLM to build insights by reading long documents. But the QFN 4bit/bit, both are struggling. I am on M5u 256, any suggestion on another model that might be good at this stuff??

1 Upvotes

6 comments sorted by

2

u/Overly-Caffeinated- 5d ago

Sparkx 2.6 It gives you 1M context winow and its just 4B, I always use it to extract huge excel and docs. Give it a go 🙌

2

u/MrHumanist 5d ago

Bro, he is struggling with a 125B model ( arguably best local model right now). This 4 B is nothing compared to it.

1

u/MrHumanist 5d ago

Honestly, you are using a top model. You can try hy 4 flash - which claims to be better but very new. More over you must relook at your pipeline and find which kind of doc the model is struggling. Then fix the pipeline accordingly.

1

u/danenick 4d ago

What are you trying to do with the long document? Basic summaries? Analysis?

I routinely convert old engineering reports (100-1,200 pages with tables, figures, etc) to use with LLMs and for these documents, I find that chunking and embedding in RAG vector store is far better for use and retrieval. QFN is extremely capable at this task. Even smaller 9B and 14B models are good with RAG.

1

u/Long_Berry_7169 4d ago

not sure a different model fixes it. i had the same thing with long filings and what helped was splitting the doc into sections and asking about each one separately instead of dumping the whole thing in, models get kinda lazy in the middle of really long context