NeumAI: Scalable Vector Embedding and RAG Pipeline Framework

Jul 31, 2025

Introduction

Building a Retrieval-Augmented Generation (RAG) system often starts with a simple demo using a few PDFs, but scaling that to billions of records introduces massive engineering hurdles. Most developers struggle with the “humdrum” problem of reliably getting production data into a vector store without sacrificing performance or data freshness. NeumAI, a Python-based framework with over 800 GitHub stars, simplifies this process by treating RAG as a scalable data pipeline. It replaces fragmented scripts with a cohesive system for managing the creation and synchronization of vector embeddings at scale.

What Is NeumAI?

NeumAI is a data platform and framework that helps developers leverage their data to contextualize Large Language Models (LLMs) through Retrieval Augmented Generation (RAG). It provides a comprehensive solution for extracting data from sources like document storage and NoSQL databases, processing that content into vector embeddings, and ingesting those embeddings into vector databases for similarity search.

Maintained as an open-source project under the MIT License, NeumAI is written primarily in Python and is designed to reduce the time spent integrating disparate services like data connectors, embedding models, and vector stores. It allows developers to move from local prototyping to a high-throughput distributed architecture capable of handling massive datasets.

Why NeumAI Matters

The primary gap NeumAI fills is the transition from “demo RAG” to “production RAG.” While many libraries focus on the prompt or the retrieval logic, NeumAI focuses on the ingestion pipeline. In production, data is rarely static; it changes, is updated, or is deleted. NeumAI provides real-time synchronization to ensure that the vector store remains a faithful representation of the source data.

For engineers, this means no longer having to manually write retry mechanisms, parallelization logic, or custom synchronization scripts. By defining a clear vocabulary of connectors, sources, and sinks, NeumAI turns the complex task of embedding generation into a manageable data engineering workflow. This focus on the “ingestion at scale” problem makes it a critical tool for teams building enterprise-grade AI applications that rely on fresh, accurate data.

Key Features

  • High-Throughput Distributed Architecture: NeumAI is built to handle billions of data points by allowing high degrees of parallelization to optimize the generation and ingestion of embeddings.
  • Built-in Data Connectors: The framework includes native support for common data sources such as Postgres, S3, Azure Blob, SharePoint, and Websites, reducing the need for custom scraping or API glue code.
  • Real-Time Synchronization: It ensures that changes in the source data are reflected in the vector store in real-time, preventing the “stale data” problem common in static RAG pipelines.
  • Customizable Pre-processing: Developers can define specific loading, chunking, and selecting strategies to refine how data is transformed before it is vectorized.
  • Hybrid Retrieval Support: By automatically augmenting and tracking metadata, NeumAI supports rich retrieval experiences that combine semantic search with metadata filtering.
  • Semantic Helpers: Through the neumai-tools package, it offers LLM-based tools to generate semantic strategies for chunking code and selecting metadata fields for structured data.
  • Interop Helpers: It provides utilities to translate interfaces between NeumAI and other popular frameworks like LangChain and LlamaIndex.
  • Pipeline Collections: This feature allows developers to treat a group of pipelines as a single entity for unified search and retrieval actions.
  • Dataset Evaluation: NeumAI allows the creation of query-and-expected-output datasets to benchmark and iterate on pipeline performance.

How NeumAI Compares

NeumAI occupies a unique space in the RAG ecosystem. While orchestration frameworks like LangChain focus on the “chaining” of LLM calls, NeumAI focuses on the “plumbing” of the data. It is essentially a lightweight, specialized data pipeline for RAG.

Feature NeumAI LangChain LlamaIndex
Primary Focus Data Ingestion & Sync LLM Orchestration Data Indexing & Retrieval
Scaling Strategy Distributed Parallelization Modular Components Advanced Indexing
Data Freshness Real-time Sync Manual/Custom Index Updates
Complexity Low (Pipeline-centric) High (General Purpose) Medium (Index-centric)

The tradeoff is that NeumAI is more tightly scoped. It does not attempt to be a general-purpose agent framework. Instead, it ensures that the vector store is perfectly synchronized with the source data, which is the most common failure point in production RAG. For teams already using LangChain or LlamaIndex for the retrieval and generation phase, NeumAI can act as the specialized ingestion layer that feeds those frameworks.

Getting Started: Installation

NeumAI provides two primary ways to get started: using the core SDK for local development or leveraging the NeumAI Cloud for large-scale distributed processing.

Local Installation via Pip

To install the core NeumAI library for building and running pipelines locally, use the following command:

pip install neumai

Installing Helper Tools

For experimental pre-processing tools, semantic chunking helpers, and interop utilities, install the neumai-tools package:

pip install neumai-tools

Prerequisites

NeumAI requires Python 3.10 or higher. You will also need API keys for your chosen embedding provider (e.g., OpenAI) and access to your target vector database (e.g., Weaviate, Supabase).

How to Use NeumAI

The core workflow in NeumAI revolves around the concept of a Pipeline. A pipeline consists of three main components: a Source (where data comes from), an Embed Connector (how data is vectorized), and a Sink (where vectors are stored).

To start, you configure a data connector to pull information from a source like a website or a database. You then pair this with a loader (to parse the content) and a chunker (to split the text into manageable pieces). This combination forms the SourceConnector. Once configured, the pipeline runs, extracting the data, processing it through the embedding model, and sinking it into the vector database.

