DEV Community

Cover image for Under the Hood of DocsAI
Harish Kotra (he/him)
Harish Kotra (he/him)

Posted on

Under the Hood of DocsAI

The shift towards AI sidekicks in documentation is undeniable. However, the barrier to entry—setting up vector DBs, managing ingestion, and building an embeddable UI—remains high. DocsAI democratizes this by providing a turn-key solution to turn llms.txt URLs into embeddable agents.

The Problem: Hallucinations and Complexity

Traditional LLMs often bleed their general knowledge into documentation queries. DocsAI uses Agno’s Knowledge base to create a strict "Documentation-Only" mode. Our agents are instructed to ignore their training data when answering grounded questions.

The Tech Stack

  • Backend: FastAPI + Uvicorn. We chose Python for its rich AI ecosystem and FastAPI for its asynchronous performance.
  • RAG Engine: Agno. Agno provides a unified interface for Knowledge, Agents, and Storage.
  • Vector Store: ChromaDB. Every agent gets an isolated collection, preventing cross-tenant data leaks.
  • Frontend: Next.js 14 utilizing Tailwind CSS V4 for a modern, flat-design system (Dark/Light mode).
  • Authentication: Privy. Simple, wallet-less social and email logins.

The "llms.txt" Integration

We leverage the emerging llms.txt standard to quickly parse project structures. DocsAI automatically fetches, indexes, and optimizes these files for vector search.

Multi-Model Ingress
DocsAI supports a "Bring Your Own Model" philosophy:

  • Ollama: For local development and private workloads.
  • Cloud Providers: Native support for OpenAI, Anthropic, and OpenRouter, allowing users to select the best cost/performance ratio for their needs.

Deploying to Production

DocsAI is fully Dockerized. For production deployments on platforms like GCP Cloud Run:

  • Deploy the API container with a persistent Chroma volume.
  • Deploy the Next.js frontend in standalone mode.
  • Inject NEXT_PUBLIC_PRIVY_APP_ID and NEXT_PUBLIC_API_URL via environment variables.

DocsAI bridges the gap between raw documentation and interactive AI. By combining Agno’s RAG capabilities with a production-ready Next.js dashboard, we’ve created a blueprint for high-fidelity documentation assistants.

Example Output 1

Example Output 2

Example Output 3

Source code and contribution guide: https://github.com/harishkotra/DocsAI/

Top comments (0)