Share via


Augment prompts with Power Fx expressions

Important

Some of the functionality described in this release plan has not been released. Delivery timelines may change and projected functionality may not be released (see Microsoft policy). Learn more: What's new and planned

Enabled for Public preview General availability
Admins, makers, marketers, or analysts, automatically May 2025 Jun 2025

Business value

Power Fx allows you to fill some GPT gaps like knowledge on the current date, performing mathematical operations, and counting. This can be achieved by building expressions with the Power Fx language and adding this context to the prompt using the prompt builder.

It is also useful to solve the RAG (Retrieval Augmented Generation) filtering limitations of prompt builder. You can now leverage Power Fx query language to build complex filters to scope the data to be retrieved.

Feature details

You can access the Power Fx designer from prompt builder. You can define an expression and name it so it can be inserted inline in the prompt. The information resulting from the execution of the expression is added at runtime to the prompt to provide more specific responses.

You can also filter your knowledge using Power Fx expressions in addition to the current attribute and value selection. This enables you to get more control of the data to use as context of the prompt.