Skip to content

AI-powered knowledge base with RAG pipelines, document uploads, and semantic search.

Notifications You must be signed in to change notification settings

anwexhaa/second-brain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🧠⚡ Second Brain 🕹️

License: MIT Next.js React Python

🌐 Live Demo | ⭐ Star this repo

AI-Powered Personal Knowledge Base
Store, retrieve, and chat with your knowledge using RAG pipelines, embeddings, and a futuristic retro-dark UI.


🚀 Features & Superpowers

AI Knowledge Chat Converse with your stored documents, notes, and resources
📂 Smart Ingestion Upload PDFs, notes, and text—auto-chunked and embedded into vector DB
🤖 RAG Pipeline Context-aware answers powered by OpenAI + LangChain
🛡️ Secure Auth Firebase Auth + PostgreSQL for protected user spaces
🧩 Knowledge Orb Dynamic visualization of your stored knowledge base
🌌 Dark Retro UI Terminal-inspired aesthetics with smooth animations

💡 Why Second Brain?

Because your brain deserves an upgrade.
Store, connect, and recall your knowledge instantly—with the vibe of a hacker terminal fused with AI superpowers. 🕹️


🖼️ Preview

🧠 Chat Interface 📂 Upload Portal 🌌 Login Screen
Chat Upload Login

⚡ Quick Start

# 🔥 Clone & Setup
git clone https://github.com/anwexhaa/second-brain.git
cd second-brain

# 🎨 Frontend Setup
cd frontend
npm install  # or yarn/pnpm install

# 🐍 Backend Setup  
cd ../backend
pip install -r requirements.txt

🔐 Environment Variables

Frontend (.env.local)

NEXT_PUBLIC_OPENAI_API_KEY=your_openai_api_key
NEXT_PUBLIC_FIREBASE_API_KEY=your_firebase_api_key

Backend (.env)

OPENAI_API_KEY=your_openai_api_key
DATABASE_URL=your_postgres_url
FIREBASE_PROJECT_ID=your_firebase_project_id
VECTOR_DB_API_KEY=your_pinecone_or_chroma_key

🚀 Launch Servers

# Frontend (Terminal 1)
cd frontend && npm run dev

# Backend (Terminal 2)
cd backend && uvicorn main:app --reload

🎉 Visit http://localhost:3000 and start building your Second Brain!


🛠️ Tech Stack

Category Technologies
Frontend Next.js, React, Tailwind CSS
Backend FastAPI (Python)
Database PostgreSQL + Pinecone (Vector DB)
Authentication Firebase Auth
AI Pipeline LangChain + OpenAI Embeddings
Deployment Vercel + Railway/Render

🌍 Deployment

  • 🎯 Frontend: Live at second-brain-fawn.vercel.app
  • ⚙️ Backend: Deploy on Railway, Render, or any cloud provider
  • 💾 Database: Use Supabase or Neon for PostgreSQL
  • 🔍 Vector DB: Pinecone (managed) or Chroma (self-hosted)

🤝 Contributing

We love contributions! Here's how to get involved:

  1. 🍴 Fork the repository
  2. 🌿 Create your feature branch: git checkout -b feature/amazing-feature
  3. 💾 Commit your changes: git commit -m 'Add amazing feature'
  4. 🚀 Push to branch: git push origin feature/amazing-feature
  5. 🎯 Open a Pull Request

📄 License

This project is licensed under the MIT License - see the file for details.


⭐ Star this repo if it helped you build your Second Brain!

Made with 💜 by anwexhaa

About

AI-powered knowledge base with RAG pipelines, document uploads, and semantic search.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published