The Intelligent Knowledge Vault β AI-powered document management that understands your content.
Cognify is a full-stack AI-powered Personal Knowledge Management system. Drop in scanned PDFs, images, or plain-text notes and Cognify immediately OCRs the content, summarizes it with a language model, classifies it by topic, and stores a semantic embedding β making every document instantly searchable, queryable, and analyzable.
Think of it as a second brain that actually reads your documents.
Track all your documents at a glance. Live status indicators, AI summary counts, system health, and quick-search.
Visualize topic evolution, upload trends, and storage growth with interactive Recharts dashboards. Sensitive documents are automatically excluded from all analytics.
Ask questions across your entire vault in natural language. The RAG engine retrieves the most semantically relevant document chunks and generates cited answers using RoBERTa.
Split, merge, reorder, or remove pages from any PDF β completely browser-native, no third-party service.
Upload files and watch the real-time processing pipeline: OCR β Summarization β Classification β Embedding β COMPLETED.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Next.js 16 (Frontend) β
β Dashboard Β· Analytics Β· Neural Chat Β· PDF Tools Β· Auth β
βββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββ
β REST API (JWT)
βββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββ
β Django REST Framework (Backend) β
β Documents Β· Collections Β· Notes Β· Users Β· Analytics β
ββββββββββββ¬βββββββββββββββββββββββββββββββ¬ββββββββββββββββββββ
β Task Queue β Query
ββββββββββββΌβββββββββββ ββββββββββββββΌβββββββββββββββββββ
β Redis + Celery β β SQLite Database β
β (Async Workers) β β Metadata Β· Vectors Β· Logs β
ββββββββββββ¬βββββββββββ βββββββββββββββββββββββββββββββββ
β Executes
ββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββ
β AI Pipeline Engine β
β β
β βββββββββββββββ ββββββββββββββββ βββββββββββββββββββββ β
β β OCR Module β β LLM Module β β Embedding Module β β
β β OpenCV + β β DistilBART β β SentenceTransf. β β
β β Tesseract β β + RoBERTa β β all-MiniLM-L6-v2 β β
β βββββββββββββββ ββββββββββββββββ βββββββββββββββββββββ β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
| Feature | Description |
|---|---|
| π Semantic Search | Cosine similarity search using Sentence-BERT embeddings β finds meaning, not just keywords |
| π€ Auto-Summarization | DistilBART condenses every document into a clear, concise summary on upload |
| π·οΈ Topic Classification | Zero-shot MNLI classifier auto-tags documents across predefined knowledge categories |
| π¬ Global RAG Chat | Ask questions across your entire vault; RoBERTa generates cited answers from top semantic matches |
| π Knowledge Analytics | Pandas-powered aggregation + Recharts visualizations: topic trends, storage curves, format distributions |
| βοΈ PDF Manipulation | Native split, merge, reorder, and page deletion with PyPDF |
| π Annotations & Notes | Attach personal notes, highlights, and bookmarks to any document or extracted quote |
| π Sensitive Mode | Per-document privacy flag β excludes files from analytics, RAG, and discovery |
| π¦ Version Control | Full document versioning with parent-child lineage tracking |
| ποΈ Soft Delete & Recovery | Trash system with configurable recovery window before permanent deletion |
| π Observability | Prometheus metrics integration for task queue latency and worker resource usage |
# Clone the repository
git clone https://github.com/yourusername/cognify.git
cd cognify
# Build and launch the full stack
docker-compose up --build| Service | URL |
|---|---|
| Web Dashboard | http://localhost:3000 |
| REST API | http://localhost:8000 |
| API Explorer | http://localhost:8000/api/schema/ |
| Prometheus | http://localhost:9090 |
# 1. Create and activate virtual environment
python -m venv venv
# Windows:
.\venv\Scripts\activate
# macOS/Linux:
source venv/bin/activate
# 2. Install dependencies
pip install -r backend/requirements.txt
# 3. Apply database migrations
cd backend
python manage.py migrate
# 4. Create a superuser account (optional)
python manage.py createsuperuser
# 5. Start the Celery background worker (in a separate terminal)
celery -A config worker -l info
# 6. Start the API server
python manage.py runservercd frontend
npm install
npm run devThe frontend will be available at http://localhost:3000
| Task | Model | Library |
|---|---|---|
| Text Extraction | Tesseract 5.0 + OpenCV | pytesseract, cv2 |
| Summarization | sshleifer/distilbart-cnn-12-6 |
transformers |
| Classification | valhalla/distilbart-mnli-12-1 |
transformers |
| Semantic Embeddings | all-MiniLM-L6-v2 |
sentence-transformers |
| Extractive Q&A | deepset/roberta-base-squad2 |
transformers |
cognify/
βββ ai_pipeline/ # Stateless AI modules (OCR Β· LLM Β· Embeddings)
β βββ ocr/processor.py # OpenCV preprocessing + Tesseract extraction
β βββ llm/
β βββ summarizer.py # DistilBART summarization
β βββ classifier.py # Zero-shot MNLI classification
β βββ qa.py # RoBERTa extractive Q&A
β βββ embedder.py # SentenceTransformers embeddings
βββ backend/
β βββ config/ # Django settings, URL routing, Celery config
β βββ apps/
β βββ documents/ # Core models, views, serializers, tasks, tests
β βββ users/ # JWT authentication endpoints
βββ frontend/
β βββ src/app/
β βββ page.tsx # Landing page
β βββ auth/ # Login + Signup
β βββ dashboard/ # Main app (docs, analytics, chat, pdf-tools)
βββ docs/
β βββ Images/ # Application screenshots
β βββ user_capabilities.md # 100 documented user capabilities
βββ docker-compose.yml # Full-stack orchestration
βββ README.md
# Run the full test suite (35 tests)
cd cognify
.\venv\Scripts\python.exe backend\manage.py test \
apps.documents.tests.test_scenarios \
apps.documents.tests.test_requirements \
apps.documents.tests.test_use_cases_fulfillment \
--noinputExpected output: Ran 35 tests β OK (0 failures)
- JWT Authentication β All API routes require a valid JWT bearer token
- User Data Isolation β Every database query is scoped to the authenticated user; cross-user access returns
404 - Sensitive Mode β Per-document flag that excludes files from global analytics, RAG, and search
- Soft Delete β Trashed documents have a recovery window before permanent deletion
- Audit Logs β Every meaningful action (UPLOAD, QUERY, TRASH, RESTORE, VERSION_NEW) is logged with user and timestamp
This project is licensed under the MIT License β see LICENSE for details.