After the pipeline has run, you can use the NeumAI SDK to perform semantic searches over the ingested data, which can then be used as context for an LLM prompt in a RAG application.

Code Examples

The following examples demonstrate how to set up a basic ingestion pipeline using the NeumAI SDK.

Example 1: Simple Website Ingestion

This example shows how to scrape a website, chunk the content using a recursive chunker, and prepare it for embedding.

from neumai.DataConnectors import WebsiteConnector
from neumai.Shared import Selector
from neumai.Loaders.HTMLLoader import HTMLLoader
from neumai.Chunkers.RecursiveChunker import RecursiveChunker
from neumai.Sources import SourceConnector

# Configure the website source
website_connector = WebsiteConnector(
    url = "https://www.neum.ai/post/retrieval-augmented-generation-at-scale",
    selector = Selector(to_metadata=['url'])
)

# Configure the source connector with loader and chunker
source = SourceConnector(
    data_connector = website_connector,
    loader = HTMLLoader(),
    chunker = RecursiveChunker()
)

In this snippet, the WebsiteConnector pulls the HTML, the HTMLLoader parses it, and the RecursiveChunker ensures the text is split into semantically meaningful chunks.

Example 2: Using Semantic Helpers for Chunking

Using the neumai-tools package, you can leverage LLMs to determine the best chunking strategy for your specific data type.

from neumai_tools.SemanticHelpers import ChunkGenerator

chunk_generator = ChunkGenerator()
chunks = chunk_generator.generate_chunks(data)

This allows the framework to dynamically generate chunking code based on the structure of the data, rather than relying on a fixed token count.

Real-World Use Cases

NeumAI is most effective when the data volume is large and the data source is dynamic.

  • Enterprise Knowledge Bases: A company with thousands of internal documents across SharePoint and S3 buckets can use NeumAI to maintain a synchronized vector store that allows employees to query internal policies without the data becoming stale.
  • Dynamic Product Catalogs: E-commerce platforms with millions of SKU descriptions that change frequently can use NeumAI’s real-time synchronization to ensure that the AI chatbot’s product recommendations are based on the latest pricing and availability.
  • Dynamic Documentation Sites: Technical documentation that is updated daily via Git commits can be automatically re-indexed by NeumAI, ensuring that the AI assistant provides the latest API references to developers.
  • SaaS Application Context: A SaaS provider can use NeumAI to silo data into separate pipelines for each customer, ensuring strict data isolation while providing a high-performance semantic search experience for each user.

Contributing to NeumAI

NeumAI is an open-source project and welcomes contributions from the community. Developers can contribute by adding new data connectors, improving the existing chunking strategies, or reporting bugs through GitHub Issues.

To contribute, fork the repository, create a feature branch, and submit a pull request. The project follows standard GitHub flow. While there is no extensive CONTRIBUTING.md, the maintainers encourage the use of of the neumai-tools package for experimental features, which is where most of the new pre-processing utilities are developed.

Community and Support

NeumAI has a growing community of AI engineers. Support and discussion can be found through the following official channels:

  • GitHub Repository: The primary hub for issue tracking and source code.
  • Discord: The official community server for real-time support and networking with other RAG developers.
  • Documentation: The official documentation site provides quickstart guides and technical references.
  • Twitter/X: The project maintainers frequently share updates and architectural insights on the platform.

Conclusion

NeumAI is the right choice for developers who have moved past the prototyping phase of RAG and are facing the challenges of data ingestion at scale. By treating the embedding process as a managed pipeline, it removes the engineering overhead of parallelization and synchronization. It is not a replacement for orchestration frameworks like LangChain, but rather a specialized layer that ensures the foundation of any RAG system—the data—is accurate, fresh, and scalable.

If you are building an application that requires billions of vectors or real-time updates from production databases, NeumAI is a powerful tool to integrate into your stack. Star the repo, try the quickstart, and join the community to start building production-ready RAG pipelines.

What is NeumAI and what problem does it solve?

NeumAI is a framework for managing the creation and synchronization of vector embeddings at scale. It solves the problem of “ingestion at scale,” ensuring that massive amounts of production data are reliably moved into vector stores while remaining synchronized with the source.

How do I install NeumAI?

You can install the core library using pip install neumai and the experimental helper tools using pip install neumai-tools. Both require Python 3.10 or higher.

How does NeumAI compare to LangChain?

While LangChain is a general-purpose LLM orchestration framework, NeumAI is a specialized data pipeline for RAG ingestion. NeumAI focuses on the high-throughput synchronization of data from sources to vector stores, whereas LangChain focuses on the logic of the RAG chain itself.

Can I use NeumAI for real-time data updates?

Yes, NeumAI provides real-time synchronization of data sources to ensure that your vector embeddings are always up-to-date, which is preventing the stale data problem in production RAG systems.

What vector databases does NeumAI support?

NeumAI supports a variety of sink connectors, including popular vector databases like Weaviate and Supabase, allowing you to store your embeddings in your preferred infrastructure.

What is the difference between neumai and neumai-tools?

The neumai package contains the core connectors and pipeline constructs, while neumai-tools contains experimental helper tools for semantic chunking and interop utilities for other AI frameworks.

Is NeumAI open source?

NeumAI is licensed under the MIT License, allowing for both personal and commercial use of the framework.