phospho

1.3.13 • Public • Published

Phospho - LLM App Analytics Platform

Introduction

Phospho is a powerful and easy-to-use analytics platform for large language model (LLM) applications. It provides developers with the tools to log, analyze, and understand the interactions between users and their LLM applications.

Installation

To use Phospho in your Node.js project, install it via npm:

npm install phospho

Usage

You need to have a Phospho account to use this library. If you don't have one, you can sign up for free at phospho.ai.

Quickstart

import { phospho } from "phospho";

phospho.init({
  apiKey: "...", // Get your API key on phospho.ai
  projectId: "...",
});

// Log a task
phospho
  .log({ input: "User Query", output: "LLM Response" })
  .then((response) => console.log("Log successful:", response))
  .catch((error) => console.error("Error:", error));

You only need to do phospho.init() once in your app, then you can reuse it accross you whole codebase.

More Information

For more information, please visit the documentation at docs.phospho.ai

Readme

Keywords

Package Sidebar

Install

npm i phospho

Weekly Downloads

10

Version

1.3.13

License

Apache-2.0

Unpacked Size

92.1 kB

Total Files

10

Last publish

Collaborators

  • oulianov
  • plvenard
  • plbjt
  • flegrand