Welcome to AI-Kit
AI-Kit is a tiny RAG (Retrieval-Augmented Generation) system and open-source AI toolkit.
🚀 Quick Start
Prerequisites
- Node.js (v14 or higher)
- An OpenRouter API key (get one here)
Installation
-
Clone the repository:
git clone https://github.com/JithunMethusahan/AI-Kit.git
cd AI-Kit -
Install dependencies:
npm install -
Configure your bot: Create a
.envfile in the root directory:API_KEY=your_openrouter_api_key_hereEdit
config.yamlfor other settings like model and appearance. -
Add your knowledge base (optional): Edit
knowledge.txtwith context information for your bot. -
Build the widget:
npm run build
Integration
Add the generated script to your website:
<!DOCTYPE html>
<html>
<head>
<title>My Website</title>
</head>
<body>
<!-- Your website content -->
<script src="dist/chatbot.bundle.js"></script>
</body>
</html>
⚙️ Configuration
- API Key: Set
API_KEYin.envfile (get from OpenRouter) - Other Settings: Edit
config.yamlto customize model, appearance, and behavior
Available free models include:
deepseek/deepseek-r1-0528:freemistralai/devstral-2512:free- And many more (see OpenRouter models)