Settings
Configure AI provider and main agent behavior
AI Provider Configuration
Configure in .env file and restart server
Provider
Current Provider
Sarvam
Set in .env file
Available Providers
2
Sarvam, ChatGPT

To change provider:

  1. Edit backend/.env
  2. Set AI_PROVIDER=sarvam or AI_PROVIDER=chatgpt
  3. Add corresponding API keys
  4. Restart server: npm run dev
Main Agent Prompt
Core AI behavior (max 200 words) - Configure in .env
Agent Config

Current main prompt is set in .env file:

MAIN_PROMPT=You are Krish, a helpful AI assistant. You help users navigate the app, answer questions based on uploaded documents, and assist with tasks. Always be concise, friendly, and accurate. When asked to perform actions like clicking buttons or navigating, confirm with the user before proceeding if there's any ambiguity.

To modify:

  1. Edit backend/.env
  2. Update MAIN_PROMPT value
  3. Restart server
RAG Configuration
Document chunking and retrieval settings
RAG
Max RAG Chunks
5
Per query
Chunk Size
1000
Characters
Chunk Overlap
200
Characters

Configure in .env:

MAX_RAG_CHUNKS=5
CHUNK_SIZE=1000
CHUNK_OVERLAP=200
System Information
Backend details
Backend URL
-
Server endpoint
WebSocket
-
Real-time connection
Database
krish_ai
MySQL database
Version
1.0.0
KrishAI Backend