cogninote

Notes app with image OCR, semantic search and tagging (TypeScript)

CogniNote: Semantic Knowledge & Multimodal OCR Notes Engine

Fullstack AI-assisted knowledge management and document extraction engine featuring automated image OCR pipelines, vector semantic search, and document tagging.

graph TD
    Client[React TypeScript Frontend] -->|REST API| API[FastAPI Application Server]
    API --> OCR[Tesseract OCR Processing Pipeline]
    API --> LLM[Google Gemini Inference Engine]
    API --> Mongo[(MongoDB Document & Metadata Store)]
    OCR --> Extraction[Text & Entity Extractor]
    Extraction --> Mongo
    LLM --> Synthesis[Summary & Search Context]
    Synthesis --> Client

Architectural Overview

CogniNote combines document digitization with generative synthesis. When a user uploads handwritten notes, diagrams, or printed documents, the backend routes the media through a preprocessing pipeline before executing OCR extraction. Extracted textual contents are indexed in MongoDB alongside structural metadata, enabling instant keyword and semantic queries across notebooks.

System Components

Technology Stack

Local Setup

Backend Setup

cd backend
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -r requirements.txt
cp .env.example .env     # Configure GOOGLE_API_KEY and MONGO_URI
uvicorn main:app --reload --port 8000

Frontend Setup

cd frontend
npm install
npm run dev