YAML-based LLM configuration and execution
Project description
YAMLLM
A Python library for YAML-based LLM configuration and execution.
Installation
pip install yamllm
Quick Start
from yamllm import LLM
import os
# Initialize LLM with config
llm = LLM(config_path="path/to/config.yaml")
llm.api_key = os.environ.get("OPENAI_API_KEY")
# Make a query
response = llm.query("What is the meaning of life?")
print(response)
Configuration
YAMLLM uses YAML files for configuration. Example configuration:
model: gpt-4-turbo-preview
temperature: 0.7
max_tokens: 500
system_prompt: "You are a helpful AI assistant."
Features
- YAML-based configuration
- Simple API interface
- Customizable prompt templates
- Error handling and retry logic
License
MIT License
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
yamllm_core-0.1.1.tar.gz
(7.7 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yamllm_core-0.1.1.tar.gz.
File metadata
- Download URL: yamllm_core-0.1.1.tar.gz
- Upload date:
- Size: 7.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c3edb5b9d67ee8b351d0736554137b8a51a6b11d84a701f00d8223ca1458f36
|
|
| MD5 |
7cbd844e7d86fe962223b60ba8451280
|
|
| BLAKE2b-256 |
7fe43f9f4632e3019b848448cab7f0978036ec3082db01fe6dacbf3baab1d8f7
|
File details
Details for the file yamllm_core-0.1.1-py3-none-any.whl.
File metadata
- Download URL: yamllm_core-0.1.1-py3-none-any.whl
- Upload date:
- Size: 24.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73b61833b115e38c4d5b526328dbd8bf558f2d57f5d94b82229d7f4a426ad373
|
|
| MD5 |
c4aeccd7f41f3c833615793bb10e4d1a
|
|
| BLAKE2b-256 |
f9ae76ef7d813bb3a6dea3334274d577d013bad766e6ad1b0e67a8d9905adc68
|