Getting Started with EIAS¶
This guide walks you through setting up EIAS for local development and first use.
Prerequisites¶
Before you begin, ensure you have:
Installation¶
1. Clone the Repository¶
2. Install Dependencies¶
3. Configure Environment¶
Create your environment file:
Edit .env.local with your settings:
# Database connection (default works with docker-compose)
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/eias?schema=public"
# Required: Your Anthropic API key
ANTHROPIC_API_KEY="sk-ant-api03-..."
# Optional: For production authentication
# NEXTAUTH_SECRET="generate-a-32-char-secret"
# NEXTAUTH_URL="https://your-domain.com"
4. Start the Database¶
EIAS uses PostgreSQL. The easiest way to run it is with Docker:
This starts PostgreSQL on port 5432 with:
- Username: postgres
- Password: postgres
- Database: eias
Verify it's running:
5. Initialize the Database¶
Push the Prisma schema to create tables:
Optionally, seed sample data for testing:
The seed creates: - A demo user - A sample project with uncertainty areas - An interview agent with invitations
6. Start the Development Server¶
Visit http://localhost:3000 to access EIAS.
First Steps¶
1. Explore the Dashboard¶
The dashboard shows: - Active Projects — Your research projects - Pending Insights — Insights awaiting review - Active Interviews — Ongoing expert invitations
2. Create Your First Project¶
- Click "New Project"
- Enter project details:
- Name: Your project title
- Description: What you're researching
- Goals: Key objectives (one per line)
- Click "Create Project"
3. Define Uncertainty Areas¶
Uncertainty areas are knowledge gaps you want experts to address.
- From your project page, click "Add Uncertainty Area"
- Fill in:
- Title: Brief name for the knowledge gap
- Description: What you need to learn
- Priority: High, Medium, or Low
- Questions: Specific questions (one per line)
- Click "Save"
4. Create an Interview Agent¶
- Click "New Agent"
- Configure the agent:
- Name: Agent identifier (e.g., "Clinical Workflow Expert Interview")
- Focus Areas: Select which uncertainty areas to probe
- Interview Style:
- Exploratory: Open-ended, follows expert's lead
- Focused: Targeted on specific questions
- Validating: Confirms existing hypotheses
- Time Estimate: Expected interview duration
- Click "Create Agent"
The system generates an optimized system prompt based on your configuration.
5. Invite an Expert¶
- From the agent page, click "Create Invitation"
- Enter expert details:
- Name: Expert's name
- Role: Their expertise/title
- Expiration: When the link expires (default: 7 days)
- Click "Create Invitation"
- Copy the generated link and share it with your expert
6. Test the Interview¶
Click "Test Interview" to try the expert experience:
- You'll see the chat interface
- The agent introduces itself and the project context
- Respond naturally—the agent adapts its questions
- Complete the interview when finished
7. Extract and Review Insights¶
After an interview completes:
- Navigate to the session page
- Click "Extract Insights"
- Claude synthesizes 3-7 insights with:
- Category: Type of insight
- Confidence: High, Medium, or Low
- Source Messages: Which expert responses informed the insight
- Review each insight:
- Integrate: Add to project knowledge
- Review Later: Defer decision
- Discard: Remove from queue
Development Commands¶
# Start development server with hot reload
npm run dev
# Type checking
npm run typecheck
# Run ESLint
npm run lint
# Build for production
npm run build
# Start production server
npm run start
Database Commands¶
# Push schema changes to database
npm run db:push
# Seed sample data
npm run db:seed
# Open Prisma Studio (visual database browser)
npm run db:studio
# Generate Prisma client after schema changes
npx prisma generate
Troubleshooting¶
Database Connection Failed¶
Solution: Ensure Docker is running and the container is up:
Prisma Schema Out of Sync¶
Solution: Push the latest schema:
Claude API Errors¶
Solution: Check your API key in .env.local:
Port Already in Use¶
Solution: Either stop the other process or use a different port:
Next Steps¶
- User Guide — Complete guide for researchers
- API Reference — Integrate with external tools
- Deployment — Host in production
Getting Help¶
- Check GitHub Issues
- Review the API Reference
- Contact support at support@example.com