{"id":18794134,"url":"https://github.com/yandex-cloud-examples/yc-yagpt-chatbot-streamlit","last_synced_at":"2025-04-11T02:40:38.492Z","repository":{"id":228803802,"uuid":"774946813","full_name":"yandex-cloud-examples/yc-yagpt-chatbot-streamlit","owner":"yandex-cloud-examples","description":"Чатбот на базе YandexGPT с поддержкой контекста общения с пользователем и возможностью выбора настроек модели.","archived":false,"fork":false,"pushed_at":"2025-02-13T09:35:26.000Z","size":112,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-25T00:16:30.137Z","etag":null,"topics":["langchain","streamlit","yandex-cloud","yandexcloud","yandexgpt"],"latest_commit_sha":null,"homepage":"","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/yandex-cloud-examples.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-03-20T13:44:42.000Z","updated_at":"2025-02-13T09:35:31.000Z","dependencies_parsed_at":"2024-11-07T21:30:34.926Z","dependency_job_id":"d8875008-44ac-43ec-84a2-56f4a7e21cc3","html_url":"https://github.com/yandex-cloud-examples/yc-yagpt-chatbot-streamlit","commit_stats":null,"previous_names":["yandex-cloud-examples/yc-yagpt-chatbot-streamlit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yandex-cloud-examples%2Fyc-yagpt-chatbot-streamlit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yandex-cloud-examples%2Fyc-yagpt-chatbot-streamlit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yandex-cloud-examples%2Fyc-yagpt-chatbot-streamlit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yandex-cloud-examples%2Fyc-yagpt-chatbot-streamlit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yandex-cloud-examples","download_url":"https://codeload.github.com/yandex-cloud-examples/yc-yagpt-chatbot-streamlit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248330926,"owners_count":21085800,"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":["langchain","streamlit","yandex-cloud","yandexcloud","yandexgpt"],"created_at":"2024-11-07T21:28:17.289Z","updated_at":"2025-04-11T02:40:38.475Z","avatar_url":"https://github.com/yandex-cloud-examples.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## YaGPT чатбот с поддержкой контекста общения с пользователем \n\n### Краткая информация\nДанный YaGPT-бот использует следующие компоненты:\n- [Yandex GPT](https://cloud.yandex.ru/services/yandexgpt)\n- [Yandex GPT for Langchain](https://python.langchain.com/docs/integrations/chat/yandex)\n- [Streamlit](https://streamlit.io/)\n- [LangChain](https://python.langchain.com/)\n\n### Структура репозитория и порядок работы с ботом\n- в файле ``.env`` находятся системные переменные (которые при запуске в облаке можно указать как secrets)\n```\nYAGPT_FOLDER_ID = \nYAGPT_API_KEY = \n```\n- файл `requirements.txt` традиционно содержит в себе список необходимых для работы программы модулей, которые устанавливаются командой \n```pip install -r requirements.txt ```\n- в папке `images` хранится логотип компании, который можно использовать в графическом интерфейсе streamlit\n- `yagpt-chat-with-history-01.py` запускаемый файл `streamlit run yagpt-chat-with-history-01.py`. Адаптирован для запуска на локальном сервере или ПК, требует заполнения .env файла\n- `yagpt-chat-with-history-02.py` запускаемый файл. Адаптирован для запуска в [Streamlit Community Cloud](https://docs.streamlit.io/streamlit-community-cloud/get-started). Требует задания системных переменных в streamlit secrets при разворачивании приложения.\n- `yagpt-chat-with-history-03.py` запускаемый файл. Адаптирован для запуска в [Streamlit Community Cloud](https://docs.streamlit.io/streamlit-community-cloud/get-started). Не требует задания системных переменных в streamlit secrets при разворачивании приложения. Системные переменные (см. выше) можно задать прямо из веб-интерфейса приложения.\n\n### Запуск в Streamlit Community Cloud\nВы можете развернуть данное приложение через Streamlit Community Cloud, следуя [инструкциям](https://docs.streamlit.io/streamlit-community-cloud/get-started)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyandex-cloud-examples%2Fyc-yagpt-chatbot-streamlit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyandex-cloud-examples%2Fyc-yagpt-chatbot-streamlit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyandex-cloud-examples%2Fyc-yagpt-chatbot-streamlit/lists"}