Mintlify ChromaFs: Virtual Filesystem for AI Assistants

Mintlify shares how they built ChromaFs, a virtual filesystem for their documentation assistant, solving the slow startup and high costs of traditional sandbox approaches.

Problem Background

Traditional document RAG can only retrieve matching text chunks, failing when answers span multiple pages or require exact syntax. Agents need to explore documentation like exploring a codebase.

But using real filesystem sandboxes has serious issues:

ChromaFs Solution

Built on Vercel Labs’ just-bash, ChromaFs intercepts UNIX commands (grep, cat, ls, find, cd) and translates them into Chroma database queries:

Performance Comparison

Metric | Sandbox | ChromaFs

P90 Boot Time | ~46 seconds | ~100 milliseconds

Marginal Compute Cost | ~$0.0137/conversation | $0 (reuses existing DB)

Search Mechanism | Linear disk scan | DB Metadata Query

Key Features

ChromaFs now supports 30,000+ conversations daily, providing instant documentation assistant experiences for hundreds of thousands of users.

Read more: https://www.mintlify.com/blog/how-we-built-a-virtual-filesystem-for-our-assistant

← All articles