DemoGPT is an open-source project designed to quickly create intelligent agent applications based on large language models (LLMs) through user prompts. It provides a one-stop solution that integrates the tools, prompts, frameworks, and models needed to create LLM agents.
Main Uses
DemoGPT's core goal is to simplify the development process of LLM agent applications. Users only need to provide a prompt to automatically generate LangChain code and convert it into an interactive Streamlit application. In addition, the DemoGPT AgentHub library allows users to create, customize, and use various AI agents.
Main Capabilities
- Automatic Code Generation: DemoGPT uses GPT-3.5-turbo to automatically generate LangChain code, and through steps such as planning, task creation, code snippet generation, and final code assembly, converts user instructions into an interactive Streamlit application.
- AgentHub Library: Provides the ability to create, customize, and use AI agents. It has multiple built-in tools, including TavilySearchTool, WikipediaTool, YouTubeSearchTool, StackOverFlowTool, RequestUrlTool, and supports creating custom tools.
- Agent Types: Supports agent types such as ReactAgent, capable of handling complex multi-step queries and displaying detailed reasoning and decision-making processes.
- RAG Support: Provides BaseRAG to facilitate retrieval-augmented generation, and can be combined with agents to implement document-based reasoning.
- Model Flexibility: By design, it can adapt to any LLM model that meets code generation performance standards.
Usage
- Installation: You can install the DemoGPT package via pip (
pip install demogpt), or clone the source code repository (git clone https://github.com/melih-unsal/DemoGPT.git, thencd DemoGPT,pip install .). - Run: After installation, enter
demogptin the terminal to use the DemoGPT application. It can also be used as a Python library in applications. - Create Tools: Custom tools can be created with simple code, for example, creating an exponentiation calculation tool.
- Create Agents: Use AgentHub to create agents, and use them to ask questions or perform tasks.
- Use ReactAgent: ReactAgent provides a detailed reasoning process and can handle multi-step queries and computer vision tasks (such as YOLO object detection).
- Combine with RAG: RAG can be used in agents to implement document-based reasoning.
Applicable Scenarios
DemoGPT is suitable for developers, researchers, and enthusiasts who need to quickly build LLM applications. Specific scenarios include: automatically generating LangChain code, creating interactive Streamlit applications, developing customized AI agents, implementing retrieval-augmented generation, etc.
Limitations
- The current version (v1.3) plans to implement API usage through Gorilla within two weeks, after which external APIs can be used independently.
- Future plans include adding a public database to accelerate the generation process and integrating models such as Llama2.
- The project uses the MIT license and is open source and free.
- Specific information such as fees, pricing, and platform support is not yet provided.