Skip to main content

LLM-Blocks ⛓️

GitHub stars PyPI version

LLM-Blocks is a Python library that provides a simple interface for creating and managing Language Learning Model (LLM) chains. It leverages the power of OpenAI's GPT-3.5-turbo to generate chat-like completions.

📖 Table of Contents

🚀 Why Use LLM-Blocks

LLM-Blocks stands out from the crowd by providing a super simple interface for creating and managing LLM chains. It's perfect for developers who want to leverage the power of GPT-3.5-turbo without getting into the complexities of managing the model. With LLM-Blocks, you can create GPT completions and stream or batch outputs with ease.

📁 Repo Structure

.
├── .gitignore
├── .env
├── llm_blocks
│   ├── chat_utils.py
│   └── __init__.py
├── requirements.txt
├── setup.py
└── turbo_docs.toml

🔧 Installation

To install LLM-Blocks, run the following command:

pip install llm-blocks

💻 Example Usage

Here's a simple example of how to use the GenericChain class in LLM-Blocks:

from llm_blocks.chat_utils import GenericChain

# Initialize the GenericChain class
chain = GenericChain(template="Hello, {name}!")

# Call the model with the given inputs
response = chain(name="John Doe")

# Print the response
print(response)

In this example, the GenericChain class is initialized with a template. The model is then called with the given inputs, and the response is printed.

❤️ Support

If you like this project, please give it a ⭐ on GitHub!

Metadata

Release files for llm-blocks 0.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llm-blocks 0.2.6
File Size Uploaded
llm-blocks-0.2.6.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-blocks 0.2.6
File Interpreter ABI Platform
llm_blocks-0.2.6-py3-none-any.whl Python 3 none any Details

Total release size: 6.6 kB

Release files / llm-blocks-0.2.6.tar.gz

Download URL llm-blocks-0.2.6.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
defa5b0341afbfe8f4fb44ed2dae721bb8ef24693c9d555528dbd4c51d546ec7
BLAKE2b-256 checksum
How to use checksums
a227dfa20041dc56309a72c7379e62040fd98586400cbe95f48ddb5c831fefc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.1

Release files / llm_blocks-0.2.6-py3-none-any.whl

Download URL llm_blocks-0.2.6-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb7de31ec27e7b664272300b054b51cac7a3f8f97fb5c1a2e4c1c21cd5fa84d7
BLAKE2b-256 checksum
How to use checksums
5d3ee8023d19471075251a00018b5b2070af9be591e78b5ce4046ef1ba6bdaa2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.1

Release history Release notifications | RSS feed

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

This release

0.2.6 This release

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page