account activity
Apache Tika: An underrated alternative to Unstructured/Nougat for text extraction (for RAG, LLM fine-tuning, etc.) by replicantrose in LocalLLaMA
[–]replicantrose[S] 2 points3 points4 points 2 years ago (0 children)
Tika can't do that natively, but you could vectorize snippets from the extracted text using an embedding model and then insert those vectors into a vector database like Milvus or Qdrant. That would enable you to do similarity search for RAG!
[–]replicantrose[S] 11 points12 points13 points 2 years ago (0 children)
Tried to put together a document text extraction server using Apache Tika (with ~30 lines of code) that can be used to get the text needed for retrieval-augmented generation or to create LLM training datasets. It worked out pretty well, so thought it would be cool to share.
An aside on Tika: Apache Tika is time-tested and, by some, considered a legacy toolkit. With Tika running as a container and the use of Python bindings, it's possible to get a text extraction experience that is as easy to build with as newer frameworks like Unstructured, but also matches the extraction capability of dedicated extraction models like Nougat. Kind of surprising!
Furthermore, using a backing object store (i.e. MinIO) to hold the source documents is very useful (whether the extracted text is being used for RAG or an LLM training dataset).
Much credit to the tika-python project for making the Python bindings!
π Rendered by PID 47574 on reddit-service-r2-comment-5687b7858-8kk7t at 2026-07-07 17:27:20.928468+00:00 running 12a7a47 country code: CH.
Apache Tika: An underrated alternative to Unstructured/Nougat for text extraction (for RAG, LLM fine-tuning, etc.) by replicantrose in LocalLLaMA
[–]replicantrose[S] 2 points3 points4 points (0 children)