Simple interface for creating and managing LLM chains
Project description
LLM-Blocks 📦
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
🎯 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for llm_blocks-0.3.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c249ab17edaa7be41a67340436c2e8c82b23ef23e536ed411ba77f41080f762 |
|
MD5 | 8046bf75e275a1a2f65e7aa2c9e4149e |
|
BLAKE2b-256 | 63d0191a2a811dcf9ce1ab5dd025e53caf9b0af23715b4529c8c2fb5323849a5 |