SciAgent, a research paper question-answering system powered by a multi-agent AI pipeline.
Upload a research paper (PDF) and ask any question about it. Six AI agents work in sequence to retrieve relevant sections, analyze them, fact-check the analysis, and produce a fully cited answer.
sciagent-frontend/
app/
page.tsx
layout.tsx
globals.css
api/analyze/route.ts
components/
FileUpload.tsx
AgentPipeline.tsx
ChatDisplay.tsx
CavemanLoader.tsx
LoadingSteps.tsx
lib/
types.ts
api.ts
- Install dependencies:
npm install- Create
.env.localfrom the example:
cp .env.local.example .env.local- Set the backend URL in
.env.local:
HF_SPACE_URL=https://your-hf-space.hf.space
- Run the development server:
npm run devOpen http://localhost:3000 in your browser.
flowchart TD
A([User uploads PDF and types a question])
A --> B[1. Ingestion - parse, chunk, embed, store]
B --> C[2. Planner - orchestrate the full pipeline]
C --> D[3. Retriever - hybrid BM25 and vector search]
D --> E[4. Analyzer - structured analysis of chunks]
E --> F[5. Critic - fact-check against source]
F --> G[6. Synthesizer - build final cited answer]
G --> H([User reads the answer with inline citations])