Skip to content

Commit bd972eb

Browse files
Docs: Add decision making guide (#162)
## Description πŸ“ Adds a new guide on decision making with PromptQL, highlighting patterns like interrogation, hypothesis testing, and cross-source analysis. Also renames and relocates the automations guide to the top level for clearer discovery, adjusting the sidebar position to reflect the new structure. Adds supporting images for new sections. ## Quick Links πŸš€ [Decision Making](https://add-decision-making.promptql-docs.pages.dev/decision-making/) --------- Co-authored-by: hasura-bot <[email protected]>
1 parent 294f03f commit bd972eb

File tree

8 files changed

+141
-5
lines changed

8 files changed

+141
-5
lines changed

β€Ždocs/how-to-build-with-promptql/with-automation.mdx renamed to β€Ždocs/automation.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
sidebar_position: 51
3-
sidebar_label: With Automation
2+
sidebar_position: 1.6
3+
sidebar_label: Automation
44
description:
55
"Learn how to build automated workflows and processes with PromptQL for reliable, repeatable business tasks."
66
keywords:
@@ -14,7 +14,7 @@ toc_max_heading_level: 4
1414

1515
import Thumbnail from "@site/src/components/Thumbnail";
1616

17-
# Building Automations with PromptQL
17+
# Build Automations with PromptQL
1818

1919
## Introduction
2020

@@ -140,7 +140,7 @@ https://promptql.ddn.hasura.app/playground/automations/v1/box_office_analyzer/ru
140140

141141
:::
142142

143-
## Best practices
143+
## Best Practices
144144

145145
1. **Start simple** - Begin with a straightforward use case to learn the process
146146
2. **Iterate and improve** - Refine your automation based on initial results

β€Ždocs/decision-making.mdx

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
---
2+
sidebar_position: 1.5
3+
sidebar_label: Decision Making
4+
description: "Learn how you can use PrompQL for accurate AI in your decision-making processes."
5+
keywords:
6+
- promptql
7+
- accurate
8+
- reliable
9+
- decision making
10+
toc_max_heading_level: 4
11+
---
12+
13+
import Thumbnail from "@site/src/components/Thumbnail";
14+
15+
# Make Decisions with PromptQL
16+
17+
## Introduction
18+
19+
**Decision making** with PromptQL supports deeper analysis and structured exploration across your data. You can ask
20+
complex, layered questions and get responses that adapt to your systems and terminology. PromptQL helps you drill into
21+
root causes, compare across categories, and evaluate tradeoffsβ€”without being limited by context windows or informal
22+
language.
23+
24+
This is useful for scenarios that require exploration and judgment, such as:
25+
26+
- Investigating anomalies
27+
- Comparing performance across teams or regions
28+
- Understanding contributing factors behind trends
29+
30+
## Guides
31+
32+
Below, we've split out a few different use cases as examples. You can run these against the
33+
[public sandbox-quickstart project](https://promptql.console.hasura.io/public/sandbox-movie-studio/playground).
34+
35+
### Q&A
36+
37+
It would seem that asking questions about data is simple, but this is difficult because business terms often map to
38+
multiple systems or concepts. For example, "performance" might refer to revenue, engagement, or critical ratings,
39+
depending on who’s asking. Systems don’t always agree on how those values are calculated, either.
40+
41+
Take this example:
42+
43+
> _How did our PG-13 portfolio perform against R-rated titles during the streaming transition period?_
44+
45+
PromptQL solves this by mapping ambiguous terms to precise system definitions and building a plan that retrieves data
46+
from the right sources in the correct form. The generated plan accounts for relevant time windows, content ratings, and
47+
distribution channels, producing a structured answer tailored to your domain.
48+
49+
<Thumbnail src="/img/get-started/playground-dm-streaming-results.png" alt="Details of a deployed automation." />
50+
51+
**Use this when you want direct answers that reflect your business logic and definitions.**
52+
53+
### Interrogation
54+
55+
PromptQL allows you to interrogate your data by following up naturally, asking for more detail, and adjusting the scope
56+
as you go. The system preserves your analysis trail and ensures consistency across steps.
57+
58+
> _Looking at our 2015–2020 release slate, what's the correlation between our talent investment strategy and audience
59+
> retention metrics?_
60+
61+
PromptQL solves this by generating a multi-step plan that fetches relevant datasets, applies statistical methods, and
62+
structures results in a way that's easy to pivot or extend. You can modify thresholds, change groupings, or backtrack to
63+
explore a different angleβ€”all without losing context.
64+
65+
<Thumbnail src="/img/get-started/playground-interrogation.png" alt="Details of a deployed automation." />
66+
67+
**Use this when a surface-level answer isn't enough and you need to go deeper with confidence.**
68+
69+
:::tip Edit the query plan
70+
71+
Most AI tools are a black box: you don't know what's happening under the hood, how answers were arrived upon, or what
72+
data was used.
73+
74+
With PromptQL, every response is backed by a transparent query plan that you can inspect, modify, and re-run. This gives
75+
you full control over the logic, data sources, and assumptions behind each resultβ€”so you can refine, extend, or validate
76+
the analysis as needed.
77+
78+
:::
79+
80+
### Deep Research
81+
82+
You can perform deep research that explores multiple hypotheses, benchmarks external data, and evaluates internal
83+
patterns across time or categories.
84+
85+
> _Can you analyze the ROI patterns of our genre-blending titles compared to pure-genre releases between 2010–2020?_
86+
87+
PromptQL is unique because it treats research as a processβ€”not just a query. It generates a plan that defines discovery
88+
phases, collects and segments relevant data, and evaluates each hypothesis systematically.
89+
90+
<Thumbnail src="/img/get-started/playground-deep-research.png" alt="Details of a deployed automation." />
91+
92+
**Use this when you're trying to answer open-ended questions that require context and exploration.**
93+
94+
### Cross-Source Intelligence
95+
96+
Since you can join any source using your semantic metadata layer, PromptQL can resolve data across structured,
97+
semi-structured, and unstructured systems in a single plan.
98+
99+
> _What's the risk profile of working with first-time directors who came from our star talent pool?_
100+
101+
PromptQL builds a plan that pulls structured records (e.g., director metadata), aggregates historical performance
102+
metrics, and layers in qualitative signals from reviews or production notes. Relationships that span systemsβ€”like
103+
casting history, sentiment, and audience receptionβ€”are captured and evaluated together.
104+
105+
<Thumbnail src="/img/get-started/playground-cross-source.png" alt="Details of a deployed automation." />
106+
107+
**Use this when your answers require stitching together multiple systems and surfacing insights that aren't visible in
108+
any single source.**
109+
110+
### Smart Visualizations
111+
112+
Visualizations make it easy to understand complex patterns or communicate findings across stakeholders. PromptQL
113+
automatically selects appropriate formatsβ€”charts, tables, or graphsβ€”based on the type and scale of your analysis.
114+
115+
<Thumbnail src="/img/get-started/playground-visualization-rosling.png" alt="Details of a deployed automation." />
116+
117+
**Use this when you want to share findings with others or spot trends across segments or time periods.**
118+
119+
## Best Practices
120+
121+
- **Start specific, then expand.** Narrow, well-defined questions help PromptQL build better initial plans. You can
122+
always widen scope through follow-ups.
123+
- **Use your own terms.** PromptQL is designed to understand your internal terminology, so write queries as you would
124+
naturally ask a colleague.
125+
- **Follow the thread.** PromptQL preserves your reasoning trailβ€”feel free to pivot, rewind, or dig deeper without
126+
losing previous steps.
127+
- **Review the plan.** Each result is backed by a structured plan. Reviewing it helps validate how PromptQL interprets
128+
your intent.
129+
- **Use visualizations for communication.** When sharing results, use PromptQL’s built-in visualization capabilities to
130+
highlight key insights clearly.
131+
132+
## Next Steps
133+
134+
It's great to be able to ask questions and get accurate, reliable responses. But, what if you could turn these into
135+
automations? Check out how easy PromptQL makes it to [automate tasks](/automation.mdx) with the same level of accuracy
136+
and reliability πŸš€

β€Ždocs/how-to-build-with-promptql/_category_.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"label": "Build with PromptQL",
3-
"position": 1,
3+
"position": 2,
44
"className": "basics-icon",
55
"customProps": {
66
"sidebar_pathname": "how-to-build-with-promptql"
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
Β (0)