{"id":29015475,"url":"https://github.com/chainstacklabs/chainstack-tg-ai-bot","last_synced_at":"2025-06-25T21:07:31.427Z","repository":{"id":190221417,"uuid":"682141533","full_name":"chainstacklabs/chainstack-tg-ai-bot","owner":"chainstacklabs","description":"AI powered Telegram bot all knowing about Chainstack docs","archived":false,"fork":false,"pushed_at":"2024-07-06T00:44:24.000Z","size":15,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-28T13:19:47.946Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chainstacklabs.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,"zenodo":null}},"created_at":"2023-08-23T14:27:21.000Z","updated_at":"2024-06-21T13:48:34.000Z","dependencies_parsed_at":"2025-05-28T13:20:22.247Z","dependency_job_id":null,"html_url":"https://github.com/chainstacklabs/chainstack-tg-ai-bot","commit_stats":null,"previous_names":["soos3d/chainstack-tg-ai-bot","chainstacklabs/chainstack-tg-ai-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chainstacklabs/chainstack-tg-ai-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainstacklabs%2Fchainstack-tg-ai-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainstacklabs%2Fchainstack-tg-ai-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainstacklabs%2Fchainstack-tg-ai-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainstacklabs%2Fchainstack-tg-ai-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chainstacklabs","download_url":"https://codeload.github.com/chainstacklabs/chainstack-tg-ai-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainstacklabs%2Fchainstack-tg-ai-bot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261953213,"owners_count":23235457,"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":[],"created_at":"2025-06-25T21:07:30.617Z","updated_at":"2025-06-25T21:07:31.419Z","avatar_url":"https://github.com/chainstacklabs.png","language":"Python","readme":"# Chainstack AI Telegram bot\n\nAI-powered Telegram bot all knowing about Chainstack docs. It uses GPT 3.5/4 and context stored using [Actvieloop's Deep Lake](https://app.activeloop.ai/) as a vector database.\n\n- `index.py` is run to index the data from the docs.\n- `main.py` is the bot script itself.\n\n## Quickstart\n\n- Clone the repo\n\n```sh\ngit clone https://github.com/soos3d/chainstack-tg-ai-bot.git\n```\n\n- Create a new Python virtual environment\n\n```sh\npython3 -m venv chainstack-ai-tg\n```\n\n- Activate the virtual environment\n\n```sh\nsource chainstack-ai-tg/bin/activate\n```\n\n- Install dependencies\n\n```sh\npip install -r requirements.txt\n```\n\n- Add Telegram bot token and username, API keys, and Deep Lake account path to `.env.example` and rename `.env`\n\n```env\n# Bot config\nCHAINSTACK_BOT_TOKEN=\"BOT_TOKEN_FROM_BOTFATHER\" # Chainstack_AI_bot token\nCHAINSTACK_BOT_USERNAME=\"@USERNAME\"\n\n# OpenAI\nOPENAI_API_KEY=\"OPENAI_KEY\"\nEMBEDDINGS_MODEL=\"text-embedding-ada-002\"\nLANGUAGE_MODEL=\"gpt-3.5-turbo\" # gpt-4 gpt-3.5-turbo-0613\n\n# Scrape settings\nSITE_MAP=\"https://docs.chainstack.com/sitemap.xml\"\nURLS_FILTER=\"https://docs.chainstack.com/reference/\"\n\n# Deeplake vector DB\nACTIVELOOP_TOKEN=\"ACTIVELOOP_TOKEN\"\nDATASET_PATH=\"hub://USER_ID/custom_dataset\" # \"./local_chainstack_docs_db\"  # Edit with your user ID if you want to use the cloud db. or use the `./` for a local instance.\n```\n\n- Run the index file to scrape the docs and store them\n\n```sh\npython3 index.py\n```\n\n- Run the main file to start the bot\n\n```sh\npython3 main.py\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainstacklabs%2Fchainstack-tg-ai-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchainstacklabs%2Fchainstack-tg-ai-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainstacklabs%2Fchainstack-tg-ai-bot/lists"}