-
Clone or download this repository
cd cosmic-ai -
Install Python dependencies
pip install -r requirements.txt
-
Run the application
python app.py
-
Open your browser Navigate to
http://localhost:8080
- In the "Training Data Management" section, enter a question and its corresponding answer
- Click "Add Data" to add it to your training dataset
- Repeat this process to build up your knowledge base
- After adding some training data, click "Retrain Model"
- The system will train the AI model with your data
- You'll see a success message when training is complete
cosmic-ai/
├── app.py # Main Flask application
├── chatbot.py # Chatbot logic and training
├── requirements.txt # Python dependencies
├── templates/
│ └── index.html # Web interface
├── data/
│ └── training_data.json # Your training data (auto-created)
├── models/ # Trained models (auto-created)
│ ├── chatbot_model.pkl
│ ├── vectorizer.pkl
│ └── label_encoder.pkl
└── README.md