Skip to content

Latest commit

ย 

History

44 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  Memora

Your AI-Powered Second Brain
An intelligent knowledge management platform that transforms documents into a searchable, AI-powered knowledge base using Retrieval-Augmented Generation (RAG), semantic search, knowledge graphs, and personalized revision recommendations.

Next.js FastAPI MongoDB Qdrant Gemini


๐ŸŒ Live Demo

๐Ÿš€ Frontend

memora-sigma-six.vercel.app

โšก Backend API

memora-production-3fae.up.railway.app


โœจ Features

๐Ÿ“„ Smart Document Upload

  • Upload PDF documents
  • Automatic text extraction
  • Intelligent document chunking
  • Stores document metadata
  • Cloud-based vector storage

๐Ÿ” Semantic Search

Search documents using natural language instead of keywords.

  • Embedding-based retrieval
  • Context-aware search
  • Instant results
  • Powered by Qdrant Vector Database

๐Ÿ’ฌ AI Chat (RAG)

Ask questions about uploaded documents.

  • Retrieval-Augmented Generation
  • Google Gemini integration
  • Context-aware responses
  • Source-aware answers

๐Ÿง  Knowledge Graph

Automatically generates relationships between concepts.

  • Topic extraction
  • Relationship detection
  • Interactive graph visualization
  • Better understanding of connected knowledge

๐Ÿ“š AI Revision Engine

Personalized revision recommendations based on retention score.

  • Weak topic detection
  • Revision priority
  • Suggested revision strategy
  • Retention analytics

๐Ÿ“Š Dashboard Analytics

Track your learning progress.

  • Documents uploaded
  • Topics discovered
  • Strong topics
  • Weak topics
  • Average retention score

๐ŸŒ™ Modern UI

  • Responsive Design
  • Dark Mode
  • Beautiful Dashboard
  • Mobile Friendly
  • Interactive Search
  • Notification System

๐Ÿ— Architecture

                PDF Upload
                     โ”‚
                     โ–ผ
              Text Extraction
                     โ”‚
                     โ–ผ
              Document Chunking
                     โ”‚
                     โ–ผ
           Sentence Embeddings
                     โ”‚
                     โ–ผ
           Qdrant Vector Database
                     โ”‚
                     โ–ผ
           Semantic Retrieval
                     โ”‚
                     โ–ผ
          Google Gemini (RAG)
                     โ”‚
                     โ–ผ
            AI Generated Answer

๐Ÿ›  Tech Stack

Frontend

  • Next.js
  • React
  • Tailwind CSS
  • shadcn/ui
  • Axios
  • Lucide Icons

Backend

  • FastAPI
  • Python
  • JWT Authentication
  • PyMuPDF

AI & ML

  • Google Gemini API
  • Sentence Transformers
  • all-MiniLM-L6-v2
  • Retrieval-Augmented Generation (RAG)

Database

  • MongoDB Atlas
  • Qdrant Cloud

Deployment

  • Vercel
  • Railway

๐Ÿ“‚ Project Structure

Memora
โ”‚
โ”œโ”€โ”€ backend
โ”‚   โ”œโ”€โ”€ app
โ”‚   โ”œโ”€โ”€ api
โ”‚   โ”œโ”€โ”€ services
โ”‚   โ”œโ”€โ”€ database
โ”‚   โ”œโ”€โ”€ schemas
โ”‚   โ””โ”€โ”€ main.py
โ”‚
โ””โ”€โ”€ frontend
    โ”œโ”€โ”€ app
    โ”œโ”€โ”€ components
    โ”œโ”€โ”€ services
    โ”œโ”€โ”€ context
    โ””โ”€โ”€ public

๐Ÿš€ Getting Started

Clone Repository

git clone https://github.com/YOUR_USERNAME/Memora.git

Backend

cd backend

python -m venv venv

venv\Scripts\activate

pip install -r requirements.txt

uvicorn main:app --reload

Frontend

cd frontend

npm install

npm run dev

๐Ÿ”‘ Environment Variables

Backend (.env)

GEMINI_API_KEY=

JWT_SECRET_KEY=

MONGODB_URL=

DATABASE_NAME=

ALGORITHM=HS256

ACCESS_TOKEN_EXPIRE_MINUTES=60

QDRANT_URL=

QDRANT_API_KEY=

QDRANT_COLLECTION=memora_chunks

Frontend (.env.local)

NEXT_PUBLIC_API_URL=

๐Ÿ“ธ Application Preview

Dashboard Upload
Documents Chat
Graph Revision
Topics Dark Mode

๐Ÿ”ฎ Future Improvements

  • Background document processing
  • Batch embedding generation
  • DOCX & PPT support
  • YouTube transcript ingestion
  • OCR for scanned PDFs
  • AI flashcards
  • Spaced repetition scheduler
  • Team collaboration
  • Voice-based AI assistant

๐Ÿค Contributing

Contributions, issues, and feature requests are welcome!

Feel free to fork the repository and submit a pull request.


๐Ÿ‘จโ€๐Ÿ’ป Author

Kavya Agarwal

GitHub: https://github.com/KA18202005


โญ Support

If you found this project useful,

please consider giving it a โญ on GitHub.

It really helps!

About

An AI-powered second brain that enables intelligent document search, AI chat, knowledge graph visualization, and personalized learning.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages