Scripts2026年7月25日·1 分钟阅读

Cognita — Open-Source RAG Framework by TrueFoundry

Cognita is an open-source, modular RAG (Retrieval-Augmented Generation) framework developed by TrueFoundry. It provides a production-ready pipeline for ingesting documents, chunking, embedding, indexing, and querying with LLMs, with a clean UI and API for managing knowledge bases.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
Cognita Overview
直接安装命令
npx -y tokrepo@latest install 33165ae2-87c1-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

Cognita is a production-grade, open-source RAG framework built by TrueFoundry. It organizes the RAG pipeline into modular, swappable components — data loaders, parsers, chunkers, embedders, vector stores, retrievers, and generators — so teams can build and iterate on document Q&A systems without rewriting boilerplate code.

What Cognita Does

  • Ingests documents from local files, URLs, GitHub repos, and cloud storage
  • Parses PDFs, DOCX, HTML, and markdown with configurable chunking strategies
  • Embeds text chunks using OpenAI, Cohere, or open-source embedding models
  • Stores vectors in Qdrant, Weaviate, or SingleStore for fast similarity search
  • Provides a chat interface and REST API for querying knowledge bases with any LLM

Architecture Overview

Cognita follows a modular pipeline architecture with clearly defined interfaces for each stage: DataSource, Parser, Chunker, Embedder, VectorStore, Retriever, and Generator. Each component can be swapped independently. The backend is built with FastAPI, and the frontend uses a React-based UI. An async job queue handles document ingestion and indexing in the background.

Self-Hosting & Configuration

  • Deploy with Docker Compose including the backend, frontend, and a vector database
  • Configure LLM providers (OpenAI, Anthropic, or local models) via environment variables
  • Add custom data sources by implementing the DataSource interface
  • Tune chunking parameters (size, overlap, strategy) per collection
  • Scale ingestion workers independently from the query serving layer

Key Features

  • Modular design lets you swap any pipeline component without changing the rest
  • Built-in evaluation tools to measure retrieval quality and answer accuracy
  • Supports hybrid search combining dense vectors with keyword-based retrieval
  • Multi-collection management with per-collection embedding and chunking configs
  • Incremental ingestion avoids re-processing unchanged documents

Comparison with Similar Tools

  • LangChain — general LLM framework; Cognita focuses specifically on production RAG pipelines
  • LlamaIndex — data framework for LLMs; Cognita adds a managed UI and background job processing
  • RAGFlow — deep document understanding; Cognita emphasizes modularity and component swapping
  • Haystack — search-oriented AI framework; Cognita provides a ready-to-deploy RAG application
  • Verba — Weaviate-specific RAG app; Cognita is vector-store agnostic

FAQ

Q: Which vector databases are supported? A: Qdrant and Weaviate are supported out of the box. Additional stores can be added by implementing the VectorStore interface.

Q: Can I use local LLMs instead of OpenAI? A: Yes. Configure any OpenAI-compatible API endpoint, including Ollama or vLLM, as the generator backend.

Q: How does it handle large document collections? A: Cognita uses background workers for async ingestion and supports incremental updates, making it suitable for collections with thousands of documents.

Q: Is it suitable for production use? A: Yes. Cognita is designed with production deployment in mind, including Docker orchestration, API authentication, and scalable architecture.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产