Cortex is an AI-driven note-taking and knowledge-base application designed for structured research. Users can initiate sessions on specific topics, upload or link relevant context (text, URLs, videos), set research goals, and have the AI agent summarize, reason, and produce final structured outputs.
-
Research Session Management
- Create and manage research sessions with specific topics and goals
- Add context through text, URLs, PDFs, and videos
- Organize research materials in one centralized location
-
AI-Powered Analysis
- Automatic embedding and organization of context in vector store
- AI agent processes and summarizes information
- Structured knowledge piece generation
-
Smart Knowledge Base
- Easy retrieval of past research
- Updateable knowledge pieces
- Context-aware searching and linking
- Frontend: Next.js 13+ with TypeScript
- Backend: Supabase (PostgreSQL + Auth)
- Vector Store: ChromaDB
- AI Processing: LangGraph (TypeScript)
- Styling: Tailwind CSS
- Node.js 18+
- Supabase CLI
- ChromaDB
- OpenAI API key (for LangGraph)
-
Clone the repository:
git clone https://github.com/your-username/cortex.git cd cortex -
Install dependencies:
npm install
-
Set up environment variables:
cp .env.example .env
Fill in the required environment variables:
NEXT_PUBLIC_SUPABASE_URL: Your Supabase project URLNEXT_PUBLIC_SUPABASE_ANON_KEY: Your Supabase anonymous keyOPENAI_API_KEY: Your OpenAI API keyCHROMA_HOST: ChromaDB host (default: localhost)CHROMA_PORT: ChromaDB port (default: 8000)
-
Initialize Supabase:
supabase init supabase link --project-ref your-project-ref
-
Run database migrations:
supabase db push
-
Start ChromaDB:
docker run -d -p 8000:8000 chromadb/chroma
-
Start the development server:
npm run dev
-
Open http://localhost:3000 in your browser
cortex/
├── src/
│ ├── app/ # Next.js app router pages
│ ├── components/ # Reusable UI components
│ ├── contexts/ # React contexts (auth, etc.)
│ ├── lib/ # Utility functions and API clients
│ └── types/ # TypeScript type definitions
├── public/ # Static assets
└── supabase/ # Supabase configurations and migrations
- sessions: Research session details and metadata
- resources: Context materials (text, URLs, etc.)
- knowledge_pieces: AI-generated summaries and insights
- Integration with third-party platforms (Notion, Evernote, etc.)
- Collaboration and sharing capabilities
- Advanced AI agent features (automated web research, continuous updates)
- Export functionality (PDF, CSV, Excel)
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.