{"id":15175492,"url":"https://github.com/ash956901/chatbot","last_synced_at":"2026-02-07T19:04:06.224Z","repository":{"id":245413234,"uuid":"818172016","full_name":"ash956901/Chatbot","owner":"ash956901","description":"A streamlit based chat bot using cohere ai to leverage its llm to build text responses in gpt like manner","archived":false,"fork":false,"pushed_at":"2024-06-21T10:33:31.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T23:58:33.647Z","etag":null,"topics":["ai","ai-ml","chatbot","chatbot-application","chatbot-application-web","cohere","cohereai","coral","llm","ml","streamlit","streamlit-webapp"],"latest_commit_sha":null,"homepage":"https://ash956901-chatbot-main-4sbaa2.streamlit.app/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ash956901.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-06-21T08:53:28.000Z","updated_at":"2024-07-15T12:23:12.000Z","dependencies_parsed_at":"2024-06-22T02:26:21.438Z","dependency_job_id":"82f15cc2-f8d1-4482-97ac-d34a87b83373","html_url":"https://github.com/ash956901/Chatbot","commit_stats":null,"previous_names":["ash956901/chatbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ash956901%2FChatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ash956901%2FChatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ash956901%2FChatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ash956901%2FChatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ash956901","download_url":"https://codeload.github.com/ash956901/Chatbot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235519884,"owners_count":19003201,"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":["ai","ai-ml","chatbot","chatbot-application","chatbot-application-web","cohere","cohereai","coral","llm","ml","streamlit","streamlit-webapp"],"created_at":"2024-09-27T12:39:18.370Z","updated_at":"2026-02-07T19:04:06.132Z","avatar_url":"https://github.com/ash956901.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Chat Bot](https://ash956901-chatbot-main-4sbaa2.streamlit.app/)\n\nThis README file provides an extensive guide on setting up and running a Chat Bot using Streamlit and Cohere API. The bot allows for interactive conversation and showcases messages from both the user and the assistant.\n\n## Table of Contents\n\n- [Introduction](#introduction)\n- [Features](#features)\n- [Prerequisites](#prerequisites)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Project Structure](#project-structure)\n- [Configuration](#configuration)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Introduction\n\nThis project implements a simple chat bot using Streamlit for the web interface and Cohere's API for generating responses. The chat bot can engage in a conversation with users, displaying messages from both the user and the assistant in a chat-like format.\n\n## Features\n\n- Interactive chat interface\n- Real-time message display\n- Uses Cohere API for generating responses\n- Session state management to keep track of conversation history\n\n## Prerequisites\n\nBefore you begin, ensure you have met the following requirements:\n\n- Python 3.7 or higher\n- Streamlit library\n- Cohere library\n- A Cohere API key\n\n## Installation\n\n1. Clone this repository:\n\n    ```bash\n    git clone https://github.com/your-username/chat-bot.git\n    cd chat-bot\n    ```\n\n2. Create a virtual environment:\n\n    ```bash\n    python3 -m venv venv\n    source venv/bin/activate\n    ```\n\n3. Install the required libraries:\n\n    ```bash\n    pip install streamlit cohere\n    ```\n\n## Usage\n\n1. Set up your Cohere API key in Streamlit secrets. Create a file named `.streamlit/secrets.toml` in the root directory of your project and add the following:\n\n    ```toml\n    [secrets]\n    COHERE_API_KEY = \"your_cohere_api_key\"\n    ```\n\n2. Run the Streamlit app:\n\n    ```bash\n    streamlit run app.py\n    ```\n\n3. Open your web browser and navigate to `http://localhost:8501` to interact with the chat bot.\n\n## Project Structure\n\nchat-bot/\n├── .streamlit/\n│ └── secrets.toml\n├── app.py\n├── README.md\n└── venv/\n\n\n- `.streamlit/secrets.toml`: Contains the API key for Cohere.\n- `app.py`: The main script for running the Streamlit app.\n- `README.md`: This README file.\n- `venv/`: The virtual environment directory (not included in the repository).\n\n## Configuration\n\n### Streamlit Secrets\n\nThe Cohere API key is stored securely in Streamlit secrets. Ensure you add your key in the `.streamlit/secrets.toml` file as shown above.\n\n### Session State\n\nThe app uses Streamlit's session state to keep track of the conversation history. Messages are stored in `st.session_state[\"messages\"]` and are displayed in the chat container.\n\n## Contributing\n\nContributions are welcome! Please fork the repository and use a feature branch. Pull requests are reviewed on a regular basis.\n\n1. Fork the repository.\n2. Create your feature branch (`git checkout -b feature/feature-name`).\n3. Commit your changes (`git commit -am 'Add some feature'`).\n4. Push to the branch (`git push origin feature/feature-name`).\n5. Create a new Pull Request.\n\n## License\n\nThis project is licensed under the MIT License. See the `LICENSE` file for details.\n\n---\n\nThis README provides a comprehensive guide to setting up and using the chat bot. If you encounter any issues or have suggestions for improvements, please feel free to open an issue or contribute to the project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fash956901%2Fchatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fash956901%2Fchatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fash956901%2Fchatbot/lists"}