█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

DemoGPT

एक लाइन के निर्देश से Streamlit UI वाला working LangChain ऐप बनाएं

Low-Code & No-Code Buildersओपन सोर्स
भाषा
Python
लाइसेंस
MIT
$pip install demogpt
संक्षेप में

DemoGPT क्या है?

DemoGPT एक लाइन के निर्देश से Streamlit UI वाला working LangChain ऐप बनाएं. यह App UIs & Builders टूल्स की Low-Code & No-Code Builders श्रेणी में आता है; ओपन सोर्स है, Python में लिखा गया है और MIT लाइसेंस के तहत है। शुरू करने के लिए: इंस्टॉल करें.

सारांश

DemoGPT एक ओपन सोर्स प्रोजेक्ट है जो लिखे हुए निर्देश से LLM ऐप्लिकेशन बनाता है। आप बताते हैं कि आपको किस तरह का ऐप चाहिए और उसे एक शीर्षक देते हैं; DemoGPT उसके लिए LangChain कोड लिखता है और नतीजे को एक इंटरैक्टिव Streamlit ऐप के रूप में पैक करता है, ताकि आउटपुट ऐसी चीज़ हो जिस पर आप क्लिक करके चला सकें, न कि ऐसी स्क्रिप्ट जिसे आपको अभी भी खुद जोड़ना पड़े।

DemoGPT architecture diagram: an instruction flows through Plan Generation, Plan Checker, Task Generation, Tasks Checker, Code Generator, Code Tester, Code Combiner and a final Code Tester to the Final App, with refine loops and Plan, Task and Code databases
DemoGPT's plan-based pipeline, with a checker or tester after each generation step. The README lists the example databases and self-refining as planned work.DemoGPT README ↗

जनरेशन एक चरणबद्ध पाइपलाइन (staged pipeline) के रूप में चलता है। DemoGPT पहले निर्देश से एक प्लान तैयार करता है, फिर प्लान को अलग-अलग विशिष्ट टास्क में तोड़ता है, हर टास्क को एक कोड स्निपेट में बदलता है, और अंत में सभी स्निपेट्स को मिलाकर एक Streamlit प्रोग्राम बनाता है। प्रोजेक्ट के architecture diagram में चरणों के बीच checker और tester स्टेप भी जुड़े हैं, जिनमें feedback loops हैं जो प्लान, टास्क लिस्ट या कोड को सुधार के लिए वापस भेजते हैं। Python से वही पाइपलाइन एक generator के रूप में उपलब्ध है, जो हर चरण के लिए एक JSON रिकॉर्ड देता है, जिसमें पूर्णता का प्रतिशत और अब तक का कोड होता है।

पैकेज में DemoGPT AgentHub (`demogpt_agenthub`) भी शामिल है, जो कोड में सीधे agents बनाने की लाइब्रेरी है। यह `ToolCallingAgent` और `ReactAgent` देता है, जो अपना reasoning, फ़ैसले और tool calls step by step प्रिंट करता है; अपने tools लिखने के लिए `BaseTool` क्लास, built-in tools का एक सेट, और आपकी अपनी फ़ाइलों पर retrieval के लिए `BaseRAG` क्लास भी देता है, जिसे खुद एक agent को tool के रूप में दिया जा सकता है।

यह क्या करता है

  • प्रॉम्प्ट से ऐप जनरेशन: एक निर्देश और शीर्षक से LangChain कोड बनता है, जो इंटरैक्टिव Streamlit ऐप में पैक होता है
  • Staged pipeline — प्लान, टास्क, कोड स्निपेट्स, अंतिम असेंबली — और Python API से हर चरण JSON के रूप में स्ट्रीम होता है
  • `demogpt` कमांड से लोकल Streamlit इंटरफ़ेस के रूप में चलता है, या `from demogpt import DemoGPT` से लाइब्रेरी के रूप में
  • AgentHub agents: `ToolCallingAgent` और `ReactAgent`, जो अपना reasoning और हर tool call दिखाता है
  • Built-in tools में Tavily search, weather, Wikipedia, Bash, Python, arXiv, YouTube search, Stack Overflow, Wikidata, PubMed और YOLO object detection शामिल हैं, साथ ही `BaseTool` से custom tools भी
  • `BaseRAG` से PDF, TXT, CSV और JSON फ़ाइलों पर retrieval, Chroma, Pinecone या FAISS vector stores के साथ; यह अकेले या agent tool के रूप में इस्तेमाल हो सकता है

शुरू करें

