Simple interface for creating and managing LLM chains
Project description
LLM Blocks
LLM Blocks is a Python library that provides a flexible and easy-to-use interface for interacting with OpenAI's GPT models. It provides a set of classes and methods to handle different types of interactions with the model, such as chat, template, and streamed responses.
📚 Table of Contents
🚀 Why Use LLM Blocks
LLM Blocks simplifies the process of interacting with OpenAI's GPT models. It provides a set of classes and methods that abstract away the complexity of the underlying API calls, allowing you to focus on what matters most - building your application. Whether you're building a chatbot, a code generator, or any other application that leverages AI, LLM Blocks can help you get there faster.
📂 Repo Structure
llm_blocks
├── blocks.py
├── block_factory.py
├── __init__.py
├── requirements.dev.txt
tests
└── test_blocks.py
💻 Installation
To install LLM Blocks, you can use pip:
pip install llm_blocks
🎯 Usage
Here's a simple example of how to use LLM Blocks:
from llm_blocks import block_factory
# Create a block
block = block_factory.get('block')
# Execute the block with some content
response = block.execute("Hello, world!")
# or execute like a function
response = block("Hello, world!")
# Print the response
print(response)
🧪 Testing
To run the tests, navigate to the root directory of the project and run:
python -m unittest discover tests
🤝 Contributing
Contributions are welcome! Please read our contributing guidelines to get started.
📝 License
This project is licensed under the terms of the MIT license. See the LICENSE file for details.
📧 Contact
If you have any questions, feel free to reach out to us at contact@llmblocks.com.
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
File details
Details for the file llm-blocks-0.3.5.tar.gz
.
File metadata
- Download URL: llm-blocks-0.3.5.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58276991352bca2271c632a9f91dc4169a0d2461a1353459109ee35fd3e46a35 |
|
MD5 | 0b24bcc39379fd95e8cc709f81018ea9 |
|
BLAKE2b-256 | bfbf26892f32b75af2109f54aa5ac96558111c1fa336efc673b0a6717fc099ed |
File details
Details for the file llm_blocks-0.3.5-py3-none-any.whl
.
File metadata
- Download URL: llm_blocks-0.3.5-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a52d2ef41eb4fc5389c717d48025b841504d9be8f16fbff9a29bff4401c294bc |
|
MD5 | 33279c39a61c075835c208a7daad6651 |
|
BLAKE2b-256 | fb7a582c95cf3bd9930351eb091bd80bffc7ea11a03a83459777596bd1e4c656 |