{"id":17728154,"url":"https://github.com/maartensmeets/chatbot","last_synced_at":"2026-04-26T08:36:12.657Z","repository":{"id":258799421,"uuid":"875369635","full_name":"MaartenSmeets/chatbot","owner":"MaartenSmeets","description":"Multi-Character Chatbot with Automatic Mode","archived":false,"fork":false,"pushed_at":"2024-10-24T18:53:56.000Z","size":408,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-25T09:20:15.618Z","etag":null,"topics":["chatbot","gradio","ollama"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MaartenSmeets.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-19T19:39:18.000Z","updated_at":"2024-10-24T18:53:59.000Z","dependencies_parsed_at":"2024-10-27T15:59:27.595Z","dependency_job_id":null,"html_url":"https://github.com/MaartenSmeets/chatbot","commit_stats":null,"previous_names":["maartensmeets/chatbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaartenSmeets%2Fchatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaartenSmeets%2Fchatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaartenSmeets%2Fchatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaartenSmeets%2Fchatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaartenSmeets","download_url":"https://codeload.github.com/MaartenSmeets/chatbot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246498687,"owners_count":20787365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatbot","gradio","ollama"],"created_at":"2024-10-25T19:05:48.199Z","updated_at":"2026-04-26T08:36:12.623Z","avatar_url":"https://github.com/MaartenSmeets.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Multi-Character Chatbot with Automatic Mode\n\nThis repository contains a Python application that implements a multi-character chatbot with automatic mode using Gradio. The chatbot allows users to interact with multiple AI characters, supports auto-chat mode where characters can converse among themselves, and includes features like session management and a slideshow display of conversation history.\n\n## Features\n\n- **Multi-Character Support**: Interact with multiple AI characters, each with customizable personalities defined in YAML files.\n- **Automatic Chat Mode**: Characters can engage in conversations autonomously without user input.\n- **Session Management**: Create, delete, and reset chat sessions with persistent conversation history stored in SQLite.\n- **Slideshow Mode**: Review conversation history in a slideshow format with navigation controls.\n- **User Interface**: Intuitive web interface built with Gradio for seamless interaction.\n\n## Installation\n\n### Prerequisites\n\n- **Python 3.7 or higher**\n- **[Ollama](https://ollama.ai/docs/installation)** installed and running at `http://localhost:11434`\n- **[Ollama Llama3.1 Model](https://ollama.com/library/llama3.1)**: Ensure the `llama3.1:70b-instruct-q4_K_M` model is available in Ollama.\n\n### Steps\n\n1. **Clone the Repository**\n\n   ```bash\n   git clone https://github.com/MaartenSmeets/chatbot.git\n   cd chatbot\n   ```\n\n2. **Set Up a Virtual Environment (Optional but Recommended)**\n\n   ```bash\n   python -m venv venv\n   source venv/bin/activate  # On Windows use `venv\\Scripts\\activate`\n   ```\n\n3. **Install Python Dependencies**\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. **Ensure Ollama is Running**\n\n   - Start Ollama if it's not already running.\n   - Verify it's accessible at `http://localhost:11434`.\n\n5. **Download the Required LLM Model**\n\n   ```bash\n   ollama pull llama3.1:70b-instruct-q4_K_M\n   ```\n\n6. **Run the Application**\n\n   ```bash\n   python multi_agent.py\n   ```\n\n   Replace `app.py` with the actual filename of the script.\n\n## Usage\n\n1. **Access the Web Interface**\n\n   - Open your web browser and navigate to `http://localhost:7860`.\n\n2. **Interact with the Chatbot**\n\n   - **Select or Create a Session**: Use the dropdown menu to select an existing session or create a new one.\n   - **Enter Your Name**: Provide a name to personalize your interactions.\n   - **Choose an Assistant Character**: Select a character to interact with from the dropdown.\n   - **Auto Chat Controls**:\n     - **Select Characters for Auto Chat**: Choose characters for the auto-chat mode.\n     - **Start Auto Chat**: Click \"Start Auto Chat\" to begin autonomous conversations.\n     - **Stop Auto Chat**: Click \"Stop Auto Chat\" to end the automatic conversation.\n   - **Manual Chatting**: Type messages in the input box and press Enter to communicate with the assistant.\n   - **Reset Chat**: Use the \"Reset Chat\" button to clear the current conversation.\n   - **Delete Session**: Remove the current session and its history.\n\n3. **Slideshow Mode**\n\n   - **Enter Slideshow**: Click the \"Slideshow\" button to view conversation history.\n   - **Navigate Messages**:\n     - **First**: Go to the first message.\n     - **Previous**: View the previous message.\n     - **Next**: View the next message.\n     - **Last**: Go to the last message.\n   - **Exit Slideshow**: Click \"Back to Chat\" to return to the main interface.\n\n## Configuration\n\n- **Character Customization**:\n  - Character configurations are stored in the `characters` directory as YAML files.\n  - Modify existing files or add new ones to customize character behavior.\n- **Logging**:\n  - Logs are saved in `app.log`.\n  - Adjust logging levels in the script as needed.\n\n## Dependencies\n\nThe application relies on the following Python libraries:\n\n- `gradio`\n- `requests`\n\nInstall all dependencies using:\n\n```bash\npip install -r requirements.txt\n```\n\n_**Note**: Ensure that `requirements.txt` includes all the necessary libraries._\n\n## Troubleshooting\n\n- **LLM API Timeout**: If you encounter a timeout error, ensure that Ollama is running and the LLM model is properly installed.\n- **Model Not Found**: Verify that the `llama3.1:70b-instruct-q4_K_M` model is correctly installed in Ollama.\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaartensmeets%2Fchatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaartensmeets%2Fchatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaartensmeets%2Fchatbot/lists"}