VOOZH about

URL: https://thenewstack.io/advanced-retrieval-augmented-generation-rag-techniques/

⇱ Advanced Retrieval-Augmented Generation (RAG) Techniques - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2024-10-14 09:00:45
Advanced Retrieval-Augmented Generation (RAG) Techniques
ato,sponsor-zilliz,sponsored-post-contributed,
AI Engineering / Large Language Models

Advanced Retrieval-Augmented Generation (RAG) Techniques

Learn about new advances in generative AI, vector databases and RAG in this talk at All Things Open 2024.
Oct 14th, 2024 9:00am by Tim Spann
👁 Featued image for: Advanced Retrieval-Augmented Generation (RAG) Techniques
Featured image by Getty Images for Unsplash+.
Zilliz sponsored this post.

Retrieval-Augmented Generation (RAG) has experienced a number of advancements in recent years alongside its increasing popularity. In my talk at All Things Open (ATO) 2024 on Oct. 28, I covered a number of the techniques needed to build better RAG. These include chunking, choosing an embedding model and metadata structuring. See below for the video of my presentation.

Considerations for Building a RAG System

One of the most important things when building a RAG system is making it work with the type of data you need. For example, there are many types of text — conversational, documentation, Q&A, lectures and formal documents. You also have to determine exactly what you need from the data: Is it just a dump of all text, or are you looking for specific insights, or only information from embedded charts and graphs?

Just like any other data project, you need to do an analysis to determine what data you are using, how you will ingest it, and what enrichments and transformations are required. Your decisions include cost, size, model license, time to embed data and whether it works with your data specifications.

An incredibly important part of using vector databases and RAG is determining what embedding model to use, from providers like HuggingFace, OpenAI, Google, Meta, PyTorch, Jina AI, Mistral AI or Nomic A. Some models are for dense embeddings such as BAAI/bge-base-en-v1.5, which produces vectors of 768 dimension floating point numbers. There are also sparse embedding models that produce mostly zeros.

You also need to decide which tools to use; many new tools make building RAG less manual, such as LangChain, LlamaIndex, LangChain4J or Spring AI. You can also use AI extract-transform-load (ETL) tools such as DataVolo, Cloudera DataFlow, Airbyte, StreamNative UniConn, Apache Spark, Apache Flink, Ray and Fivetran.

Looking to the Future of RAG

In addition to discussing new advances in the world of RAG, during my ATO talk, I shared some examples of new models, techniques, vector databases and AI advancements that will supercharge the entire concept. These include:

  • Chunking
  • Embedding model options
  • Metadata structuring
  • GraphRAG
  • Multilingual vs. a specific language
  • Multimodal data retrieval
  • Query enhancement
  • Query routing
  • Hierarchical indexing
  • Hybrid retrieval
  • Agentic RAG
  • Self-reflection
  • Query routing
  • Subqueries

I’ll also share a quick overview of a RAG system that uses Milvus, an open source vector database, to combine a retrieval system with a generative model. By adding smart context quickly retrieved from Milvus to your prompt, you can reduce LLM hallucinations, which is so important.

👁 Vector similarity search with RAG architecture

Watch My Presentation

Other Resources

Zilliz is a leading vector database company, offering high-performing and scalable solutions. We’re powered by Milvus, the popular open-source vector database that helps companies from any scale build AI-powered search solutions.
Learn More
TRENDING STORIES
Tim Spann is a Principal Developer Advocate for Zilliz and Milvus. He works with Milvus, Attu, Generative AI, HuggingFace, Python, Java, Apache NiFi, Apache Kafka, Apache Pulsar, Apache Flink, Flink SQL, Apache Spark, Big Data, IoT, Cloud, AI/DL, Machine Learning,...
Read more from Tim Spann
Zilliz sponsored this post.
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: OpenAI.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
👁 Image
Milvus Lite, a lightweight version of the open source vectorDB Milvus, installs easily & integrates with 20+ AI tools.