The Advanced + Agentic RAG Cookbooks
Written by Nikos Vaggalis   
Thursday, 27 February 2025

We take a look at a repository containing a wealth of advanced Retrieval-Augmented Generation (RAG) resources that also includes RAG techniques for the latest trend of Agentic systems.

Although RAG is new in the landscape it's something we've already covered a couple of times, starting with a tutorial by Langchain, see RAG from Scratch. More recently, in Getting Going With RAG, I reported on IBM's RAG Cookbook which provides another inside view and explains that RAG is a technique that:

allows LLMs to amplify the user's query by connecting to external data in real time when generating their output.
This approach is lighter in resources, doesn't need constant updating since it consumes the data at run time and of course the big boon is that it retrieves up to date answers.

 

AthinaAI banner

This RAG Cookbook comes from AthinaAI, a collaborative AI development platform and leverages Athina's open source SDK to evaluate the performance of an LLM. Evaluating RAG applications is important for understanding how well these systems work and effective evaluation helps optimize performance and builds confidence in RAG applications for real-world use.

athinai

The techniques the cookbook describes are split into Advanced RAG techniques and Agentic RAG Techniques which are the AI agent-based implementation of RAG that go beyond simple information retrieval and generation to perform tasks by calling external tools.

The non agentic RAG category covers:

  • Naive RAG
  • Hybrid RAG
  • Hyde RAG
  • Parent Document Retriever
  • RAG fusion
  • Contextual RAG
  • Rewrite Retrieve Read
  • Unstructured RAG

These topics are stacked in order of implementation difficulty, but also by best performance. The same holds true for the Agentic RAG Techniques as well:

  • Basic Agentic RAG
  • Corrective RAG
  • Self RAG
  • Adaptive RAG
  • ReAct RAG

What's different with this cookbook, is that it is purely hands on with annotated code for easy comprehension, rather than the usual contrived material, and offers deep insights. It also adds another step, that of evaluation, which, while crucial in determining how well the RAG pipeline performs, is often skipped.

What's more you don't have to set up anything up beforehand, as every example runs on its own online Colab notebook.
The code is of course Python which interoperates with various libraries and vector stores such as LangChain, Pinecone, Chromadb, Weaviate LangSmith, Qdrant and FAISS.

Highly recommended.

athinaailogo

More Information 

Advanced + Agentic RAG Cookbooks

Related Articles

Getting Going With RAG

RAG from Scratch 

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Sqlime - Αn Online SQLite Playground
28/01/2025

SQLite lives in the browser thanks to WebAssembly. With Sqlime you can run your workload online with no need of setting up anything. On top of that ask questions on your data with AI enabled CLI  [ ... ]



Postman Launches AI Agent Builder
04/02/2025

Postman has launched AI Agent Builder, a tool for the Postman system that uses AI to give developers a way to create intelligent, AI-driven API agents by combining LLMs, APIs, and workflows.


More News

espbook

 

Comments




or email your comment to: comments@i-programmer.info