Skip to content

docs: Add LLM Analytics mode to PostHog AI documentation#15370

Open
inkeep[bot] wants to merge 4 commits intomasterfrom
docs-writer-ai-update-2026-02-27T10-33-40-983Z-u10g2v
Open

docs: Add LLM Analytics mode to PostHog AI documentation#15370
inkeep[bot] wants to merge 4 commits intomasterfrom
docs-writer-ai-update-2026-02-27T10-33-40-983Z-u10g2v

Conversation

@inkeep
Copy link
Contributor

@inkeep inkeep bot commented Feb 27, 2026

Changes

This PR documents the new LLM Analytics mode added to PostHog AI in PostHog/posthog#48915.

Updated files

1. contents/docs/posthog-ai/modes.mdx

  • Added new "LLM analytics" section under "Available modes"
  • Documents the mode's purpose: searching and analyzing LLM traces
  • Lists use cases: finding traces, analyzing costs/latency, investigating errors
  • Documents the search_llm_traces mode-specific tool

2. contents/docs/posthog-ai/tools.mdx

  • Added search_llm_traces tool to the tools table under "LLM analytics"
  • Describes capability: search and filter LLM traces by date, model, cost, latency, and errors

3. contents/docs/llm-analytics/traces.mdx

  • Added new "Search traces with PostHog AI" section
  • Explains how to use PostHog AI to search traces with natural language
  • Includes example prompts users can try
  • Links to PostHog AI documentation for more info

This PR was created by the Inkeep Content Writer agent, which is maintained by the Docs and Wizard team. Please reach out on Slack for help if needed.

inkeep bot added 4 commits February 27, 2026 10:34
Reflects changes from PostHog/posthog#48915 which adds a new
AgentMode.LLM_ANALYTICS mode with the search_llm_traces tool for
searching and analyzing LLM traces.
Documents the new LLM analytics mode in PostHog AI that enables
natural language search and analysis of LLM traces, added in PR #48915.
@inkeep inkeep bot requested a review from kappa90 February 27, 2026 10:37
@github-actions
Copy link
Contributor

github-actions bot commented Feb 27, 2026

Deploy preview

Status Details Updated (UTC)
🟢 Ready View preview Feb 27, 2026 10:49AM

@github-actions
Copy link
Contributor

Vale prose linter → found 13 errors, 30 warnings, 0 suggestions in your markdown

Full report → Copy the linter results into an LLM to batch-fix issues.

Linter being weird? Update the rules!

