PraisonAI Chatbot

PraisonAI is a sophisticated chatbot built using the Streamlit framework. It integrates multiple language model providers to offer a flexible and customizable conversational experience. This project includes tools for managing and editing chatbot agents, and can be configured to use different AI frameworks.

Connect with Me

Contact Info
Joseph LePore Linkedin Badge

Features

  • Multiple LLM Providers: Select from various language model providers such as OpenAI, Ollama Mistral, FastChat, LM Studio, Mistral, and Groq.
  • Agent Management: Create, edit, and manage multiple chatbot agents with customizable roles and tools.
  • Flexible Frameworks: Supports different frameworks for generating responses including CrewAi and AutoGen.
  • Interactive UI: Streamlit-based interface with wide mode configuration for enhanced usability.

Installation

To set up the PraisonAI Chatbot, follow these steps:

  1. Clone the repository:

    git clone https://github.com/leporejoseph/praisonai-chatbot.git
    cd praisonai-chatbot
  2. Install the dependencies:

    pip install -r requirements.txt
  3. Run the application:

    streamlit run app.py

Configuration

The chatbot configuration is managed through the .env file and Streamlit sidebar. Here are some key settings:

  • LLM Settings: Choose the language model provider and set API keys.
  • Agent Settings: Select or create agents, customize their roles, tools, and other properties.

.env File

Ensure the .env file contains the appropriate API keys and settings for your chosen LLM provider. The file is automatically initialized with default values if not present.

Usage

Running the Chatbot

Once the application is running, you can interact with the chatbot through the Streamlit interface. Use the sidebar to configure LLM and agent settings.

Editing Agents

To edit an existing agent:

  1. Select the agent from the dropdown menu in the sidebar.
  2. Click on "Edit Agent" to open the edit dialog.
  3. Modify the agent's roles, tools, and other properties as needed.
  4. Click "Update" to save the changes.

Contribution

We welcome contributions to improve PraisonAI Chatbot. To contribute:

  1. Fork the repository:

    git fork https://github.com/yourusername/praisonai-chatbot.git
  2. Create a new branch:

    git checkout -b feature/your-feature-name
  3. Make your changes and commit them:

    git commit -m "Add your message here"
  4. Push to your fork:

    git push origin feature/your-feature-name
  5. Create a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more details.