Skip to main content

Simple interface for creating and managing LLM chains

Project description

LLM-Blocks 📦

GitHub stars PyPI

LLM-Blocks is a Python library that provides a simple interface for creating and managing Language Learning Model (LLM) chains. It is designed to make it easy to create, manage, and execute blocks of code that interact with OpenAI's GPT-3.5-turbo model.

📖 Table of Contents

  1. Why Use LLM-Blocks
  2. Repo Structure
  3. Installation
  4. Usage
  5. Contributing
  6. License

🎯 Why Use LLM-Blocks

LLM-Blocks simplifies the process of creating and managing LLM chains. It provides a set of classes and methods that abstract the complexities of interacting with OpenAI's GPT-3.5-turbo model. With LLM-Blocks, you can focus on building your application without worrying about the underlying details of the OpenAI API.

🏗️ Repo Structure

.
├── .gitignore
├── llm_blocks
│   ├── __init__.py
│   ├── blocks.py
│   └── block_factory.py
├── requirements.txt
├── setup.py
└── turbo_docs.toml

💻 Installation

To install LLM-Blocks, run the following command in your terminal:

pip install llm-blocks

🚀 Usage

Here's a simple example of how to use LLM-Blocks:

from llm_blocks import get

# Create a block
block = get("block")

# Execute the block
response = block("Hello, world!")
print(response)

🤝 Contributing

Contributions are welcome! Please feel free to submit a pull request.

📜 License

LLM-Blocks is licensed under the MIT License. See the LICENSE file for more details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm-blocks-0.3.4.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

llm_blocks-0.3.4-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page