This application is designed to create an AI community for a company forum, where individual chatbots assist users and enable connections based on shared interests.
- Language Detection: Detects the language of user input and responds in the same language.
- Conversation Storage: Stores conversations in local files for continuity.
- Keyword Extraction: Extracts and stores keywords from conversations to understand user preferences.
- User Profile Creation: Creates detailed user profiles based on conversation analysis.
Ensure you have Python 3.7+ installed on your machine.
-
Clone the repository:
git clone <repository_url> cd <repository_directory>
-
Install the required packages:
pip install -r requirements.txt
-
(Optional) Download NLTK data (only if using NLTK):
python -m nltk.downloader stopwords
-
Start the Flask server:
python server.py
-
Start client side:
python client.py
-
Interact with the chatbot through the configured client interface.
- API Keys: Ensure your API key for the MistralClient is saved in the specified location (
API_KEY_FILE).
. ├── server.py # Main server code ├── client.py # Client code ├── chatbot_module.py # Settings for chatbot AI ├── tfidf.py # TF-IDF computation and profile analysis ├── requirements.txt # Required Python packages ├── README.md # This file └── <other_files> # Other necessary files and directories
Contributions are welcome! Please fork the repository and submit pull requests.
This project is licensed under the MIT License.