AI Provider Configuration
Configure in .env file and restart server
Current Provider
Sarvam
Set in .env file
Available Providers
2
Sarvam, ChatGPT
To change provider:
- Edit
backend/.env - Set
AI_PROVIDER=sarvamorAI_PROVIDER=chatgpt - Add corresponding API keys
- Restart server:
npm run dev
Main Agent Prompt
Core AI behavior (max 200 words) - Configure in .env
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:
- Edit
backend/.env - Update
MAIN_PROMPTvalue - Restart server
RAG Configuration
Document chunking and retrieval settings
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