cognita
by
truefoundry

Description: RAG (Retrieval Augmented Generation) Framework for building modular, open source applications for production by TrueFoundry

View on GitHub ↗

Summary Information

Updated 2 hours ago
Added to GitGenius on May 27th, 2024
Created on July 26th, 2023
Open Issues & Pull Requests: 22 (+0)
Number of forks: 390
Total Stargazers: 4,412 (+0)
Total Subscribers: 74 (+0)

Issue Activity (beta)

Open issues: 14
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 466 days
Stale 30+ days: 14
Stale 90+ days: 14

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • enhancement (10)
  • fixed-awaiting-confirmation (6)
  • bug (2)
  • good first issue (2)
  • vector db integration (2)
  • help wanted (1)
  • in-progress (1)
  • llm integration (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Repository Insights (GitGenius)

Median issue/PR response: 10.2 hours
Mean response time: 44.8 hours
90th percentile: 5.4 days
Tracked items: 49

Most active contributors

Detailed Description

Cognita is an open-source Retrieval Augmented Generation framework developed by TrueFoundry designed to help teams build modular, production-ready RAG applications. Written primarily in Python with TypeScript components, the framework addresses a critical gap between rapid prototyping in Jupyter notebooks and the requirements of deploying RAG systems at scale. While the project is no longer actively maintained according to its README, it represents a significant effort to standardize RAG application architecture and deployment patterns.

The core motivation behind Cognita stems from the challenges that arise when moving RAG systems from experimental notebooks to production environments. These challenges include abstracting chunking and embedding jobs into schedulable or event-triggered processes, wrapping query logic in scalable API servers, managing separate deployments for LLM and embedding models, and handling vector database infrastructure at scale. Cognita provides organizational structure and tooling to address each of these concerns systematically, allowing developers to experiment locally while maintaining production-ready architecture.

The framework provides several key architectural components. Data Sources represent the origins of documents to be indexed, including S3 buckets, databases, TrueFoundry Artifacts, or local storage. A Metadata Store tracks collection information including collection names, associated vector database collections, linked data sources, parsing configurations, and embedding model specifications. The system supports incremental indexing by default, reducing computational burden by tracking already-indexed documents and preventing redundant processing.

Cognita's feature set includes support for multiple document retrieval strategies employing similarity search, query decomposition, and document reranking. The framework integrates with state-of-the-art open-source embeddings and reranking models from providers like mixedbread-ai. It supports local LLM usage through Ollama and includes specialized parsers for handling diverse content types. Notably, the framework added AudioParser and VideoParser capabilities in September 2024, along with a MultimodalParser for vision-based document understanding using GPT-4. Recent updates migrated the codebase to Pydantic v2 and introduced a model gateway for centralized model and configuration management.

The framework emphasizes accessibility through both API-driven architecture and a no-code UI that enables non-technical users to upload documents and perform question-answering without code modifications. Docker Compose deployment is the recommended approach for local development, automatically provisioning Postgres for metadata storage, Qdrant for vector database functionality, and optional services like Ollama and Infinity Server for embeddings and reranking.

According to GitGenius activity tracking, the repository has maintained consistent engagement with a median issue and pull request response latency of 10.2 hours across 49 tracked items. The most active contributors include chiragjn with 65 events, S1LV3RJ1NX with 56 events, and mnvsk97 with 29 events. Enhancement requests represent the most common issue type with 10 tracked items, followed by vector database integration concerns. The project shares contributors with major repositories including Microsoft's VSCode and TypeScript implementations, as well as the Rust language project, indicating cross-pollination with significant open-source ecosystems.

The framework supports extensive customization across dataloaders, embedders, parsers, vector databases, and query controllers, allowing teams to adapt Cognita to domain-specific requirements while maintaining the underlying organizational structure. This modularity combined with production deployment capabilities positions Cognita as a bridge between experimental RAG development and enterprise-grade system deployment.

cognita
by
truefoundrytruefoundry/cognita

Repository Details

Fetching additional details & charts...