https://github.com/griptape-ai/griptape Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions For + Enterprise + Teams + Startups + Education By Solution + CI/CD & Automation + DevOps + DevSecOps Case Studies + Customer Stories + Resources * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Pricing [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this organization All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} griptape-ai / griptape Public * Notifications * Fork 4 * Star 185 Python framework for AI workflows and pipelines with chain of thought reasoning, external tools, and memory. griptape.readthedocs.io License Apache-2.0 license 185 stars 4 forks Star Notifications * Code * Issues 0 * Pull requests 0 * Discussions * Actions * Security * Insights More * Code * Issues * Pull requests * Discussions * Actions * Security * Insights griptape-ai/griptape This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 1 branch 6 tags Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/g] Use Git or checkout with SVN using the web URL. [gh repo clone gripta] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @vasinov vasinov Add click and base CLI setup ... 4d5ad1d Apr 21, 2023 Add click and base CLI setup 4d5ad1d Git stats * 28 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time griptape Add click and base CLI setup April 21, 2023 15:41 tests Initial commit April 18, 2023 17:50 .gitignore Initial commit April 18, 2023 17:50 LICENSE Add LICENSE April 20, 2023 08:07 Makefile Update Makefile April 19, 2023 10:00 README.md Update README.md April 21, 2023 10:45 poetry.lock Add click and base CLI setup April 21, 2023 15:41 pyproject.toml Add click and base CLI setup April 21, 2023 15:41 View code [ ] griptape Main Packages griptape-flow griptape-core griptape-tools Documentation Quick Start Versioning Contributing License README.md griptape PyPI Version License Griptape Discord griptape is a modular Python framework for LLM workflows, tools, memory, and data that enables developers to: 1. Build sequential LLM pipelines and sprawling DAG workflows for complex use cases. 2. [?] Augment LLMs with chain of thought capabilities and integrate external tools, such as calculators, web search, spreadsheet editors, and API connectors. 3. Add memory to AI pipelines for context preservation and summarization. Main Packages griptape-flow Tests PyPI Version Docs Build LLM workflows and pipelines with memory, rules, and chain of thought reasoning. --------------------------------------------------------------------- griptape-core Tests PyPI Version Docs Integrate other services and functionality into LLMs as tools; run tools in any environment (local, containerized, cloud, etc.); convert tools into underlying middleware abstractions, such as ChatGPT Plugins, LangChain tools, and Fixie.ai agents. --------------------------------------------------------------------- griptape-tools Tests PyPI Version Docs Official Griptape tools registry. Documentation Please refer to Griptape Docs for: * Getting started guides. * Core concepts and design overviews. * Examples. * Contribution guidelines. Quick Start First, install griptape that includes all core modules: pip install griptape -U Second, configure an OpenAI client by getting an API key and adding it to your environment as OPENAI_API_KEY. griptape uses OpenAI Completions API to execute LLM prompts and to work with LlamaIndex data structures. With griptape, you can create structures, such as Pipelines and Workflows, that are composed of different types of steps. You can also define structures as JSON objects and load them into griptape dynamically. Let's define a simple two-step pipeline that uses tools: from decouple import config from griptape.tools import WebScraper, Calculator from griptape.flow import utils from griptape.flow.memory import PipelineMemory from griptape.flow.steps import PromptStep, ToolkitStep from griptape.flow.structures import Pipeline from griptape.flow.utils import ToolLoader scraper = WebScraper( openai_api_key=config("OPENAI_API_KEY") ) calculator = Calculator() pipeline = Pipeline( memory=PipelineMemory(), tool_loader=ToolLoader( tools=[calculator, scraper] ) ) pipeline.add_steps( ToolkitStep( tool_names=[calculator.name, scraper.name] ), PromptStep( "Say the following like a pirate: {{ input }}" ) ) pipeline.run("Give me a summary of https://en.wikipedia.org/wiki/Large_language_model") print(utils.Conversation(pipeline.memory).to_string()) Boom! Our first multistep LLM pipeline with memory that used tools generated a conversation: Q: Give me a summary of https://en.wikipedia.org/wiki/ Large_language_model A: Arr, me hearties! Large language models have been developed and set sail since 2018, includin' BERT, GPT-2, GPT-3 [...] Versioning griptape is in early development and its APIs and documentation are subject to change. Until we stabilize the API and release version 1.0.0, we will use minor versions (i.e., x.Y.z) to introduce breaking features and patch versions (i.e., x.y.Z) for bug fixes. Contributing Contributions in the form of bug reports, feature ideas, or pull requests are super welcome! Take a look at the current issues and if you'd like to help please submit a pull request with some tests. License griptape is available under the Apache 2.0 License. About Python framework for AI workflows and pipelines with chain of thought reasoning, external tools, and memory. griptape.readthedocs.io Topics python nlp ai openai gpt cohere huggingface llm Resources Readme License Apache-2.0 license Stars 185 stars Watchers 6 watching Forks 4 forks Report repository Releases 6 tags Used by 1 * @griptape-ai @griptape-ai / griptape-labs Contributors 2 * @vasinov vasinov Vasily Vasinov * @ilayni ilayni Languages * Makefile 53.1% * Python 46.9% Footer (c) 2023 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.