Setting Context for Natural Language Queries

Setting Context for Natural Language Queries

✅ Enterprise: AWS, Azure, GCP, and On-Premises

✅ Marketplace: AWS, Azure, and GCP

✅ SaaS: AWS, Azure, and GCP

✅ Single Node Installation (SNI)


Overview

This section explains how to set the context for Natural Language Queries (NLQ) in Kyvos to improve query interpretation and generate more accurate insights based on the user’s business terminology and data context.

Setting context for natural language queries

To set the context for natural language queries, perform the following steps.

  1. From the Toolbox, click Semantic Models.

  2. Select a semantic model from the list. 

  3. Click the AI Settings tab and then select the Context tab.

  4. For the Business Context, describe the business purpose and usage of this semantic model. Adding this context enables Copilot to create more precise and relevant metadata.

    image-20260417-121329.png

     

  5. Click Ask Copilot. The Ask Kyvos Copilot dialog is displayed.

    image-20260119-072228.png
  6. On the dialog, complete the following information:

    1. In the Additional Input Prompt field, enter any specific instructions or guidance to help generate the business context (for example, business purpose, domain details, or intended usage).

    2. Click Generate to allow Kyvos Copilot to create the Semantic Model Business Context.

    3. Review the generated content, including the Business Purpose and Sample Questions.

    4. (Optional) Click Clear to remove the input prompt and enter new instructions.

    5. Make any necessary edits to the generated business context directly in the editor.

    6. Review the information.

    7. Click Accept to apply the generated business context to the semantic model. You can also click Cancel to discard the changes and exit without saving.

  7. For the Querying Instructions, define an additional prompt to be included with user input for generating queries. This prompt provides extra context or guidance to refine query results and improve the accuracy of responses.

Note

Kyvos Dialogs now supports enhanced value–column mapping using querying context. You can define value–column mappings in entity querying instructions, allowing the system to automatically identify the appropriate column for ambiguous values. This reduces the need for repeated user feedback when multiple matching columns exist and improves query interpretation and overall user experience when working with semantic models containing ambiguous values.

image-20260427-121120.png
  1. For the Summary Instructions, specify key insights instructions for generating natural language summaries. This helps tailor the summaries to align with business needs and improve relevance.

    1. To generate relevant follow-up questions, you must add the summary instructions box. Write your summary instructions between:
      <FOLLOW_UP_QUES_RULES>
      </FOLLOW_UP_QUES_RULES>
      Sample summary instructions

      <FOLLOW_UP_QUES_RULES> Below are the columns and their dependent columns for generating follow-up questions: For Sales column, dependent columns are: Profit, Discount, Product Category For Product Category column, dependent columns are: Product Sub-Category, Product Names For Product Sub-Category column, dependent columns are: Country, State, Shipping Modes, Discount For Shipping Modes column, dependent columns are: Discount, Segment Follow-up Question Generation Rules: Generate only 3 follow-up questions. Each follow-up question must include only one dependent column. Follow-up questions should be context-aware and based on the previous response. Questions should help users drill down into patterns and move toward root cause analysis. Keep questions simple, clear, and easy to understand for end users. Do not generate generic or unrelated questions. Follow-up questions must align with the visualization and data shown. </FOLLOW_UP_QUES_RULES> between <follow up questions> to </follow up questions>. <image>

       

      image-20260127-112651.png
  2. Click Save. The AI context for the semantic model is set.

Copyright Kyvos, Inc. 2026. All rights reserved.