🚀 Your Personal AI Knowledge Assistant powered by RAG + Hybrid Intelligence
An advanced AI system that doesn’t just store information — it understands, retrieves, and intelligently responds using both your personal knowledge and general intelligence.
-
📝 Smart Note Storage
Store and manage your personal knowledge -
🤖 AI Q&A (Hybrid RAG System)
- Answers from your notes (RAG-based)
- Falls back to general knowledge if needed
- Clearly mentions when answer is not from notes
-
🧠 Semantic Search with Embeddings
Uses Sentence Transformers for meaning-based retrieval -
📄 Document Understanding (PDF / DOCX / TXT)
Upload files → auto chunking → ask questions -
✨ AI Summarization
Get concise summaries of notes and documents -
🎯 Multi-Question Handling
Handles multiple questions in one query -
📊 System Stats
Tracks notes count and AI usage
Frontend
- Next.js
- TypeScript
- Tailwind CSS
Backend
- FastAPI
Database
- MongoDB
AI / ML
- Ollama (LLaMA3)
- Sentence Transformers (Embeddings)
- Cosine Similarity (Vector Search)
- Notes & documents stored in MongoDB
- Each note converted into vector embeddings
- User query → embedding
- Compared with stored notes using cosine similarity
- Top relevant notes selected dynamically
- Context created from best matches
- If answer exists in notes → uses notes
- If not → uses general knowledge
- Adds transparency: "This information is not from your personal notes."
- Returns answer
- Shows sources only when relevant
- Not a basic RAG clone
- Hybrid system (RAG + General Knowledge)
- Semantic search (not just keyword matching)
- Handles edge cases intelligently
- Designed like a real-world AI product
git clone https://github.com/mittalsonal/AI-Second-Brain.git
cd ai-second-braincd frontend
npm install
npm run devcd backend
pip install -r requirements.txt
uvicorn app.main:app --reload- RAG-based intelligent answering
- Context-aware responses
- Notes + PDF understanding system
⭐ If you like this project, give it a star!




