{"id":24793933,"url":"https://github.com/muhammadzainrehmani/chatbot","last_synced_at":"2025-03-24T17:47:15.678Z","repository":{"id":260049554,"uuid":"879585577","full_name":"muhammadzainrehmani/Chatbot","owner":"muhammadzainrehmani","description":"The Qonkar Chatbot is an AI-powered assistant designed to provide quick and accurate information about Qonkar Software House, including its services, expertise in AI and software solutions, and ongoing projects.","archived":false,"fork":false,"pushed_at":"2025-01-08T11:28:03.000Z","size":580,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-29T22:33:36.907Z","etag":null,"topics":["gemini-pro","llm","nlp","python","streamlit"],"latest_commit_sha":null,"homepage":"https://qonkarchatbot.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/muhammadzainrehmani.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-10-28T07:27:25.000Z","updated_at":"2025-01-08T11:28:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"87c64ce3-b29b-428d-aaac-494ece6b1941","html_url":"https://github.com/muhammadzainrehmani/Chatbot","commit_stats":null,"previous_names":["muhammadzainrehmani/chatbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammadzainrehmani%2FChatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammadzainrehmani%2FChatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammadzainrehmani%2FChatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammadzainrehmani%2FChatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muhammadzainrehmani","download_url":"https://codeload.github.com/muhammadzainrehmani/Chatbot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245321029,"owners_count":20596289,"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":["gemini-pro","llm","nlp","python","streamlit"],"created_at":"2025-01-29T22:30:03.799Z","updated_at":"2025-03-24T17:47:15.651Z","avatar_url":"https://github.com/muhammadzainrehmani.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Qonkar AI Chatbot with Streamlit\n\nThis repository contains a Streamlit-based chatbot application that utilizes Google's Gemini API. The chatbot provides an interactive conversational experience, enhanced with pre-defined sample prompts for user convenience.\n\n## Features\n\n1.\t**Gemini API Integration:** Leverages the power of Google's Gemini for natural language understanding and generation.\n2.\t**Interactive Chat Interface:** Streamlit provides a user-friendly interface for engaging in conversations with the chatbot.\n3.\t**Sample Prompts:** Offers clickable sample prompts to guide user interaction and provide examples of effective queries.\n4.\t**Automatic Prompt Submission:** Clicking a sample prompt automatically populates the input field and submits it to the Gemini \n          API.\n5.\t**Loading Spinner:** Displays a visual loading spinner while waiting for the chatbot's response.\n6.\t**Conversation History:**  Maintains a history of the conversation for context and reference.\n\n\n## Installation\n\n1. **Clone the repository:**\n\n         git clone https://github.com/your-username/your-repository-name.git\n2.\t**Navigate to the project directory:**\n\t  cd your-repository-name\n    \n3.\t**Create a virtual environment (recommended):**\n          python3 -m venv .venv\n  \t  source .venv/bin/activate  # On Windows: .venv\\Scripts\\activate\n    \n4.\t**Install dependencies:**\n          pip install -r requirements.txt\n    \n5.\t**Set up your Gemini API Key:**\n    o\tObtain a Gemini API key from Google AI Platform.\n    o\tSet the GOOGLE_API_KEY environment variable:\n    o\tExport GOOGLE_API_KEY=\"YOUR_API_KEY\" # Linux/macOS\n    o\tSet GOOGLE_API_KEY=\"YOUR_API_KEY\" # Windows\n    \nOr you can directly paste it in the model parameter at the beginning of app.py\n\n\n**Usage**\n\n1.\t**Run the Streamlit app:**\n      streamlit run app.py\n    \n2.\t**Interact with the chatbot:**\n    o\tType your prompts in the input field and press Enter.\n    o\tClick on the provided sample prompts to quickly initiate conversations.\n  \t\n**Configuration**\n\n•\t**app.py:** The main application file. You can customize the following:\n      o\t**pre_built_prompt:** Modify the initial prompt to guide the chatbot's persona and behavior.\n      o\t**model:** Specifies the desired Gemini model.\n      o\t**temperature, top_p, max_output_tokens:** Adjust these parameters to fine-tune the chatbot's responses (creativity, diversity, length, etc.).\n      o\t**sample_prompts:** Add or modify the list of sample prompts.\n      \n**Contributing**\n    Contributions are welcome! Please feel free to open issues and submit pull requests.\n\n**License**\n    []\n\n**Contact**\n    Qonkar - info@qonkar.com\n \nRemember to replace placeholders like your-username,  your-repository-name, and YOUR_API_KEY with your actual information.  This detailed README provides clear instructions for setup, usage, and configuration, making your project easy to understand and use for others.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhammadzainrehmani%2Fchatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuhammadzainrehmani%2Fchatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhammadzainrehmani%2Fchatbot/lists"}