Second Brain v5.0

Logo

100% Local AI-Powered Knowledge Management with Multimodal Search

View the Project on GitHub raold/second-brain

🧠 Second Brain

Version License PostgreSQL Python 100% Local

🚀 What is Second Brain?

Second Brain v5.0 is a 100% local AI-powered personal knowledge management system with multimodal search, Google Drive integration, and photo processing capabilities. NO API KEYS REQUIRED for core functionality - runs entirely on local models (CLIP, LLaVA, Whisper).

📊 Latest Achievements

✨ Key Features

📸 Photo Pipeline

Process Google Takeout exports with automatic HEIC conversion, CLIP embeddings, and LLaVA descriptions.

Search by text, image similarity, or semantic meaning across all your memories.

🏠 100% Local Option

Run entirely on local models - CLIP for embeddings, LLaVA for vision, Whisper for audio.

🗄️ PostgreSQL + pgvector

Unified storage for vectors, metadata, and relationships with sub-100ms search.

📁 Google Drive Integration

OAuth 2.0 integration for automatic document and photo sync.

📊 Real-time Dashboard

WebSocket-powered live metrics, processing status, and performance monitoring.

💻 Quick Start

# Clone the repository
git clone https://github.com/raold/second-brain.git
cd second-brain

# Set up Python environment
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
pip install -r requirements.txt

# Copy environment template
cp .env.example .env

# Start full stack with Docker (recommended)
docker-compose up -d

# Or run development server
python scripts/run_dev.py  # Port 8001, uses SQLite/mock

# For photo processing
python process_all_photos.py  # Process Google Takeout archives

📚 API Usage

Create a Memory

curl -X POST http://localhost:8000/api/v2/memories \
  -H "Content-Type: application/json" \
  -d '{
    "content": "Important meeting notes from today",
    "importance_score": 0.8,
    "tags": ["work", "meeting"]
  }'

Search Memories

curl http://localhost:8000/api/v2/memories/search?query="meeting"

Get Statistics

curl http://localhost:8000/api/v2/statistics

🏗️ Architecture

Second Brain v5.0 features a comprehensive AI stack:

Core Services

Optional Enhancements

📦 Project Structure

second-brain/
├── app/                    # Main application
│   ├── core/              # Infrastructure
│   ├── models/            # Data models
│   ├── routes/            # API endpoints
│   ├── services/          # Business logic
│   └── storage/           # Database backends
├── tests/                 # Test suites
├── docs/                  # Documentation
├── scripts/               # Utility scripts
├── docker/                # Docker configs
└── frontend/              # Web UI (SvelteKit)

🔗 Resources

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

📝 License

This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0).


© 2024 Second Brain Project Made with ❤️ by the Second Brain Team