DPDKBotAI is an AI-powered bot that leverages OpenAI's capabilities to provide intelligent responses and assistance. This project is designed to help users interact with an AI system in a structured and efficient manner.
- Python 3.8 or higher
- OpenAI API key
- Clone the repository:
git clone https://github.com/yourusername/DPDKBotAI.git
cd DPDKBotAI- Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate # On Windows, use: .venv\Scripts\activate- Install the required dependencies:
pip install -r requirements.txt- Set up your environment variables:
- Rename
.env_bckto.env - Open the
.envfile and replace the placeholder OpenAI API key with your own key - You can obtain an API key by signing up at OpenAI's platform
- Rename
To run the DPDKBot simply run:
python Bot.pyThis will start a chat with the bot. To exit the chat simply type exit. As a default the Bot is configured in the following way:
- System prompt - defines the way the model will act and the messages format (SystemMsg)
- Developer prompt - simulate a developer prompt to map the user request to one of the predefined values (DeveloperMsg)
- RTE Flow context - holds the RTE Flow template api context to be used by the AI (TemplateAPICTX)
- The Bot - holds the main logic of the application.
- Add a new file with the relevant context
- attach this new context to the request context field
DPDKBotAI/
├── src/ # Source code directory
├── .env # Environment variables (rename from .env_bck)
├── .env_bck # Environment variables backup
├── requirements.txt # Project dependencies
└── README.md # This file
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the terms of the license included in the repository.
If you encounter any issues or have questions, please open an issue in the repository.