contents/docs/llm-analytics/traces.mdx — 0 errors, 1 warnings, 0 suggestions
Line Severity Message Rule
9:4 warning 'Sessions vs Traces' heading should be in sentence case, and product names should be capitalized. PostHogBase.SentenceCase
contents/docs/posthog-ai/modes.mdx — 11 errors, 12 warnings, 0 suggestions
Line Severity Message Rule
21:1 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
21:149 warning Capitalize 'Product Analytics' for PostHog's product. Use 'Product analytics' for the general industry concept. PostHogBase.ProductNames
23:1 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
32:5 warning 'Product analytics' heading should be in sentence case, and product names should be capitalized. PostHogBase.SentenceCase
32:5 warning Capitalize 'Product Analytics' for PostHog's product. Use 'Product analytics' for the general industry concept. PostHogBase.ProductNames
42:19 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
43:42 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
44:17 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
52:18 warning Capitalize 'Data Warehouse' for PostHog's product. Use 'data warehouse' for the general industry concept. PostHogBase.ProductNames
57:16 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
59:5 warning 'Session replay' heading should be in sentence case, and product names should be capitalized. PostHogBase.SentenceCase
59:5 warning Capitalize 'Session Replay' for PostHog's product. Use 'Session replay' for the general industry concept. PostHogBase.ProductNames
70:30 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
71:23 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
73:5 warning 'Error tracking' heading should be in sentence case, and product names should be capitalized. PostHogBase.SentenceCase
73:5 warning Capitalize 'Error Tracking' for PostHog's product. Use 'Error tracking' for the general industry concept. PostHogBase.ProductNames
83:33 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
83:54 warning Capitalize 'Error Tracking' for PostHog's product. Use 'error tracking' for the general industry concept. PostHogBase.ProductNames
96:22 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
110:22 error Hi, Andy here... use an en dash ( – ) with spaces. On Mac, holding down the Option and hyphen key will give you an en dash. PostHogBase.EnDash
119:22 warning Capitalize 'Data Warehouse' for PostHog's product. Use 'data warehouse' for the general industry concept. PostHogBase.ProductNames
121:61 warning Capitalize 'Experiments' for PostHog's product. Use 'experiments' for the general industry concept. PostHogBase.ProductNames
121:74 warning Capitalize 'Feature Flags' for PostHog's product. Use 'feature flags' for the general industry concept. PostHogBase.ProductNames
contents/docs/posthog-ai/tools.mdx — 2 errors, 17 warnings, 0 suggestions
Line Severity Message Rule
9:5 error Use straight quotes and apostrophes, not curly ones. PostHogDocs.CurlyQuotes
19:3 warning Capitalize 'Data Pipelines' for PostHog's product. Use 'Data pipelines' for the general industry concept. PostHogBase.ProductNames
20:3 warning Capitalize 'Data Pipelines' for PostHog's product. Use 'Data pipelines' for the general industry concept. PostHogBase.ProductNames
21:3 warning Capitalize 'Data Pipelines' for PostHog's product. Use 'Data pipelines' for the general industry concept. PostHogBase.ProductNames
22:3 warning Capitalize 'Data Warehouse' for PostHog's product. Use 'Data warehouse' for the general industry concept. PostHogBase.ProductNames
22:65 warning Capitalize 'Data Warehouse' for PostHog's product. Use 'data warehouse' for the general industry concept. PostHogBase.ProductNames
23:3 warning Capitalize 'Data Warehouse' for PostHog's product. Use 'Data warehouse' for the general industry concept. PostHogBase.ProductNames
24:3 warning Capitalize 'Data Warehouse' for PostHog's product. Use 'Data warehouse' for the general industry concept. PostHogBase.ProductNames
26:3 warning Capitalize 'Error Tracking' for PostHog's product. Use 'Error tracking' for the general industry concept. PostHogBase.ProductNames
27:3 warning Capitalize 'Error Tracking' for PostHog's product. Use 'Error tracking' for the general industry concept. PostHogBase.ProductNames
30:3 warning Capitalize 'Feature Flags' for PostHog's product. Use 'Feature flags' for the general industry concept. PostHogBase.ProductNames
32:3 warning Capitalize 'Product Analytics' for PostHog's product. Use 'Product analytics' for the general industry concept. PostHogBase.ProductNames
33:3 warning Capitalize 'Product Analytics' for PostHog's product. Use 'Product analytics' for the general industry concept. PostHogBase.ProductNames
34:3 warning Capitalize 'Revenue Analytics' for PostHog's product. Use 'Revenue analytics' for the general industry concept. PostHogBase.ProductNames
34:59 warning Capitalize 'Revenue Analytics' for PostHog's product. Use 'revenue analytics' for the general industry concept. PostHogBase.ProductNames
35:3 warning Capitalize 'Session Replay' for PostHog's product. Use 'Session replay' for the general industry concept. PostHogBase.ProductNames
36:3 warning Capitalize 'Session Replay' for PostHog's product. Use 'Session replay' for the general industry concept. PostHogBase.ProductNames
38:38 warning Capitalize 'Surveys' for PostHog's product. Use 'surveys' for the general industry concept. PostHogBase.ProductNames
43:15 error Use straight quotes and apostrophes, not curly ones. PostHogDocs.CurlyQuotes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants