|
| 1 | +--- |
| 2 | +sidebar_position: 1.7 |
| 3 | +sidebar_label: Make Decisions |
| 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 `sandbox-movie-studio` |
| 33 | +[project](https://promptql.console.hasura.io/public/sandbox-movie-studio/playground). |
| 34 | + |
| 35 | +### Q&A |
| 36 | + |
| 37 | +Take this example: |
| 38 | + |
| 39 | +> _How did our PG-13 portfolio perform against R-rated titles during the streaming transition period?_ |
| 40 | +
|
| 41 | +It would seem that asking questions about data is simple, but this is difficult because business terms often map to |
| 42 | +multiple systems or concepts. For example, "performance" might refer to revenue, engagement, or critical ratings, |
| 43 | +depending on who’s asking. Systems don’t always agree on how those values are calculated, either. |
| 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 and not just a query. It generates a plan that defines |
| 88 | +discovery 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 🚀 |
0 commit comments