Skip to main content

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


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.0.tar.gz (94.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yamllm_core-0.1.0-py3-none-any.whl (24.4 kB view details)

Uploaded Python 3

File details

Details for the file yamllm_core-0.1.0.tar.gz.

File metadata

  • Download URL: yamllm_core-0.1.0.tar.gz
  • Upload date:
  • Size: 94.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for yamllm_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 81f1af3867de9898fba291ac14b7b26d3f8684d57046cb1d1766b2a167514c27
MD5 e0e1cf9399845b820a26aa2fce582537
BLAKE2b-256 1a1ce06347bb20e9ff3f71021ca8c9c574ddbfe53dada9e53eb7308c44bce81b

See more details on using hashes here.

File details

Details for the file yamllm_core-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: yamllm_core-0.1.0-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

Hashes for yamllm_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f9094851302e971c3d16ff51397f6513477843df7aa3de224309156d0d05d578
MD5 ea896893c7d84421ba2e992d9b5d7e6a
BLAKE2b-256 ee749e747bcba1b75fb832f26e7f62843c9751e06760304e2e864dfb835e178a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page