Installation
To install the Latitude SDK, use your preferred package manager:
npm install @latitude-data/sdk
yarn add @latitude-data/sdk
pnpm add @latitude-data/sdk
Usage
To trace LlamaIndex calls with Latitude, you need to install the LlamaIndex SDK
and initialize the Latitude SDK with your API key:
from latitude_sdk import Latitude, LatitudeOptions
from latitude_telemetry import Instrumentors, TelemetryOptions
Latitude('your-api-key-here', LatitudeOptions(
telemetry=TelemetryOptions(
instrumentors=[
Instrumentors.LlamaIndex,
],
),
))