Package: demogpt
DemoGPT: Autonomous AI Agent for Effortless App Creation 🚀⚡ With just a prompt, you can create interactive Streamlit apps via 🦜️🔗 LangChain's transformative capabilities.⚡⭐ Star History⭐ Consider starring us if you're using DemoGPT so more people hear about us!🔥 DemoFor quick demo, you can visitour website📚 DocumentationSee our documentation siteherefor full how-to docs and guidelines⚡ With DemoGPT v1.3, API usage will be possible with the power ofGorillawithin 2 weeks.
After this release, you will be able use external APIs autonomously. ⚡📦 Using DemoGPT PackageThe DemoGPT package is now available and can be installed using pip. Run the following command to install the package:pipinstalldemogptTo use the DemoGPT application, simply type "demogpt" into your terminal:demogpt📑 Table of ContentsIntroductionArchitectureInstallationUsageTo-DoContributeLicense📌 IntroductionWelcome to DemoGPT, a revolutionary open-source initiative that is reshaping the landscape of Large Language Model (LLM) based application development.At 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.How DemoGPT WorksPlanning:DemoGPT starts by generating a plan from the user's instruction.Task Creation:It then creates specific tasks from the plan and instruction.Code Snippet Generation:These tasks are transferred into code snippets.Final Code Assembly:The code snippets are combined into a final code, resulting in an interactive Streamlit app.The 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.Future EnhancementsWe 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.Model FlexibilityDemoGPT 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.DemoGPT'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.By 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.In summary, DemoGPT is more than a project; it's a visionary approach, pushing the boundaries of what's possible in LLM-based application development.In the next release, we are gonna integrateGorillato 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!⚙️ ArchitectureDemoGPT Architecture🔧 InstallationFor the Package VersionYou can install the DemoGPT package by running the following command:pipinstalldemogptFor the Source Code VersionClone the repository:gitclonehttps://github.com/melih-unsal/DemoGPT.gitNavigate into the project directory:cdDemoGPTInstall DemoGPT:pipinstall.🎮 Usage📦 For the Package VersionOnce the DemoGPT package is installed, you can use it by running the following command in your terminal:demogpt🐍 For the Python InterfaceYou can now use DemoGPT as a library in your Python applications:fromdemogptimportDemoGPTagent=DemoGPT(model_name="gpt-3.5-turbo")# if OPENAI_API_KEY is not set in env variables, put it with openai_api_key argumentinstruction="Your instruction here"title="Your title here"code=""forphaseinagent(instruction=instruction,title=title):print(phase)# this will display the resulting json for each generation stageifphase["done"]:code=phase["code"]# final codeprint(code)Example Output (truncated):# phases{'stage':'draft','completed':False,'percentage':60,...}{'stage':'draft','completed':False,'percentage':64,'code':'#Get the source language ...'}...{'stage':'final','completed':True,'percentage':100,...,'code':'import streamlit as st\n...'}# Codeimportstreamlitasstfromlangchain.chainsimportLLMChainfromlangchain.chat_modelsimportChatOpenAIfromlangchain.prompts.chatimport(ChatPromptTemplate,HumanMessagePromptTemplate,SystemMessagePromptTemplate)...🌐 For the Source Code VersionIf you have cloned the repository and wish to run the source code version, you can use DemoGPT by running the following command:streamlitrundemogpt/app.pyTo-Do 📝Implement new DemoGPT pipeline including plan generation, task creation, code snippet generation, and final code assembly.Add feature to allow users to select models.Define useful LangChain tasksPublish release with the new pipeline without refinementImplement remaining LangChain tasksImplement self-refining strategy for model response refinement.Integrate 🦍 Gorilla model for API calls.Add Rapid API for expanding available API calls.Add 🦙 Llama2 integrationImplement publicly available database to accelerate the generation process by retrieving similar examples during the refining process.Add all successfully generated steps to a DB to eliminate redundant refinement.🤝 ContributeContributions 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.Please readCONTRIBUTINGfor details on ourCODE OF CONDUCT, and the process for submitting pull requests to us.📜 LicenseDemoGPT is an open-source project licensed underMIT License.For any issues, questions, or comments, please feel free to contact us or open an issue. We appreciate your feedback to make DemoGPT better.