These four properties are critical in helping users adopt AI applications connected to business data.
Query | Assistant | Failure |
---|---|---|
What emails from the last week do I need to follow up on? | GMail Assistant |
|
Have I purchased enough coffee in the last few months to consider switching over to a subscription plan? | Rufus amazon.com assistant |
|
What is the sales cycle length this quarter? | Salesforce Einstein |
|
PromptQL builds a dynamic query plan that can be modified during execution based on intermediate results or explicit instructions from the user. It incorporates control structures (e.g., if-else statements) to handle different scenarios.
This overcomes a rigid retrieval based approach on precomputed embeddings, similarity search, predefined tools, etc, lacking the ability to adjust retrieval strategies dynamically.
Find all products that had declining sales for three consecutive months, and if none, expand the search to products with declining sales for two months.
DDN provides connectors to seamlessly integrate with any data sources, allowing AI models to access and interact with all your data under a unified schema.
Problem: Traditional RAG systems struggle to integrate data from diverse sources such as SQL databases, NoSQL stores, APIs, and SaaS platforms.
Generate a report of our top 10 customers by ARR, including their purchase history, support tickets, and recent interactions.
PromptQL has a programmatic runtime environment that allows AI to execute complex computations, data transformations, and statistical analyses. PromptQL handles large datasets by processing data in batches outside the LLM's context window. It can call another LLM within the runtime to analyze text data.
Calculate the average customer lifetime value (CLTV) segmented by marketing channel for the past year.
PromptQL enables AI to perform actions and mutations by executing commands that can update data, call APIs, or invoke functions, allowing for end-to-end task completion.
Problem: Many AI applications are limited to data retrieval and cannot perform actions or mutations, such as updating records or triggering workflows.
For customers with overdue invoices exceeding $10,000, send a payment reminder email and flag their account as 'At Risk'.
Problem: LLMs have limited context windows, making it difficult to handle large datasets or maintain conversation context over long interactions, leading to potential loss of information and hallucinations.
Solution: PromptQL uses memory artifacts to store and retrieve information outside the LLM's context window. This ensures consistency, accuracy, and the ability to handle large-scale data without overloading the LLM.
Based on the sales performance report we discussed earlier, project next quarter's sales based on the same growth rate.
Problem: RAG systems operate like black boxes. When an AI model retrieves information to generate a response, it can’t provide insights into how or why specific data was selected. It is difficult to verify the sources or reasoning behind the LLM's answers.
Solution: PromptQL provides detailed execution plans and can be explicitly asked to explain each step.
Explain your method to generate the projections
I checked the memory artifacts for the history of the referenced sales report. Then I extracted the latest sales data and current growth rate pattern from the data. Then I calculated the next quarter projection using the existing growth rate and validated the projection against historical trends. Finally I presented the results with key assumptions
Problem: RAG lacks built-in mechanisms for enforcing data access permissions and security protocols. There is always the potential risk of exposure of sensitive data. It cannot tailor data access based on user roles or credentials.
Solution: Hasura DDN integrates fine-grained, role-based access control directly into the data querying process, ensuring that all data access adheres to predefined authorization policies at row, column, and object levels.
Provide me with the sales data for all the regions for the past month. [As a regional manager]
You are the regional manager for the state of California, and hence I can only provide the information from your region. Here is the latest sales data over the past month for California.
Have a use case for PromptQL and Agentic Data Access? Interested in evaluating your existing AI agents / assistants against the ADAB? Let's connect!
We would love to collaborate with you to build your first agent - for free.