cognita
ModelFreeRAG (Retrieval Augmented Generation) Framework for building modular, open source applications for production by TrueFoundry
Capabilities12 decomposed
modular rag codebase organization with api-driven architecture
Medium confidenceProvides a structured framework that organizes RAG components (data sources, indexing, retrieval, LLM integration) into discrete, independently deployable modules with FastAPI-based REST endpoints. Uses a layered architecture where each component (Model Gateway, Vector DB, Metadata Store, Query Controllers) is loosely coupled and can be extended or replaced without affecting others, enabling teams to move from experimental prototypes to production systems without architectural rewrites.
Unlike monolithic RAG frameworks, Cognita enforces modular separation of concerns through explicit component boundaries (Model Gateway, Vector DB abstraction, Metadata Store, Query Controllers) with FastAPI routing, allowing each layer to be independently tested, versioned, and deployed. Uses LangChain/LlamaIndex under the hood but adds organizational scaffolding that prevents prototype code from becoming unmaintainable production systems.
Provides more structured organization than raw LangChain/LlamaIndex while remaining more flexible than opinionated platforms like Verba or Vectara, making it ideal for teams that need production-grade architecture without vendor lock-in.
incremental document indexing with change detection
Medium confidenceImplements a stateful indexing pipeline that compares the current state of data sources against the Vector Database to identify newly added, updated, and deleted documents, then selectively re-indexes only changed files. The system maintains metadata about each indexing run (status, timestamps, file hashes) in a Metadata Store, enabling efficient incremental updates without full re-indexing. Supports multiple data source types (local directories, URLs, GitHub repos, TrueFoundry artifacts) through an extensible loader interface.
Implements state-based change detection by comparing Vector DB state with data source state using file hashes and timestamps, rather than re-processing all documents. Maintains detailed indexing run history in Metadata Store (status, file counts, error logs), enabling reproducible indexing and debugging of failed documents without full re-index.
More efficient than LangChain's basic indexing (which typically re-processes all documents) and more transparent than black-box indexing services, providing visibility into what changed and why through detailed run metadata.
production deployment with docker and cloud platform support
Medium confidenceProvides Docker Compose configuration and cloud deployment templates (TrueFoundry YAML) for deploying Cognita to production environments. Includes containerized backend (FastAPI), frontend (React), and supporting services (Vector DB, Metadata Store). Deployment configuration is externalized through environment variables and YAML files, enabling environment-specific customization (dev, staging, production) without code changes. Supports scaling through container orchestration platforms.
Provides both Docker Compose (for local/development deployment) and TrueFoundry YAML (for cloud deployment) configurations, with externalized environment-specific settings through environment variables and YAML files. Enables reproducible deployments across environments without code changes.
More flexible than platform-specific deployments (supporting Docker, Kubernetes, and TrueFoundry) while more structured than manual deployment, providing production-ready configurations that can be customized for different environments.
extensible architecture for custom components and strategies
Medium confidenceEnables developers to extend Cognita by implementing custom classes that inherit from base abstractions: custom Parsers for new document formats, custom DataSources for new data origins, custom QueryControllers for different retrieval strategies, custom Model providers for new LLM/embedding services. The modular architecture allows these custom components to be registered and used without modifying core Cognita code. Documentation and examples guide developers through the extension process.
Implements a plugin-like architecture where custom components (Parsers, DataSources, QueryControllers, Model providers) inherit from base classes and are registered with the system, allowing extensions without modifying core code. Provides clear extension points and examples for common customization scenarios.
More extensible than monolithic RAG systems while more structured than completely open-ended frameworks, providing clear extension patterns that guide developers while maintaining system coherence.
unified model gateway with multi-provider abstraction
Medium confidenceProvides a single abstraction layer that unifies access to embedding models, LLMs, rerankers, and audio processors across multiple providers (OpenAI, Anthropic, Ollama, Infinity Server, custom providers). The Model Gateway exposes a consistent Python API regardless of underlying provider, allowing applications to switch providers by changing configuration without code changes. Internally routes requests to provider-specific APIs and handles response normalization, error handling, and fallback logic.
Implements a provider-agnostic gateway that normalizes requests and responses across fundamentally different APIs (OpenAI's embedding API vs Ollama's local inference vs Infinity Server's streaming), allowing configuration-driven provider switching without application code changes. Supports embedding, LLM, reranking, and audio models in a single unified interface.
More comprehensive than LangChain's basic provider switching (which requires explicit provider selection in code) and more flexible than platform-specific solutions, enabling true provider agnosticism through configuration-driven routing.
extensible document parsing with format-specific handlers
Medium confidenceProvides a pluggable parser system that handles multiple document formats (PDF, TXT, DOCX, MD, HTML, JSON, etc.) with format-specific extraction logic. Each parser inherits from a base Parser class and implements format-specific chunking, metadata extraction, and content normalization. The system stores parsing configuration per data source in the Metadata Store, allowing different sources to use different parsers and chunk sizes. Supports custom parsers for domain-specific formats through inheritance and registration.
Implements format-specific parsers as pluggable classes that inherit from a base Parser interface, with parsing configuration stored per-data-source in Metadata Store. Allows different data sources to use different parsers and chunk strategies without modifying the indexing pipeline, and supports custom parsers through simple inheritance.
More flexible than LangChain's generic document loaders (which apply uniform chunking) by enabling format-aware and source-aware parsing strategies, while remaining simpler than specialized document processing platforms by focusing on text extraction rather than full document understanding.
semantic search with vector database abstraction
Medium confidenceAbstracts vector database operations behind a unified interface that supports multiple backends (Qdrant, MongoDB, Milvus, Weaviate) for storing and querying embedded document chunks. The system handles vector storage, similarity search, metadata filtering, and collection management through provider-agnostic methods. Queries are executed by converting user questions to embeddings via the Model Gateway, then performing semantic similarity search in the Vector DB, with optional reranking to improve result quality.
Implements a provider-agnostic Vector DB abstraction that normalizes operations across fundamentally different backends (Qdrant's gRPC API, MongoDB's document model, Milvus's distributed architecture), allowing configuration-driven backend switching. Integrates with Model Gateway for embedding generation and supports optional reranking for result quality improvement.
More flexible than direct vector DB usage (which locks you into a specific backend) and more transparent than managed vector search services, providing control over infrastructure while maintaining portability across vector DB providers.
collection-based document organization with metadata management
Medium confidenceOrganizes documents into named collections, each with associated data sources, embedding configuration, and vector DB collection mappings. The Metadata Store maintains collection metadata (name, description, vector DB collection name, embedding model, parsing configuration) and tracks associations between collections and data sources. Collections enable multi-tenant or multi-project document organization within a single Cognita instance, with independent indexing and querying per collection.
Implements collections as first-class entities with independent metadata, data source associations, and embedding configurations stored in a Metadata Store. Enables multi-tenant and multi-project organization within a single Cognita instance without requiring separate deployments or infrastructure.
Simpler than managing separate Cognita instances per project while more flexible than single-collection RAG systems, providing logical isolation and independent configuration without operational overhead.
no-code document management and query ui (docsqa)
Medium confidenceProvides a React-based web interface (DocsQA) for non-technical users to upload documents, manage collections, configure data sources, and query the RAG system without writing code. The UI communicates with the FastAPI backend through REST endpoints, handling file uploads, collection creation, data source registration, and query submission. Supports drag-and-drop document upload, collection browsing, and interactive query results with source attribution.
Provides a complete no-code UI (DocsQA) built in React that abstracts away RAG complexity, enabling non-technical users to upload documents, manage collections, and query the system through a web interface. Communicates with FastAPI backend through REST endpoints, handling file uploads, collection management, and query submission.
More user-friendly than API-only RAG systems while more customizable than fully managed platforms, providing a balance between ease-of-use and flexibility for teams with mixed technical skill levels.
query controller with retrieval and llm integration
Medium confidenceOrchestrates the RAG query pipeline by retrieving relevant documents from the Vector DB via semantic search, optionally reranking results, and passing them to an LLM for answer generation. Query Controllers implement different retrieval strategies (simple similarity search, multi-query expansion, hypothetical document embeddings) and integrate with the Model Gateway for both embedding generation and LLM inference. Supports streaming responses and configurable result ranking/filtering.
Implements pluggable Query Controllers that orchestrate the full RAG pipeline (embedding generation → vector search → optional reranking → LLM inference) with support for different retrieval strategies and streaming responses. Integrates with Model Gateway for both embedding and LLM access, allowing strategy and model changes through configuration.
More modular than monolithic RAG chains (allowing strategy swapping) and more transparent than black-box RAG APIs (showing retrieval results and reasoning), enabling teams to debug and optimize each pipeline stage independently.
data source abstraction with custom loader support
Medium confidenceProvides an extensible interface for connecting to various data sources (local directories, web URLs, GitHub repositories, TrueFoundry artifacts, custom sources) through pluggable loader classes. Each data source loader implements methods to list available documents, download content, and track changes. The system stores data source configuration in the Metadata Store and associates sources with collections. Custom loaders can be implemented by inheriting from a base DataSource class and registering with the system.
Implements data sources as pluggable loader classes that inherit from a base DataSource interface, supporting local files, URLs, GitHub repos, and TrueFoundry artifacts out-of-the-box with extensibility for custom sources. Stores source configuration in Metadata Store and enables change detection without re-downloading entire sources.
More flexible than single-source RAG systems and more extensible than platform-specific connectors, allowing teams to add custom data sources through simple class inheritance without modifying core indexing logic.
metadata store for configuration and state persistence
Medium confidenceProvides a persistent store (SQLite, PostgreSQL, or compatible) that maintains all system configuration and state: collection definitions, data source associations, parsing configurations, embedding model settings, indexing run history, and document metadata. The Metadata Store enables reproducible indexing, audit trails, and state recovery after failures. Queries against the Metadata Store inform indexing decisions (e.g., which documents have changed since last run) and collection management.
Implements a comprehensive Metadata Store that persists not just configuration but also indexing run history, document metadata, and state snapshots, enabling reproducible indexing, audit trails, and failure recovery. Supports multiple database backends (SQLite, PostgreSQL) through a database-agnostic interface.
More comprehensive than simple configuration files (which lack audit trails and state tracking) and more flexible than embedded databases, providing production-grade persistence with support for multiple backends and query-based state management.
Capabilities are decomposed by AI analysis. Each maps to specific user intents and improves with match feedback.
Related Artifactssharing capabilities
Artifacts that share capabilities with cognita, ranked by overlap. Discovered automatically through the match graph.
Context Data
Data Processing & ETL infrastructure for Generative AI...
rag-memory-epf-mcp
MCP server for project-local RAG memory with knowledge graph and multilingual vector search
agentic-rag-for-dummies
A modular Agentic RAG built with LangGraph — learn Retrieval-Augmented Generation Agents in minutes.
Open WebUI
Self-hosted ChatGPT-like UI — supports Ollama/OpenAI, RAG, web search, multi-user, plugins.
Refact – Open-Source AI Agent, Code Generator & Chat for JavaScript, Python, TypeScript, Java, PHP, Go, and more.
Refact.ai is the #1 free open-source AI Agent on the SWE-bench verified leaderboard. It autonomously handles software engineering tasks end to end. It understands large and complex codebases, adapts to your workflow, and connects with the tools developers actually use (including MCP). It tracks your
@kb-labs/mind-engine
Mind engine adapter for KB Labs Mind (RAG, embeddings, vector store integration).
Best For
- ✓teams building production RAG systems who want to avoid monolithic prototype code
- ✓developers migrating RAG experiments from notebooks to deployable applications
- ✓organizations needing to standardize RAG architecture across multiple projects
- ✓teams managing large document collections where full re-indexing is prohibitively expensive
- ✓applications with frequently updated data sources (documentation, knowledge bases, code repositories)
- ✓production systems requiring audit trails and reproducible indexing history
- ✓teams deploying RAG systems to production with Docker/Kubernetes infrastructure
- ✓organizations needing environment-specific configurations (dev vs production)
Known Limitations
- ⚠Requires understanding of RAG concepts and component interactions; not suitable for users unfamiliar with retrieval-augmented generation patterns
- ⚠Modular design adds complexity compared to simple single-file RAG scripts; overhead is justified only for multi-component systems
- ⚠Extensibility requires writing custom classes that inherit from base abstractions; not zero-code for custom components
- ⚠Change detection relies on file hashes or timestamps; may miss semantic changes in documents with identical content
- ⚠Incremental indexing adds complexity to the indexing pipeline; full re-index is simpler for small collections (<1000 documents)
- ⚠Metadata Store must be kept in sync with Vector DB state; inconsistencies can cause duplicate or missed documents
Requirements
Input / Output
UnfragileRank
UnfragileRank is computed from adoption signals, documentation quality, ecosystem connectivity, match graph feedback, and freshness. No artifact can pay for a higher rank.
Repository Details
Last commit: Mar 13, 2026
About
RAG (Retrieval Augmented Generation) Framework for building modular, open source applications for production by TrueFoundry
Categories
Alternatives to cognita
Are you the builder of cognita?
Claim this artifact to get a verified badge, access match analytics, see which intents users search for, and manage your listing.
Get the weekly brief
New tools, rising stars, and what's actually worth your time. No spam.
Data Sources
Looking for something else?
Search →