Blockify-agentic-data-optimization replaces naive RAG chunking

Blockify introduces IdeaBlocks to reduce data size by 40X and improve vector search accuracy by 2.29X through agentic data distillation.

cpaua3 min323

Iternal Technologies Partners released iternal-technologies-partners/blockify-agentic-data-optimizationgithub.com/iternal-technologies-partners/blockify-agentic-data-optimization, an open-source framework that replaces traditional fixed-size chunking in Retrieval-Augmented Generation (RAG) with structured knowledge units. This approach reduces the size of enterprise data corpora by 40X, improves token efficiency by 3.09X, and increases vector search accuracy by 2.29X.

Replacing fixed chunks with IdeaBlocks

Traditional RAG pipelines often break documents mid-sentence, leading to hallucinations and inflated token costs. Blockify solves this by transforming raw content into IdeaBlocks, which are semantically complete XML units. Each block contains a name, a critical question, a trusted answer, tags, entities, and keywords.

The system uses a patented ingestion and distillation pipeline to ensure knowledge remains coherent. Similar blocks are clustered using embeddings and Locality-Sensitive Hashing (LSH), then merged by a distillation LLM to remove duplicates while keeping distinct facts. This process allows the system to compress datasets to approximately 2.5% of their original size while maintaining over 99% information fidelity.

Integration and deployment options

The framework integrates with LlamaIndex, LangChain, Milvus, Elastic, Supabase, and Cloudflare. It is provided as a FastAPI microservice for deduplication and merging, and includes a specific skill package for AI agent management via Claude Code.

Developers can deploy the distillation service using Docker:

bash
cd blockify-distillation-service
cp .env.example .env
docker-compose up -d

For Kubernetes environments, the project provides a Helm chart with support for Prometheus ServiceMonitor, Ingress, and Secret management.

API models for data processing

The Blockify API uses an OpenAI-compatible chat completions endpoint with three specialized models. The ingest model converts raw text into IdeaBlocks, while the distill model handles the merging and deduplication of those blocks. A third model, technical-ingest, is designed for ordered content such as procedural manuals.

Users can test the ingestion process with a curl command:

bash
curl --location 'https://api.blockify.ai/v1/chat/completions' \ 
 --header 'Authorization: Bearer YOUR_API_KEY' \ 
 --header 'Content-Type: application/json' \ 
 --data '{
 "model": "ingest",
 "messages": [{"role": "user", "content": "Your text to process here"}],
 "max_tokens": 8000,
 "temperature": 0.5
}'

Enterprise capabilities vs open source

While the open-source repository provides the core distillation service and API access, the Enterprise edition adds automated ingestion pipelines for SharePoint, Confluence, S3, and Git. It also includes a full suite of parsers for PDF, DOCX, and PPTX files, along with role-based access control and audit logging.

The Enterprise version is designed for regulated workloads and air-gapped deployments via AirgapAI, providing a governance dashboard for content lifecycle management. This complements other open-source AI frameworks by focusing specifically on the data ingestion and distillation layer of the RAG pipeline.

Sources

iternal-technologies-partners/blockify-agentic-data-optimizationgithub.com/iternal-technologies-partners/blockify-agentic-data-optimization

x.com — content not available without authorization

Share

Author

cpaua

VibeCode blog admin. Writing about vibe coding, AI and open source.

Related news

Comments

To leave a comment, log in
Loading...

Weekly digest

The best of vibe coding, AI agents and open source — once a week, no spam.