Skip to main content

Multi-tenant LLM observability powered by OpenLLMetry

Project description

Paralegal - Multi-Tenant LLM Observability

Complete observability for your LLM applications with one line of code.

Installation

pip install paralegal

Quick Start

import paralegal
from openai import OpenAI

# Initialize with your API key
paralegal.init(api_key="pl_your_api_key_here")

# Your LLM calls are now automatically traced
client = OpenAI()
response = client.chat.completions.create(
    model="gpt-4",
    messages=[{"role": "user", "content": "Hello!"}]
)

Getting Your API Key

  1. Sign up at your customer portal
  2. Get your API key
  3. Use it in your code or set as environment variable:
export PARALEGAL_API_KEY="pl_your_api_key"

Supported Providers

  • ✅ OpenAI / Azure OpenAI
  • ✅ Anthropic (Claude)
  • ✅ Google AI (Gemini)
  • ✅ AWS Bedrock
  • ✅ Cohere
  • ✅ HuggingFace
  • ✅ LangChain
  • ✅ LlamaIndex
  • And many more via OpenLLMetry

Advanced Usage

Custom App Name

paralegal.init(
    api_key="pl_xxx",
    app_name="my-chatbot-prod"
)

Disable Batching (for testing)

paralegal.init(
    api_key="pl_xxx",
    disable_batch=True
)

Association Properties

paralegal.set_association_properties({
    "user_id": "user_123",
    "session_id": "session_456"
})

Documentation

Built on top of OpenLLMetry and OpenTelemetry for industry-standard observability.

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

paralegal-0.1.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

paralegal-0.1.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: paralegal-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for paralegal-0.1.0.tar.gz
Algorithm Hash digest
SHA256 205a65ada925249f0c129f4ebf3f4ac5d6b9cd487ae95dbf379ccaeecbb3d220
MD5 0ebecdffe925e400c725d0bf8f220034
BLAKE2b-256 74ee73a6fd6adaa554233569e76b7a449088d7b04f15268d33b0815dc47777aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: paralegal-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for paralegal-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dab12027e95e4cea358ae222e519bf7ec6f81a78d51e126927474a4cb6e1aac4
MD5 ac9c1c1f1d27e5b9aa2436ef2f848c64
BLAKE2b-256 fd56bd7b06df4af2a5e77353a97ad1cf5736b5cb7debc1e8ade12579e40f1e67

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