Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 6 additions & 11 deletions contents/docs/llm-analytics/installation/anthropic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,18 @@ platformIconName: IconAnthropic
showStepsToc: true
tableOfContents: [
{
url: 'install-posthog-sdk',
value: 'Install the PostHog SDK',
url: 'install-dependencies',
value: 'Install dependencies',
depth: 1,
},
{
url: 'install-anthropic-sdk',
value: 'Install the Anthropic SDK',
url: 'set-up-opentelemetry-tracing',
value: 'Set up OpenTelemetry tracing',
depth: 1,
},
{
url: 'initialize-posthog-and-anthropic-wrapper',
value: 'Initialize PostHog and the Anthropic wrapper',
depth: 1,
},
{
url: 'call-anthropic-llms',
value: 'Call Anthropic LLMs',
url: 'call-anthropic',
value: 'Call Anthropic',
depth: 1,
},
{
Expand Down
13 changes: 4 additions & 9 deletions contents/docs/llm-analytics/installation/autogen.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,13 @@ platformLogo: autogen
showStepsToc: true
tableOfContents: [
{
url: 'install-the-posthog-sdk',
value: 'Install the PostHog SDK',
url: 'install-dependencies',
value: 'Install dependencies',
depth: 1,
},
{
url: 'install-autogen',
value: 'Install AutoGen',
depth: 1,
},
{
url: 'initialize-posthog-and-autogen',
value: 'Initialize PostHog and AutoGen',
url: 'set-up-opentelemetry-tracing',
value: 'Set up OpenTelemetry tracing',
depth: 1,
},
{
Expand Down
8 changes: 4 additions & 4 deletions contents/docs/llm-analytics/installation/azure-openai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ platformLogo: azureOpenAI
showStepsToc: true
tableOfContents: [
{
url: 'install-the-sdks',
value: 'Install the SDKs',
url: 'install-dependencies',
value: 'Install dependencies',
depth: 1,
},
{
url: 'initialize-posthog-and-azure-openai-client',
value: 'Initialize PostHog and Azure OpenAI client',
url: 'set-up-opentelemetry-tracing',
value: 'Set up OpenTelemetry tracing',
depth: 1,
},
{
Expand Down
13 changes: 4 additions & 9 deletions contents/docs/llm-analytics/installation/cerebras.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,13 @@ platformLogo: cerebras
showStepsToc: true
tableOfContents: [
{
url: 'install-posthog-sdk',
value: 'Install the PostHog SDK',
url: 'install-dependencies',
value: 'Install dependencies',
depth: 1,
},
{
url: 'install-openai-sdk',
value: 'Install the OpenAI SDK',
depth: 1,
},
{
url: 'initialize-posthog-and-openai-client',
value: 'Initialize PostHog and OpenAI client',
url: 'set-up-opentelemetry-tracing',
value: 'Set up OpenTelemetry tracing',
depth: 1,
},
{
Expand Down
13 changes: 4 additions & 9 deletions contents/docs/llm-analytics/installation/cohere.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,13 @@ platformLogo: cohere
showStepsToc: true
tableOfContents: [
{
url: 'install-posthog-sdk',
value: 'Install the PostHog SDK',
url: 'install-dependencies',
value: 'Install dependencies',
depth: 1,
},
{
url: 'install-openai-sdk',
value: 'Install the OpenAI SDK',
depth: 1,
},
{
url: 'initialize-posthog-and-openai-client',
value: 'Initialize PostHog and OpenAI client',
url: 'set-up-opentelemetry-tracing',
value: 'Set up OpenTelemetry tracing',
depth: 1,
},
{
Expand Down
13 changes: 4 additions & 9 deletions contents/docs/llm-analytics/installation/deepseek.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,13 @@ platformLogo: deepseek
showStepsToc: true
tableOfContents: [
{
url: 'install-posthog-sdk',
value: 'Install the PostHog SDK',
url: 'install-dependencies',
value: 'Install dependencies',
depth: 1,
},
{
url: 'install-openai-sdk',
value: 'Install the OpenAI SDK',
depth: 1,
},
{
url: 'initialize-posthog-and-openai-client',
value: 'Initialize PostHog and OpenAI client',
url: 'set-up-opentelemetry-tracing',
value: 'Set up OpenTelemetry tracing',
depth: 1,
},
{
Expand Down
13 changes: 4 additions & 9 deletions contents/docs/llm-analytics/installation/fireworks-ai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,13 @@ platformLogo: fireworksAI
showStepsToc: true
tableOfContents: [
{
url: 'install-posthog-sdk',
value: 'Install the PostHog SDK',
url: 'install-dependencies',
value: 'Install dependencies',
depth: 1,
},
{
url: 'install-openai-sdk',
value: 'Install the OpenAI SDK',
depth: 1,
},
{
url: 'initialize-posthog-and-openai-client',
value: 'Initialize PostHog and OpenAI client',
url: 'set-up-opentelemetry-tracing',
value: 'Set up OpenTelemetry tracing',
depth: 1,
},
{
Expand Down
13 changes: 4 additions & 9 deletions contents/docs/llm-analytics/installation/groq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,13 @@ platformLogo: groq
showStepsToc: true
tableOfContents: [
{
url: 'install-posthog-sdk',
value: 'Install the PostHog SDK',
url: 'install-dependencies',
value: 'Install dependencies',
depth: 1,
},
{
url: 'install-openai-sdk',
value: 'Install the OpenAI SDK',
depth: 1,
},
{
url: 'initialize-posthog-and-openai-client',
value: 'Initialize PostHog and OpenAI client',
url: 'set-up-opentelemetry-tracing',
value: 'Set up OpenTelemetry tracing',
depth: 1,
},
{
Expand Down
13 changes: 4 additions & 9 deletions contents/docs/llm-analytics/installation/helicone.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,13 @@ platformLogo: helicone
showStepsToc: true
tableOfContents: [
{
url: 'install-the-posthog-sdk',
value: 'Install the PostHog SDK',
url: 'install-dependencies',
value: 'Install dependencies',
depth: 1,
},
{
url: 'install-the-openai-sdk',
value: 'Install the OpenAI SDK',
depth: 1,
},
{
url: 'initialize-posthog-and-openai-client',
value: 'Initialize PostHog and OpenAI client',
url: 'set-up-opentelemetry-tracing',
value: 'Set up OpenTelemetry tracing',
depth: 1,
},
{
Expand Down
13 changes: 4 additions & 9 deletions contents/docs/llm-analytics/installation/hugging-face.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,13 @@ platformLogo: huggingFace
showStepsToc: true
tableOfContents: [
{
url: 'install-posthog-sdk',
value: 'Install the PostHog SDK',
url: 'install-dependencies',
value: 'Install dependencies',
depth: 1,
},
{
url: 'install-openai-sdk',
value: 'Install the OpenAI SDK',
depth: 1,
},
{
url: 'initialize-posthog-and-openai-client',
value: 'Initialize PostHog and OpenAI client',
url: 'set-up-opentelemetry-tracing',
value: 'Set up OpenTelemetry tracing',
depth: 1,
},
{
Expand Down
17 changes: 6 additions & 11 deletions contents/docs/llm-analytics/installation/instructor.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,18 @@ platformLogo: instructor
showStepsToc: true
tableOfContents: [
{
url: 'install-the-posthog-sdk',
value: 'Install the PostHog SDK',
url: 'install-dependencies',
value: 'Install dependencies',
depth: 1,
},
{
url: 'install-instructor-and-openai-sdks',
value: 'Install Instructor and OpenAI SDKs',
url: 'set-up-opentelemetry-tracing',
value: 'Set up OpenTelemetry tracing',
depth: 1,
},
{
url: 'initialize-posthog-and-instructor',
value: 'Initialize PostHog and Instructor',
depth: 1,
},
{
url: 'use-instructor-with-structured-outputs',
value: 'Use Instructor with structured outputs',
url: 'extract-structured-data',
value: 'Extract structured data',
depth: 1,
},
{
Expand Down
13 changes: 4 additions & 9 deletions contents/docs/llm-analytics/installation/langchain.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,13 @@ platformIconName: IconLangChain
showStepsToc: true
tableOfContents: [
{
url: 'install-posthog-sdk',
value: 'Install the PostHog SDK',
url: 'install-dependencies',
value: 'Install dependencies',
depth: 1,
},
{
url: 'install-langchain-and-openai-sdks',
value: 'Install LangChain and OpenAI SDKs',
depth: 1,
},
{
url: 'initialize-posthog-and-langchain',
value: 'Initialize PostHog and LangChain',
url: 'set-up-opentelemetry-tracing',
value: 'Set up OpenTelemetry tracing',
depth: 1,
},
{
Expand Down
13 changes: 4 additions & 9 deletions contents/docs/llm-analytics/installation/langgraph.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,13 @@ platformLogo: langgraph
showStepsToc: true
tableOfContents: [
{
url: 'install-the-posthog-sdk',
value: 'Install the PostHog SDK',
url: 'install-dependencies',
value: 'Install dependencies',
depth: 1,
},
{
url: 'install-langgraph',
value: 'Install LangGraph',
depth: 1,
},
{
url: 'initialize-posthog',
value: 'Initialize PostHog',
url: 'set-up-opentelemetry-tracing',
value: 'Set up OpenTelemetry tracing',
depth: 1,
},
{
Expand Down
13 changes: 4 additions & 9 deletions contents/docs/llm-analytics/installation/llamaindex.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,13 @@ platformLogo: llamaindex
showStepsToc: true
tableOfContents: [
{
url: 'install-the-posthog-sdk',
value: 'Install the PostHog SDK',
url: 'install-dependencies',
value: 'Install dependencies',
depth: 1,
},
{
url: 'install-llamaindex',
value: 'Install LlamaIndex',
depth: 1,
},
{
url: 'initialize-posthog-and-llamaindex',
value: 'Initialize PostHog and LlamaIndex',
url: 'set-up-opentelemetry-tracing',
value: 'Set up OpenTelemetry tracing',
depth: 1,
},
{
Expand Down
21 changes: 20 additions & 1 deletion contents/docs/llm-analytics/installation/manual-capture.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
---
title: Manual capture LLM analytics installation
platformIconName: IconCode
showStepsToc: true
tableOfContents: [
{
url: 'capture-llm-events-manually',
value: 'Capture LLM events manually',
depth: 1,
},
{
url: 'event-properties',
value: 'Event properties',
depth: 1,
},
{
url: 'verify-traces-and-generations',
value: 'Verify traces and generations',
depth: 1,
},
]
---

<!--
Expand All @@ -11,11 +29,12 @@ See the docs runbook for more info: https://posthog.com/handbook/docs-and-wizard

import { ManualInstallation } from 'onboarding/llm-analytics/manual.tsx'
import { OnboardingContentWrapper } from 'components/Docs/OnboardingContentWrapper'
import { addNextStepsStep } from './_snippets/shared-helpers.tsx'
import GenerationEvent from '../_snippets/generation-event.mdx'
import TraceEvent from '../_snippets/trace-event.mdx'
import SpanEvent from '../_snippets/span-event.mdx'
import EmbeddingEvent from '../_snippets/embedding-event.mdx'

<OnboardingContentWrapper snippets={{ GenerationEvent, TraceEvent, SpanEvent, EmbeddingEvent }}>
<ManualInstallation />
<ManualInstallation modifySteps={addNextStepsStep} />
</OnboardingContentWrapper>
17 changes: 6 additions & 11 deletions contents/docs/llm-analytics/installation/mastra.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,18 @@ platformLogo: mastra
showStepsToc: true
tableOfContents: [
{
url: 'install-posthog-sdk',
value: 'Install the PostHog SDK',
url: 'install-dependencies',
value: 'Install dependencies',
depth: 1,
},
{
url: 'install-mastra',
value: 'Install Mastra',
url: 'configure-mastra-with-the-posthog-exporter',
value: 'Configure Mastra with the PostHog exporter',
depth: 1,
},
{
url: 'initialize-posthog-and-wrap-your-model',
value: 'Initialize PostHog and wrap your model',
depth: 1,
},
{
url: 'use-your-mastra-agent',
value: 'Use your Mastra agent',
url: 'run-your-agent',
value: 'Run your agent',
depth: 1,
},
{
Expand Down
Loading
Loading