{"id":13593014,"url":"https://github.com/melih-unsal/DemoGPT","last_synced_at":"2025-04-09T02:32:13.183Z","repository":{"id":173300018,"uuid":"650549146","full_name":"melih-unsal/DemoGPT","owner":"melih-unsal","description":"🤖 Everything you need to create an LLM Agent—tools, prompts, frameworks, and models—all in one place.","archived":false,"fork":false,"pushed_at":"2024-11-04T21:12:14.000Z","size":26158,"stargazers_count":1796,"open_issues_count":6,"forks_count":208,"subscribers_count":18,"default_branch":"main","last_synced_at":"2025-04-02T23:07:09.572Z","etag":null,"topics":["agent","agents","ai","artificial-intelligence","autogpt","autonomous-agents","chatgpt","chatgpt-api","demo","gpt-4","gpt3-turbo","langchain","langchain-app","langchain-python","llama2","llms","openai","python","streamlit","streamlit-application"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/melih-unsal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"docs/ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-07T09:56:20.000Z","updated_at":"2025-04-01T23:53:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"c11a719d-9b00-4e85-b40c-81ff11d45366","html_url":"https://github.com/melih-unsal/DemoGPT","commit_stats":{"total_commits":321,"total_committers":7,"mean_commits":"45.857142857142854","dds":"0.25545171339563866","last_synced_commit":"9e8b39e1b0278ab929e8c069477e47449c35a530"},"previous_names":["melih-unsal/demogpt"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melih-unsal%2FDemoGPT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melih-unsal%2FDemoGPT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melih-unsal%2FDemoGPT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melih-unsal%2FDemoGPT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/melih-unsal","download_url":"https://codeload.github.com/melih-unsal/DemoGPT/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247814898,"owners_count":21000664,"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":["agent","agents","ai","artificial-intelligence","autogpt","autonomous-agents","chatgpt","chatgpt-api","demo","gpt-4","gpt3-turbo","langchain","langchain-app","langchain-python","llama2","llms","openai","python","streamlit","streamlit-application"],"created_at":"2024-08-01T16:01:15.666Z","updated_at":"2025-04-09T02:32:08.144Z","avatar_url":"https://github.com/melih-unsal.png","language":"Python","funding_links":[],"categories":["[DemoGPT](https://github.com/melih-unsal/DemoGPT)","Automation","Autonomous AI Agents","Auto-GPT Related","Tools","Project List","Developer Libraries, SDKs, and APIs","Projects","A01_文本生成_文本对话","ChatGPT Integrated Projects","Python","Summary","Large Language Models ##","Building","Frameworks and Platforms","工具","Open-source Projects","chatgpt-api","Web-Based Tools","Developer \u0026 Coding Assistants","📚 Tools","Agents","Tools \u0026 Resources","1. Local Agents","SDK, Libraries, Frameworks","AI Coding Agents","AI Agent Frameworks","Table of Open-Source AI Agents Projects"],"sub_categories":["Links","Prompt Generator","Open-source projects","\u003cspan id=\"tool\"\u003eLLM (LLM \u0026 Tool)\u003c/span\u003e","Python","Applications","大语言对话模型及数据","Tools","代理","CLI Utilities","Code Generation \u0026 Refactoring","🌟 What You'll Find Here:","Low-code \u0026 Visual Flow","Python library, sdk or frameworks","General Purpose","Agents"],"readme":"# 🤖 From Demo to Product: The All-in-One Agent Library\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"\"\u003e\u003cimg src=\"assets/banner_small.png\" alt=\"DemoGPT logo: Generate automatic LangChain pipelines\" width=\"450px\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cb\u003e⚡ Everything you need to create an LLM Agent is here. Access a comprehensive suite of tools, prompts, frameworks, and a knowledge hub of LLM models—all in one place to streamline your agent development.\u003c/b\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://pepy.tech/project/demogpt\"\u003e\u003cimg src=\"https://static.pepy.tech/badge/demogpt\" alt=\"Downloads\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/melih-unsal/DemoGPT/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/release/melih-unsal/DemoGPT\" alt=\"Releases\"\u003e\u003c/a\u003e\n\u003ca href=\"https://demogpt.io\"\u003e\u003cimg src=\"https://img.shields.io/badge/Official%20Website-demogpt.io-blue?style=flat\u0026logo=world\u0026logoColor=white\" alt=\"Official Website\"\u003e\u003c/a\u003e\n\u003ca href=\"https://docs.demogpt.io\"\u003e\u003cimg src=\"https://img.shields.io/badge/Documentation-📘-blueviolet\" alt=\"DemoGPT Documentation\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"docs/README_CN.md\"\u003e\u003cimg src=\"https://img.shields.io/badge/文档-中文版-blue.svg\" alt=\"CN doc\"\u003e\u003c/a\u003e\n\u003ca href=\"README.md\"\u003e\u003cimg src=\"https://img.shields.io/badge/document-English-blue.svg\" alt=\"EN doc\"\u003e\u003c/a\u003e\n\u003ca href=\"docs/ROADMAP_CN.md\"\u003e\u003cimg src=\"https://img.shields.io/badge/ROADMAP-路线图-blue\" alt=\"roadmap\"\u003e\u003c/a\u003e\n\u003ca href=\"docs/ROADMAP.md\"\u003e\u003cimg src=\"https://img.shields.io/badge/ROADMAP-english-red\" alt=\"roadmap\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" alt=\"License: MIT\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/melih-unsal/DemoGPT/issues?q=is%3Aopen+is%3Aissue\"\u003e\u003cimg src=\"https://img.shields.io/github/issues/melih-unsal/DemoGPT.svg?maxAge=2592000000000000\" alt=\"Open an issue\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/melih-unsal/DemoGPT/issues?q=is%3Aissue+is%3Aclosed\"\u003e\u003cimg src=\"https://img.shields.io/github/issues-closed-raw/melih-unsal/DemoGPT.svg?maxAge=25920000000000000000\" alt=\"Closed issues\"\u003e\u003c/a\u003e\n\u003ca href=\"https://star-history.com/#melih-unsal/DemoGPT\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/melih-unsal/DemoGPT?style=social\" alt=\"DemoGPT  Stars\"\u003e\u003c/a\u003e\n\u003ca href=\"\"\u003e\u003cimg src=\"https://img.shields.io/github/forks/melih-unsal/DemoGPT\" /\u003e \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://twitter.com/demo_gpt\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/demo_gpt?style=social\" alt=\"Twitter Follow\"\u003e\u003c/a\u003e\n\u003ca href=\"https://demogpt.medium.com/\"\u003e\u003cimg src=\"https://img.shields.io/static/v1?style=for-the-badge\u0026message=Medium\u0026color=000000\u0026logo=Medium\u0026logoColor=FFFFFF\u0026label=\" alt=\"DemoGPT Medium\" height=\"20\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://www.producthunt.com/posts/demogpt?utm_source=badge-featured\u0026utm_medium=badge\u0026utm_souce=badge-demogpt\" target=\"_blank\"\u003e\u003cimg src=\"https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=406106\u0026theme=light\" alt=\"DemoGPT - Auto\u0026#0032;generative\u0026#0032;AI\u0026#0032;app\u0026#0032;generator\u0026#0032;with\u0026#0032;the\u0026#0032;power\u0026#0032;of\u0026#0032;Llama\u0026#0032;2 | Product Hunt\" height=\"20\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://demogpt.streamlit.app\"\u003e\u003cimg src=\"https://static.streamlit.io/badges/streamlit_badge_black_white.svg\" alt=\"Streamlit application\"\u003e\u003c/a\u003e\n\u003ca href=\"https://huggingface.co/spaces/melihunsal/demogpt\"\u003e\u003cimg src=\"https://img.shields.io/badge/%F0%9F%A4%97-Spaces-yellow\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## ⭐ Star History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=melih-unsal/DemoGPT\u0026type=Timeline)](https://star-history.com/#melih-unsal/DemoGPT\u0026Timeline)\n\n⭐ Consider starring us if you're using DemoGPT so more people hear about us!\n\n## 🔥 Demo\n\nFor quick demo, you can visit [our website](https://demogpt.io)\n\n![Tweet Generator](assets/web_blogger.gif)\n\n## 📚 Documentation\n\nSee our documentation site [here](https://docs.demogpt.io/) for full how-to docs and guidelines\n\n⚡ With DemoGPT v1.3, API usage will be possible with the power of **Gorilla** within 2 weeks.\nAfter this release, you will be able use external APIs autonomously. ⚡\n\n## 📦 Using DemoGPT Package\n\nThe DemoGPT package is now available and can be installed using pip. Run the following command to install the package:\n\n```sh\npip install demogpt\n```\n\nTo use the DemoGPT application, simply type \"demogpt\" into your terminal:\n\n```sh\ndemogpt\n```\n\n\n## 📑 Table of Contents\n\n- [Introduction](#-introduction)\n- [Architecture](#%EF%B8%8F-architecture)\n- [Installation](#-installation)\n- [Usage](#-usage)\n- [To-Do](#to-do-)\n- [Contribute](#-contribute)\n- [Citations](#-citations) \n- [License](#-license)\n\n## 📌 Introduction\n\nWelcome to DemoGPT, a revolutionary open-source initiative that is reshaping the landscape of Large Language Model (LLM) based application development.\n\nAt the heart of DemoGPT, the capabilities of GPT-3.5-turbo come to life, driving the automatic generation of LangChain code. This process is enriched with a sophisticated architecture that translates user instructions into interactive Streamlit applications.\n\n### How DemoGPT Works\n\n1. **Planning:** DemoGPT starts by generating a plan from the user's instruction.\n2. **Task Creation:** It then creates specific tasks from the plan and instruction.\n3. **Code Snippet Generation:** These tasks are transferred into code snippets.\n4. **Final Code Assembly:** The code snippets are combined into a final code, resulting in an interactive Streamlit app.\n\nThe LangChain code, once generated, is not a mere endpoint but a transformative stage. It evolves into a user-friendly Streamlit application, adding an interactive dimension to the logic crafted. This metamorphosis embodies DemoGPT's commitment to user engagement and experience.\n\n### Future Enhancements\n\nWe are planning to add a publicly available database that will accelerate the generation process by retrieving similar examples during the refining process. This innovation will further streamline the development workflow, making it more efficient and responsive.\n\n### Model Flexibility\n\nDemoGPT is designed to be adaptable, capable of using any LLM model that meets specific performance criteria in terms of code generation. This flexibility ensures that DemoGPT remains at the forefront of technology, embracing new advancements in LLM.\n\nDemoGPT's iterative development process remains a cornerstone of its innovation. Each code segment undergoes individual testing, and the self-refining strategy ensures an efficient and error-minimized workflow. This fusion of meticulous testing and refinement is a testament to DemoGPT's pursuit of excellence.\n\nBy transcending traditional coding paradigms, DemoGPT is pioneering a new era in LLM-based applications. It's not just about code generation; it's about crafting intelligent, interactive, and inclusive solutions.\n\nIn summary, DemoGPT is more than a project; it's a visionary approach, pushing the boundaries of what's possible in LLM-based application development.\n\nIn the next release, we are gonna integrate **Gorilla** to DemoGPT to enable DemoGPT to use external APIs autonomously. The future is bright, and the journey has just begun. Join us in this exciting adventure!\n\n\n## ⚙️ Architecture\n### DemoGPT Architecture\n![DemoGPT Architecture](assets/plan_based_pipeline.png?raw=true \"DemoGPT Architecture\")\n\n## 🔧 Installation\n\n### For the Package Version\n\nYou can install the DemoGPT package by running the following command:\n\n```sh\npip install demogpt\n```\n\n### For the Source Code Version\n\n\n1. Clone the repository:\n    ```sh\n    git clone https://github.com/melih-unsal/DemoGPT.git\n    ```\n2. Navigate into the project directory:\n    ```sh\n    cd DemoGPT\n    ```\n3. Install DemoGPT: \n    ```sh\n    pip install .\n    ```\n\n## 🎮 Usage\n\n### 📦 For the Package Version\n\nOnce the DemoGPT package is installed, you can use it by running the following command in your terminal:\n\n```sh\ndemogpt\n```\n\n### 🐍 For the Python Interface\n\nYou can now use DemoGPT as a library in your Python applications:\n\n```python\nfrom demogpt import DemoGPT\nagent = DemoGPT(model_name=\"gpt-3.5-turbo\") # if OPENAI_API_KEY is not set in env variables, put it with openai_api_key argument\ninstruction = \"Your instruction here\"\ntitle = \"Your title here\"\ncode = \"\"\nfor phase in agent(instruction=instruction, title=title):\n    print(phase) # this will display the resulting json for each generation stage\n    if phase[\"done\"]:\n        code = phase[\"code\"] # final code\nprint(code)\n```\n\nExample Output (truncated):\n\n```bash\n# phases\n{'stage': 'draft', 'completed': False, 'percentage': 60, ...}\n{'stage': 'draft', 'completed': False, 'percentage': 64, 'code': '#Get the source language ...'}\n...\n{'stage': 'final', 'completed': True, 'percentage': 100, ... , 'code': 'import streamlit as st\\n...'}\n```\n\n```python\n# Code\nimport streamlit as st\nfrom langchain.chains import LLMChain\nfrom langchain_community.chat_models import ChatOpenAI\nfrom langchain.prompts.chat import (ChatPromptTemplate,\n                                    HumanMessagePromptTemplate,\n                                    SystemMessagePromptTemplate)\n...\n```\n\n### 🌐 For the Source Code Version\n\nIf you have cloned the repository and wish to run the source code version, you can use DemoGPT by running the following command:\n\n```sh\nstreamlit run demogpt/app.py\n```\n\n## To-Do 📝\n- [x] Implement new DemoGPT pipeline including plan generation, task creation, code snippet generation, and final code assembly.\n- [x] Add feature to allow users to select models.\n- [x] Define useful LangChain tasks\n- [x] Publish release with the new pipeline without refinement\n- [ ] Implement remaining LangChain tasks\n- [ ] Implement self-refining strategy for model response refinement.\n- [ ] Integrate 🦍 Gorilla model for API calls.\n- [ ] Add Rapid API for expanding available API calls. \n- [ ] Add 🦙 Llama2 integration\n- [ ] Implement publicly available database to accelerate the generation process by retrieving similar examples during the refining process.\n- [ ] Add all successfully generated steps to a DB to eliminate redundant refinement.\n\n## 🤝 Contribute\n\nContributions to the DemoGPT project are welcomed! Whether you're fixing bugs, improving the documentation, or proposing new features, your efforts are highly appreciated. Please check the open issues before starting any work.\n\n\u003e Please read [`CONTRIBUTING`](CONTRIBUTING.md) for details on our [`CODE OF CONDUCT`](CODE_OF_CONDUCT.md), and the process for submitting pull requests to us.\n\n## 📄 Citations\n\nDemoGPT has been referenced in various research papers for its innovative approach to app creation using autonomous AI agents. Below is a list of papers that have cited DemoGPT:\n\n- Lei Wang, Chen Ma , Xueyang Feng , Zeyu Zhang, Hao Yang, Jingsen Zhang, Zhiyuan Chen, Jiakai Tang, Xu Chen, Yankai Lin, Wayne Xin , Zhao, Zhewei Wei, Ji-Rong Wen, \"A Survey on Large Language Model based Autonomous Agents\", 2023. [Link to paper](https://arxiv.org/pdf/2308.11432.pdf)\n- Yuan Li, Yixuan Zhang, Lichao Sun, \"METAAGENTS: SIMULATING INTERACTIONS OF HUMAN BEHAVIORS FOR LLM-BASED TASK-ORIENTED COORDINATION VIA COLLABORATIVE GENERATIVE AGENTS\" Journal/Conference, 2023. [Link to paper](https://arxiv.org/pdf/2310.06500.pdf)\n- Yuheng Cheng, Ceyao Zhang, Zhengwen Zhang, Xiangrui Meng, Sirui Hong, Wenhao Li, Zihao Wang, Zekai Wang, Feng Yin, Junhua Zhao, Xiuqiang He, \"EXPLORING LARGE LANGUAGE MODEL BASED INTELLIGENT AGENTS: DEFINITIONS, METHODS, AND PROSPECTS\", 2024. [Link to paper](https://arxiv.org/pdf/2401.03428.pdf)\n- Mikhail, Poludin. Optimalizace LLM agentů pro analýzu tabulkových dat: Integrace LoRA pro zvýšení kvality. MS thesis. České vysoké učení technické v Praze. Vypočetní a informační centrum., 2024. [Link to paper](https://dspace.cvut.cz/bitstream/handle/10467/115388/F3-DP-2024-Poludin-Mikhail-Optimizing_LLM-Powered_Agents_for_Tabular_Data_Analytics_Integrating_LoRA_for_Enhanced_Quality.pdf?sequence=-1)\n\nThis acknowledgment from the academic community highlights the potential and utility of DemoGPT in advancing the field of AI-driven development tools.\n\n\n## 📜 License\n\nDemoGPT is an open-source project licensed under [MIT License](LICENSE).\n\n---\n\nFor any issues, questions, or comments, please feel free to contact us or open an issue. We appreciate your feedback to make DemoGPT better.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelih-unsal%2FDemoGPT","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmelih-unsal%2FDemoGPT","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelih-unsal%2FDemoGPT/lists"}