Why This RAG Setup Is a Game Changer for AI Agents (n8n + Vectorize)

AI WorkshopAbout 5 min readJun 26, 2025Watch original
THE SUMMARYAI-generated

Key Concepts

  • RAG (Retrieval-Augmented Generation) AI Agent: An AI system that combines information retrieval with text generation to provide more accurate and context-aware responses.
  • Embedding Model: A machine learning model that converts text into numerical vectors (embeddings) representing the semantic meaning of the text.
  • Chunking Strategy: The method of dividing documents into smaller segments (chunks) for efficient processing and retrieval by a vector database.
  • Vector Database: A database that stores data as vectors, enabling efficient similarity searches based on semantic meaning.
  • Rag Evaluation: The process of assessing the performance of different embedding models and chunking strategies to optimize the accuracy and relevance of RAG AI agents.
  • Recall: A metric used in information retrieval to measure the ability of a system to retrieve all relevant documents from a dataset.

Rag Evaluation with Vectoriz.io

The Problem: Choosing the Right Embedding Model and Chunking Strategy

  • Building a RAG AI agent requires selecting an appropriate embedding model and chunking strategy for the documents being processed.
  • Incorrect choices can lead to inaccurate search results and poor performance of the RAG agent.
  • Determining the optimal configuration often involves guesswork and experimentation.

Vectoriz.io: A Solution for Rag Evaluation

  • Vectoriz.io is a platform that helps automate the rag evaluation process, eliminating the guesswork involved in selecting embedding models and chunking strategies.
  • It allows users to upload their documents and evaluate different configurations to determine the best settings for their specific use case.
  • The platform offers a free tier that supports up to 1500 pages of documents, making it accessible for personal projects and initial evaluations.

Step-by-Step Guide to Using Vectoriz.io

  1. Create a Free Account: Sign up for a free account on platform.vectoriz.io.
  2. Navigate to Rag Evaluation: On the left-hand side, click on the "Rag Evaluation" section.
  3. Create a New Evaluation: Click on "New Rag Evaluation" to start a new evaluation process.
  4. Upload Documents: Upload the documents you want to evaluate. The platform supports various file formats, including PDFs.
  5. Select Vectorization Strategy: Choose either the default strategy (which uses four pre-defined models) or customize the settings.
  6. Configure Evaluation Criteria (Custom Strategy):
    • Select a vector database (e.g., Pinecone).
    • Choose different embedding models (e.g., OpenAI ADA v2, Voyage AI, Mistral ME 5 small).
    • Adjust the chunk size to evaluate different chunking strategies.
    • Configure additional parameters such as the number of chunks to return and the chunking strategy (paragraph, fixed, sentence, etc.).
    • Select the chunking model (Fast Extractor, Iris, Mixed).
    • Adjust chunking overlap.
  7. Start Rag Evaluation: Click on "Start Rag Evaluation" to initiate the evaluation process.
  8. Review Results: Once the evaluation is complete, the platform will display the results, indicating the best-performing embedding model and chunking strategy based on the evaluation criteria.

Example Use Case: Evaluating Crypto White Papers

  • The video demonstrates evaluating three documents: Ethereum white paper, Solana white paper, and a Fidelity Bitcoin report.
  • The Fidelity report is highlighted as a complex document containing charts, images, tables, and text, requiring a robust embedding model for accurate information retrieval.
  • The evaluation process involves comparing different embedding models and chunking sizes to determine the optimal configuration for these documents.

Understanding Embedding Models and Chunking Strategies

  • Embedding Models:
    • OpenAI ADA v2, Embedding V3 Large, Embedding V3 Small: Different models offered by OpenAI with varying performance and cost.
    • Voyage AI: An alternative embedding model.
    • Mistral ME 5 Small: Another embedding model option.
  • Chunking Strategies:
    • Chunk Size: The size of each document segment (chunk) in tokens or characters.
    • Chunk Overlap: The amount of overlap between adjacent chunks, which helps maintain context.
    • Chunking Models:
      • Fast Extractor: A simple and fast extractor for text documents.
      • Iris: A fine-tuned vision model for advanced extraction, particularly effective for documents with images and visuals.
      • Mixed: A combination of Fast Extractor for text and Iris for media.

How Vectoriz.io Evaluates Models

  • The platform generates questions based on the content of the uploaded documents.
  • It then uses these questions to query the vector database with different embedding models and chunking strategies.
  • The platform evaluates the accuracy and relevance of the responses to determine the best-performing configuration.
  • The results are presented in a clear and concise manner, highlighting the winning model and chunking strategy.

Applying the Results in Nanden

  • Once the rag evaluation is complete, the user can apply the recommended embedding model and chunking strategy in their Nanden workflow.
  • This ensures that the RAG AI agent is configured optimally for the specific documents being processed, leading to more accurate and relevant search results.
  • For example, if Vectoriz.io recommends OpenAI V3 Large with a chunk size of 500 and a chunk overlap of 50, the user can configure their Nanden workflow accordingly.

Conclusion

  • Vectoriz.io is a valuable tool for anyone building RAG AI agents, as it simplifies the process of selecting the right embedding model and chunking strategy.
  • By automating the rag evaluation process, Vectoriz.io helps users optimize the accuracy and relevance of their RAG agents, leading to improved performance and user satisfaction.
  • The platform's free tier makes it accessible for personal projects and initial evaluations, while paid plans offer additional features and capacity for larger-scale deployments.

Notable Quotes

  • "Rag evaluations allow you to better understand the embedding models and chunking strategies that will produce the most relevant accurate results for your vector indexes." - Describing the purpose of rag evaluation in Vectoriz.io.
  • Referring to the Iris model: "vectorize iris This is their fine-tuned model for advanced extraction because it has it has the ability to cuz it's a vision model So therefore it's really good at if you have a document or a bunch of documents that has a lot of pictures and images and uh figures that it needs to properly understand then this vectorize or this iris is the best model to go with."

Technical Terms Explained

  • Tokens: Individual units of text, such as words or subwords, used in natural language processing.
  • Vectorization: The process of converting text into numerical vectors that represent its semantic meaning.
  • Recall: A metric used in information retrieval to measure the ability of a system to retrieve all relevant documents from a dataset.

AI summaries can miss context or contain errors. Check important details against the original video.

Go a little deeper.

Have a question about this video? Load its transcript to open the video chat.