Skip to main content

Better LLMs Structured Outputs

Project description

Belso: Better LLMs Structured Outputs

Documentation PyPI version License: MIT

Overview

Belso (Better LLMs Structured Outputs) is a Python library designed to simplify working with structured outputs from Large Language Models (LLMs). It provides a unified interface for validating, translating, and processing structured data across multiple LLM providers.

Key Features

  • Schema Validation: Validate LLM outputs against predefined schemas
  • Multi-Provider Support: Seamlessly work with outputs from:
    • OpenAI
    • Anthropic
    • Google AI
    • Mistral AI
    • Hugging Face
    • Ollama
    • LangChain
  • Format Translation: Convert between different schema formats
  • Robust Error Handling: Comprehensive logging and error management

Installation

pip install belso

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

belso-0.0.1.tar.gz (7.8 MB view details)

Uploaded Source

Built Distribution

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

belso-0.0.1-py3-none-any.whl (29.7 kB view details)

Uploaded Python 3

File details

Details for the file belso-0.0.1.tar.gz.

File metadata

  • Download URL: belso-0.0.1.tar.gz
  • Upload date:
  • Size: 7.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for belso-0.0.1.tar.gz
Algorithm Hash digest
SHA256 67a9fc2aadb4cc00d244d65b7fe28490715c03ffcb1e760f53310ab1c0ac4be8
MD5 a6ea25ba614cea149790e949c059c991
BLAKE2b-256 18a3dcc33b05dd2e118361a807c39980151654967c40fb5dc7759186576e213b

See more details on using hashes here.

File details

Details for the file belso-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: belso-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 29.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for belso-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e2f751b3035df0ce512069c48ef9b2272d68773b9cfa42f630fd4fdfc84e87c5
MD5 f9c4b58eac0d5f35989d5e3a9aea9b09
BLAKE2b-256 df4b1e280106f6eabf1eb7b7b766df98c68516ff0e38a448238913b1fe237676

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