Package Exports
- phospho
- phospho/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (phospho) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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 phosphoUsage
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
const phospho = require('phospho');
// Initialize the Phospho client
const phospho = new Phospho('your_auth_token', 'your_project_id');
// Log an event
phospho.log({ input: 'User Query' }, { output: 'LLM Response' })
.then(response => console.log('Log successful:', response))
.catch(error => console.error('Error:', error));More Information
For more information, please visit the documentation at docs.phospho.ai