SearchUploadDeploy

Deploy at your ownDeploy with Vercel

There are certain variables you need to create to deploy this application at your end, and here's how you can get them all:

Environment Variables

Cloudinary (Image Storage)

  1. Create a free account at Cloudinary
  2. Navigate to the Dashboard
  3. Copy your Cloud Name, API Key, and API Secret
  4. Create an unsigned upload preset in Settings > Upload > Upload presets
  5. Add these values to your .env.local file:
    CLOUDINARY_CLOUD_NAME=your_cloud_name
    CLOUDINARY_API_KEY=your_api_key
    CLOUDINARY_API_SECRET=your_api_secret
    NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=your_cloud_name

AI Providers (Both Required)

OpenAI API (for embeddings)

  1. Sign up at OpenAI
  2. Create a new secret key
  3. Add to your .env.local file:
    OPEN_AI_API_KEY=sk-your_openai_api_key

Groq API (for Llama 3.2 11B model)

  1. Sign up at Groq
  2. Generate an API key
  3. Add to your .env.local file:
    GROQ_API_KEY=your_groq_api_key

Upstash (Vector Storage)

  1. Sign up at Upstash
  2. Create a new Vector database
  3. Get the REST API URL and Token
  4. Add to your .env.local file:
    UPSTASH_URL=your_upstash_url
    UPSTASH_TOKEN=your_upstash_token

Additional Settings

Control whether uploads are enabled:

NEXT_PUBLIC_UPLOAD_DISABLED=false

Deployment Steps

  1. Fork the repository
  2. Clone your fork and create a .env.local file
  3. Install dependencies: npm install
  4. Run locally: npm run dev

Need Help?

If you encounter any issues during deployment: