Packages from ykachala

  • PHP

    ykachala/evals

    Prompt and LLM-output regression testing for PHP. Define golden datasets, assert on model output (schema, semantic similarity, LLM-as-judge), and gate CI on quality scores.

  • PHP

    ykachala/guardrails

    Input/output safety layer for PHP LLM apps: PII redaction, prompt-injection detection, secret scanning, and content moderation as a composable pipeline.

  • PHP

    ykachala/meter

    Token accounting, multi-provider cost calculation, and budget guardrails for PHP AI apps. Know what every LLM call costs and stop runaway spend before it happens.

  • PHP

    ykachala/semantic-cache

    Embedding-similarity response cache for LLM calls. Serve a cached answer when a new prompt is semantically close to a previous one — cutting cost and latency.