I would strongly advise against people learning based on LangChain. It is abstraction hell, and will set you back thousands of engineers hours the moment you want to do something differently. RAG is actually very simple thing to do; just too much VC money in the space & complexity merchants. Best way to learn is outside of notebooks (the hard parts of RAG is all around the actual product), and use as little framework…
Those were exactly my thoughts.. however I haven’t been able to find much material on how to implement this without relying on LangChain.. do you know of any beginners material I could use to fill my gaps?
Show HN: Open-Source Colab Notebooks to Implement Advanced RAG Techniques
21–29 of 29 posts
Re: Show HN: Open-Source Colab Notebooks to Implement Advanced RAG Techniques
#22Earlier quoted context omitted.
This might help you: https://github.com/langchain-ai/langchain/blob/master/cookbo...
Thank you, this is a mix of OCR and LLM, I was thinking if there might be a library to avoid using that. A better approach will be using Textract as it maintains the flow, such as if you have a table going across multiple pages. Btw, tesseract is not that good in getting accurate data from tables. Use it with caution especially in financial context. I have made an open source tool to show missing data from tesseract…
Re: Show HN: Open-Source Colab Notebooks to Implement Advanced RAG Techniques
#23Thanks for sharing. If you want notebooks that do some of this with local open models: https://github.com/neuml/txtai/tree/master/examples and here: https://gist.github.com/davidmezzetti
Re: Show HN: Open-Source Colab Notebooks to Implement Advanced RAG Techniques
#24I would strongly advise against people learning based on LangChain. It is abstraction hell, and will set you back thousands of engineers hours the moment you want to do something differently. RAG is actually very simple thing to do; just too much VC money in the space & complexity merchants. Best way to learn is outside of notebooks (the hard parts of RAG is all around the actual product), and use as little framework…
My experience with LangChain has been a mixed bag. On the one hand it has been very easy to get up and running quickly. Following their examples actually works!
Trying to go beyond the examples to mix and match concepts was a real challenge because of the abstractions. As with any young framework in a fast moving field the concepts and abstractions seem to be changing quickly, thus examples within the documentation show multiple ways to do something but it isn't clear which is the "right" way.
Re: Show HN: Open-Source Colab Notebooks to Implement Advanced RAG Techniques
#25One of the challenges I have with RAG is excluding table of contents, headers/footers and appendices from PDFs. Is there a tool/technique to achieve this? I’m aware that I can use LLMs to do so, or read all pages and find identical text (header/footer), but I want to keep the page number as part of the metadata to ensure better citation on retrieval.
You’ll need other heuristics for ToC and indices but headers/footers are easy to detect via n-gram deduplication. You’ll want to figure out some rolling logic to handle chapter changes though.
Re: Show HN: Open-Source Colab Notebooks to Implement Advanced RAG Techniques
#26I would strongly advise against people learning based on LangChain. It is abstraction hell, and will set you back thousands of engineers hours the moment you want to do something differently. RAG is actually very simple thing to do; just too much VC money in the space & complexity merchants. Best way to learn is outside of notebooks (the hard parts of RAG is all around the actual product), and use as little framework…
Re: Show HN: Open-Source Colab Notebooks to Implement Advanced RAG Techniques
#27I would strongly advise against people learning based on LangChain. It is abstraction hell, and will set you back thousands of engineers hours the moment you want to do something differently. RAG is actually very simple thing to do; just too much VC money in the space & complexity merchants. Best way to learn is outside of notebooks (the hard parts of RAG is all around the actual product), and use as little framework…
Those were exactly my thoughts.. however I haven’t been able to find much material on how to implement this without relying on LangChain.. do you know of any beginners material I could use to fill my gaps?
RAG section: https://github.com/neuml/txtai?tab=readme-ov-file#retrieval-...
Disclaimer: I'm the primary developer
Re: Show HN: Open-Source Colab Notebooks to Implement Advanced RAG Techniques
#28Earlier quoted context omitted.
it's much more stable now.
Does it still put you in dependency hell though, where you can't add new packages without causing tons of version conflicts?
These usually stem from overly strict constraints in the underlying sdks for the integrations, and in general we've been pretty successful asking for those constraints to be loosened. The main "problem" constraint we've seen in the past has been on httpx. Curious if you've seen others!
Re: Show HN: Open-Source Colab Notebooks to Implement Advanced RAG Techniques
#29Has anyone successfully implemented a language-agnostic approach that can: 1. Capture implicit code relationships without heavy LLM dependency? 2. Scale efficiently for large monorepos while preserving fine-grained semantic links? 3. Handle cross-module dependencies and version evolution?
Current solutions like AST-based analysis + traditional embeddings seem to miss crucial semantic contexts. Curious about others' experiences with hybrid approaches combining static analysis and lightweight ML models.