Deep research agent for PubMed. User inputs a query -> Parsed into MeSH terms -> Download full text and metadata of relevant articles -> Chunk and embed papers -> Use RAG for responses
-
Navigate to the backend directory:
cd backend
-
Install dependencies:
npm install
-
Create a
.env
file with the following variables:SUPABASE_URL=your_supabase_url SUPABASE_KEY=your_supabase_key OPENAI_API_KEY=your_openai_api_key GOOGLE_API_KEY=your_google_api_key
-
Start the development server:
npm run dev
-
Start the worker process (in a separate terminal):
npm run dev:worker
-
Navigate to the frontend directory:
cd frontend
-
Install dependencies:
npm install
-
Create a
.env.local
file with the following variables:NEXT_PUBLIC_SUPABASE_URL=your_supabase_url NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
-
Start the development server:
npm run dev
- Next.js
- React
- Tailwind CSS
- Shadcn UI
- Supabase client
- Node.js
- Express
- TypeScript
- RabbitMQ
- Supabase
- Various AI SDKs (OpenAI, Google, Anthropic)