{"id":29092244,"url":"https://github.com/bm9avan/hcbot","last_synced_at":"2026-05-17T02:34:41.126Z","repository":{"id":300775897,"uuid":"1006950825","full_name":"bm9avan/hcBot","owner":"bm9avan","description":"This is an Hitesh Choudhary ai persona but this is created to help users with queries about the 'Chai Docs' documentation","archived":false,"fork":false,"pushed_at":"2025-06-23T14:37:41.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-23T15:26:08.355Z","etag":null,"topics":["aipersona","gemini-ai","python","streamlit"],"latest_commit_sha":null,"homepage":"https://chaiaurdocs.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/bm9avan.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,"zenodo":null}},"created_at":"2025-06-23T08:36:26.000Z","updated_at":"2025-06-23T14:41:48.000Z","dependencies_parsed_at":"2025-06-23T15:38:38.929Z","dependency_job_id":null,"html_url":"https://github.com/bm9avan/hcBot","commit_stats":null,"previous_names":["bm9avan/hcbot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bm9avan/hcBot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bm9avan%2FhcBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bm9avan%2FhcBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bm9avan%2FhcBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bm9avan%2FhcBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bm9avan","download_url":"https://codeload.github.com/bm9avan/hcBot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bm9avan%2FhcBot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262389457,"owners_count":23303341,"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":["aipersona","gemini-ai","python","streamlit"],"created_at":"2025-06-28T07:04:07.320Z","updated_at":"2025-10-24T01:47:22.398Z","avatar_url":"https://github.com/bm9avan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 💬 CHAI DOCS — Gemini 2.5 Chatbot (by bm9avan)\n\nAn elegant chatbot interface powered by Google's Gemini 2.5 Flash model, built using Streamlit. This project includes custom persona injection via a system prompt, real-time chat memory, and an auto-scrolling UI with a sidebar for persona visibility.\n\n---\n\n## 🚀 Features\n\n- ✨ Gemini 2.5 Flash model integration using `google.genai`\n- 🧠 Persona Prompt loaded from JSON\n- 🪟 Sticky sidebar showing current system prompt\n- 💬 Conversation history with roles (user \u0026 assistant)\n- ⬇️ Input box pinned at the bottom for continuous chat flow\n- 🔄 Auto-scrolls to the latest message automatically\n- 🧼 Clean layout with custom CSS for enhanced UX\n\n---\n\n## 📁 Project Structure\n\n```\n\nhcBot/\n├── main.py                    # Streamlit app logic\n├── Persona\\_prompt.json       # Contains the system persona instruction\n├── requirements.txt          # Python dependencies\n└── .streamlit/\n└── secrets.toml          # Gemini API key config\n\n```\n\n---\n\n## 🛠 Setup \u0026 Run\n\n### 1. Clone the repo\n\n```bash\ngit clone https://github.com/bm9avan/gemini-chatbot.git\ncd gemini-chatbot\n```\n\n### 2. Create virtual environment\n\n```bash\npython3 -m venv .venv\nsource .venv/bin/activate  # Linux/macOS\n.venv\\\\Scripts\\\\activate   # Windows\n```\n\n### 3. Install dependencies\n\n```bash\npip install -r requirements.txt\n```\n\n### 4. Add your Gemini API key\n\nCreate a file at `.streamlit/secrets.toml` and add:\n\n```toml\n[genai]\napi_key = \"your-gemini-api-key-here\"\n```\n\n### 5. Customize Persona Prompt\n\nEdit `Persona_prompt.json`:\n\n```json\n{\n  \"system_instruction\": \"You are a helpful, knowledgeable AI that speaks like a software engineer and explains concepts clearly using analogies.\"\n}\n```\n\n---\n\n## ▶ Run the App\n\n```bash\nstreamlit run main.py\n```\n\n---\n\n## ✏️ Customization\n\n- 💡 Want to change the assistant tone? Just modify `Persona_prompt.json`.\n- 📜 Need markdown/code formatting? You can enhance output rendering using `st.markdown(..., unsafe_allow_html=True)` or with custom syntax highlighting.\n\n---\n\n## 📄 License\n\nMIT — feel free to fork and remix.\n\n---\n\n## 👤 Author\n\nMade by [bm9avan](https://github.com/bm9avan) with 💙 using Streamlit + Gemini AI\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbm9avan%2Fhcbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbm9avan%2Fhcbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbm9avan%2Fhcbot/lists"}