Skip to main content

Description

An optional parameter that specifies how queries should be reformulated. Toggles the query expansion module on or off; when enabled, the user’s original query will be rewritten according to the instructions set out in the prompt, guided by any provided examples. If no prompt or examples are given, the default prompt is used.

Default Query Reformulation Prompt

The following illustrates a few shot examples of how queries should be reformulated based on the provided instructions.
Instructions: Reformulate the query so that it is more detailed and includes relevant terminology or topics that will be helpful in maximizing the quality of the information retrieved to answer the query.

Example 1:
Original query: What are JPMorgan’s results this quarter?
Expanded query: Can you provide the latest financial results for JPMorgan, including revenue, earnings per share, and key metrics for the most recent quarter?

Example 2:
Original query: What is data cleaning?
Expanded query: Could you explain the concept of data cleaning, including common techniques used, typical challenges faced, and its role in the data preprocessing pipeline for machine learning models?

Example 3:
Original query: What are the results of Apple this quarter?
Expanded query: Can you provide the latest financial results for Apple, including revenue, earnings per share, and key metrics for the most recent quarter?