LLMKit - Language Model Kit
LLMKit is a Python package that simplifies the interaction with Language Models (LLMs) and allows you to generate text data with ease.
Features
-
Simple Interface: LLMKit provides a straightforward interface to interact with various language models.
-
Custom Transformers: You can create custom transformers to format input data into prompts and transform LLM-generated text into the desired data format.
-
Model Abstraction: LLMKit abstracts the details of model selection and provider handling.
Installation
You can install LLMKit using pip:
pip install llm-stack-kit
Usage
from llmkit import LLMKit
llm_kit = LLMKit()
input_data = "Translate the following English text to French: 'Hello, World!'"
# Generate text using the default transformers
generated_text = llm_kit.generate_data(input_data)
print("Generated Text:", generated_text)
Configuration
For more advanced usage and customization, you can create your own transformers and specify model providers. Only two model providers are supported for now: "openai" and "cloudflare". You need to provide a .env file with either OPENAI_API_KEY for OpenAI or CF_API_KEY and CF_ACCOUNT_ID for Cloudflare.
See sample custom transformer for how to write a custom transformer.
Documentation
Comprehensive documentation will be made available soon.
Contributing
We welcome contributions! Our contributions guideline will be added soon.
License
LLMKit is distributed under the MIT License. See LICENCE for details.
Contact
If you have any questions or suggestions, feel free to reach out to us at useentropy@gmail.com.
Release files for llm-stack-kit 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| llm_stack_kit-0.1.5.tar.gz | 6.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llm_stack_kit-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.2 kB
Release files / llm_stack_kit-0.1.5.tar.gz
| Download URL | llm_stack_kit-0.1.5.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
084b640e8a9cbe2e0a82b6320ed2838e4dc7fef20c1b32940444e0296f1f0e09
|
|
BLAKE2b-256 checksum How to use checksums |
5b721df320cdbcbb318b9d39e4d453336c2a5f387f8350059a2dc891301b8a62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.4 Darwin/23.0.0
|
Release files / llm_stack_kit-0.1.5-py3-none-any.whl
| Download URL | llm_stack_kit-0.1.5-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4620b0110db01e1cb5a91b43a04b03dda993d924ba1e99892db43e69e9188ef7
|
|
BLAKE2b-256 checksum How to use checksums |
813738c5d7204823b69c9e97f8cdfb722f1e416546c21407f420ddf5e8b2fd9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.4 Darwin/23.0.0
|