DemoGPT PyPI से इंस्टॉल होता है। generator डिफ़ॉल्ट रूप से OpenAI model इस्तेमाल करता है, इसलिए अपने environment में `OPENAI_API_KEY` सेट करें (या Python क्लास को `openai_api_key` पास करें)।

इंस्टॉल करें

एक ही पैकेज में ऐप generator और AgentHub लाइब्रेरी दोनों शामिल हैं। इसके बजाय source से काम करने के लिए repo को clone करके लोकली इंस्टॉल करें।

bashbash
pip install demogpt

# or from source
git clone https://github.com/melih-unsal/DemoGPT.git
cd DemoGPT
pip install .

ऐप generator लॉन्च करें

`demogpt` कमांड Streamlit इंटरफ़ेस खोलता है, जहाँ आप निर्देश टाइप करते हैं। source checkout से, Streamlit ऐप सीधे चलाएं।

bashbash
demogpt

# from a source checkout
streamlit run demogpt/app.py
Screen recording of the DemoGPT Streamlit interface: an OpenAI key and model in the sidebar, the idea 'Create a system that can generate medium blog post from website' named Web Blogger, stage-by-stage progress messages, and the generated LangChain and Streamlit code
What the `demogpt` interface does with one idea: plan, tasks, code snippets, then the final Streamlit program.DemoGPT README ↗

Python से ऐप बनाएं

agent पर iterate करने से हर generation चरण के लिए एक JSON रिकॉर्ड मिलता है; `done` चिह्नित रिकॉर्ड में अंतिम Streamlit कोड होता है।

pythonpython
from demogpt import DemoGPT

agent = DemoGPT(model_name="gpt-3.5-turbo")
instruction = "Your instruction here"
title = "Your title here"
code = ""
for phase in agent(instruction=instruction, title=title):
    print(phase)
    if phase["done"]:
        code = phase["code"]
print(code)

AgentHub से agent बनाएं

built-in tools को एक LLM wrapper के साथ जोड़ें; `verbose=True` agent का reasoning और tool calls प्रिंट करता है।

pythonpython
from demogpt_agenthub.agents import ToolCallingAgent
from demogpt_agenthub.llms import OpenAIChatModel
from demogpt_agenthub.tools import TavilySearchTool, WeatherTool

llm = OpenAIChatModel(model_name="gpt-4o-mini")
agent = ToolCallingAgent(tools=[TavilySearchTool(), WeatherTool()], llm=llm, verbose=True)
print(agent.run("What's the weather like in New York today?"))

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

  • हाथ से LangChain कोड लिखे बिना एक छोटे LLM tool के आइडिया को क्लिक करने योग्य Streamlit prototype में बदलें
  • Python से LangChain का शुरुआती प्रोग्राम बनाएं और खाली फ़ाइल से शुरू करने के बजाय लौटाए गए कोड को संपादित करें
  • ऐसा tool-using agent बनाएं जो वेब पर खोज करे, Python या Bash चलाए और मौसम देखे, और उसका reasoning चरण-दर-चरण प्रिंट हो
  • RAG pipeline के जरिए अपनी PDF, CSV या JSON फ़ाइलों से सवालों के जवाब पाएं, जिसे agent दूसरे tools के साथ कॉल कर सके

How DemoGPT compares

DemoGPT alongside other open-source low-code & no-code builders tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
Langflow★ 157kAI एजेंट और वर्कफ़्लो के लिए विज़ुअल बिल्डर, जिसमें बिल्ट-इन API और MCP सर्वर शामिल हैं
OpenDesign★ 111kLocal-first डेस्कटॉप ऐप जो एक brief को prototypes, decks, images और video में बदलता है, और इसके लिए आपके मशीन पर पहले से मौजूद coding agents का इस्तेमाल करता है
NocoDB★ 65.7kकिसी भी SQL डेटाबेस को नो-कोड, स्प्रेडशीट-जैसे ऐप में बदलें
Flowise★ 55.6kड्रैग-एंड-ड्रॉप कैनवास से LLM ऐप और AI एजेंट विज़ुअल तरीके से बनाएं
JeecgBoot★ 48.7kbuilt-in LLM ऐप लेयर वाला Java low-code प्लेटफ़ॉर्म
ToolJet★ 41.3kइंटरनल टूल्स और डैशबोर्ड बनाने के लिए ओपन सोर्स लो-कोड प्लेटफ़ॉर्म
Appsmith★ 41.3kआंतरिक टूल, एडमिन पैनल और डैशबोर्ड बनाने के लिए ओपन सोर्स लो-कोड प्लेटफ़ॉर्म
DemoGPT★ 1.9kएक लाइन के निर्देश से Streamlit UI वाला working LangChain ऐप बनाएं