Quickstart
Install SDK
Firstly you need to install one of our SDK's in your application:
Initialise SDK and authenticate with Trubrics
Now ensure that Trubrics is imported & initialised in your app:
Project API key
Your trubrics API key is unique to your project. Login to Trubrics, and copy your project API key from the settings
page. This is a write only API key that allows you to push events.
Track user events (Sign Up, Conversion, etc.)
Track LLM events (Prompts and Generations)
trubrics.track_llm(
user_id="user_id",
assistant_id="gpt4o",
prompt="What is Trubrics?",
generation="Trubrics is the leading product analytics platform for AI applications.",
prompt_event_name="User Prompt",
generation_event_name="Assistant Generation",
properties={
"support_tier": "entreprise",
},
latency=2,
thread_id="your-thread-id",
timestamp=datetime.now()
)
For more information on SDK's and how to track events, please refer to the Javascript SDK or Python SDK.