Chuyển đến nội dung
Skillpedia
Cơ sở dữ liệu41k · #6950

signals

Skill này làm gì

Skill này giải thích cách đọc các tín hiệu thô mà PostHog tạo ra từ dữ liệu sản phẩm của bạn, bằng truy vấn HogQL. Skill dành cho nhà phân tích muốn tìm kiếm hoặc đếm tín hiệu trực tiếp, vượt ra ngoài hộp thư đã được chọn lọc.

Khi nào nên dùng

  • ✓Khi bạn muốn tìm tín hiệu PostHog theo ý nghĩa thay vì theo văn bản chính xác.
  • ✓Khi bạn muốn có mọi tín hiệu đã góp phần vào một báo cáo cụ thể.
  • ✓Khi bạn muốn liệt kê hoặc đếm các loại tín hiệu mà dự án của bạn có.

Liên kết skill

https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tìm tất cả tín hiệu thô đã góp phần vào báo cáo này và liệt kê các loại của chúng.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill giải thích rằng tín hiệu được lưu trong một bảng embedding, có thể truy vấn bằng HogQL để tìm kiếm theo ngữ nghĩa, nhóm và liệt kê. Để duyệt báo cáo, trước tiên dùng skill inbox.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Querying Signals

What Are Signals?

Signals are automated observations that PostHog generates by monitoring a customer's product data across multiple sources — error tracking, web analytics, experiments, session replay, and more. Each signal is a short natural-language description of something noteworthy (e.g. "Error rate spiked 3× on /checkout").

Signals are grouped into Signal Reports. When a report accumulates enough weight it gets summarized and assessed for actionability. A signal report represents a cluster of related observations that together describe a meaningful issue or trend.

Signals and their embeddings are stored in the document_embeddings ClickHouse table, queryable via HogQL through the posthog:execute-sql MCP tool. They may provide a useful way to semantically query for recent things that happened in the user's product.

When to use this skill vs. inbox-exploration

The two skills cover different layers of the same product:

  • inbox-exploration — curated report layer via dedicated MCP tools (inbox-reports-list, inbox-reports-retrieve, inbox-source-configs-list, inbox-source-configs-retrieve). Use for "what's in my inbox?", "what's actionable?", filtering reports by status / source / suggested reviewer, looking up a specific report by ID or URL.
  • This skill (signals) — raw signal layer via HogQL on document_embeddings. Use when the curated report layer is not enough: semantic search over signal text, fetching every signal that contributed to a specific report, listing what kinds of signals exist, or any ad-hoc analytics that the report tools don't expose.

The typical pattern is to start with inbox-exploration, get a report_id or a sense of the area the user cares about, then drop into this skill when the user wants to see the raw observations.

Table and Column Reference

The HogQL table alias is document_embeddings. HogQL automatically constrains queries to the current team — you never need to filter on team_id. Key columns for signals:

Column Type Description
product String Product bucket — always 'signals' for signals
document_type String Document type — always 'signal' for signals
model_name String Embedding model — always 'text-embedding-3-small-1536'
document_id String Unique signal ID (UUID)
timestamp DateTime64(3) When the signal was created
inserted_at DateTime64(3) When this row version was inserted (used for deduplication and soft deletes)
content String The signal description text
metadata String JSON string with report_id, source info, weight, deleted flag, etc
embedding Array(Float64) 1536-dimensional embedding vector

Mandatory Filters

Every signals query MUST include all four of these filters. Missing any of them can cause the query to fail with an invalid model error, return wrong data, or trigger unnecessarily expensive scans:

WHERE model_name = 'text-embedding-3-small-1536'
  AND product = 'signals'
  AND document_type = 'signal'
  AND timestamp >= now() - INTERVAL 30 DAY

The model_name filter is especially critical — the HogQL engine uses it to route to the correct underlying ClickHouse table. If the WHERE model_name = ... equality filter is missing or uses an unknown model, the query will fail with an "Invalid model name" error (you cannot use IN or other expressions here).

The product and document_type filters are equally important — the same model contains data from multiple products (e.g. error tracking, AI memory). Without these filters you will get unrelated data mixed in.

The timestamp filter is required for performance — the table is partitioned by week and has a 3-month TTL. Always include a time bound using now() - INTERVAL N DAY (or WEEK, MONTH, etc.). Default to 30 days unless you have a reason to look further back. Gene

Câu hỏi thường gặp

Tín hiệu là gì?

Tín hiệu là một quan sát tự động ngắn về sản phẩm của bạn, chẳng hạn một đợt tăng tỷ lệ lỗi. Nhiều tín hiệu gộp lại tạo thành một báo cáo.

Khi nào nên dùng skill inbox thay thế?

Dùng skill inbox để liệt kê báo cáo, lọc hoặc tra cứu một báo cáo. Dùng skill này cho dữ liệu tín hiệu thô.

Tôi có cần biết SQL không?

Có. Các truy vấn được viết bằng HogQL, một ngôn ngữ kiểu SQL.

Chi tiết

Mô tả gốc của tác giả

How to query the document_embeddings table for raw signal data using HogQL. Use when you need to perform semantic search over signals, fetch every signal that contributed to a specific report, or list signal types. For browsing the curated report layer (the Inbox) — listing reports, filtering by status/source, drilling into a single report by ID — use the `inbox-exploration` skill first; drop into this skill afterwards if the user wants the underlying observations.

repo: PostHog/posthog

Độ phổ biến

Sao GitHub
41k
Vị trí xếp hạng
#6950
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự