Early Access: The content on this website is provided for informational purposes only in connection with pre-General Availability Qlik Products.
All content is subject to change and is provided without warranty.
Skip to main content Skip to complementary content

Using the test assistant

Use the Test assistant to ask questions about your data and verify that your data has been correctly transferred and is up-to-date. It also lets verify that you are not sharing any wrong or confidential data.

Warning noteThis feature uses artificial intelligence. It is the user’s responsibility to review and verify any AI output before using or sharing it, and to evaluate whether the use of it is appropriate for any particular use case and whether it complies with applicable laws.
Information noteYou need a Qlik Talend Cloud Enterprise subscription.

Asking questions

Start the test assistant from the Data task page:

  1. Run the data task.
  2. When it is completed, click Test assistant in the menu bar. The Test assistant opens in the right panel.

To ask a question, enter it and send it by:

  • Pressing ENTER on your keyboard.
  • Clicking Enter.

The data can be used by the test assistant only when they are defined as Metadata.

  1. Navigate to the Datasets tab.
  2. Select the Metadata check box.

    Metadata check box

  3. Run the task. Once it is completed, you can ask questions about the selected data.

The questions history

You can view, copy, delete, and re-ask previous questions. You can also copy the answers.

Conversations cannot be saved.

Click Questions history and hover over the question and select the action: Copy, Resend, or Delete.

History of test assistant

Deleting a question from the history cannot be undone.

Settings

This table describes the settings of the Test assistant tab.
SettingsDescription
Number of documents in contextThe number of relevant documents that will be passed to the model as context.
Prompt templateEnter the template the AI must follow to filter the documents to be included.
FilterEnter the expression to filter the documents to be included.

As the filter is based on the metadata and the file-based knowledge marts do not have metadata, think carefully of the filter you are configuring. It might be more relevant to exclude data instead of including them.

For more information, see Using the test assistant.

Document retrievalSelect the option from the drop-down list:
  • Show retrieved context: The test assistant provides the documents from which it generates the answer.
  • Don't show retrieved context: The test assistant generates an answer but does not provide the documents.
Answers generationSelect the option from the drop-down list:
  • Generate answers: The test assistant generates an answer based on the documents.
  • Don't generate answers: The test assistant answers with documents only.

Examples of filters

The test assistant can help you define the Filter to use in the Settings but the filter format depends on the vector databases.

Examples for knowledge marts

The table below shows some examples of questions you can ask and the filters returned by the test assistant.

Vector database Questions Answer to use as a filter Format Documentation
Elasticsearch Write a filter for documents where metadata.UnitsInStock > 39 { "range": { "metadata.UnitsInStock": { "gt": 39 } } } JSON

Boolean query

Query DSL

OpenSearch Write a filter for documents where metadata.UnitsInStock > 39 { "range": { "metadata.UnitsInStock": { "gt": 39 } } } JSON Full-text queries
Pinecone Mongo-style filter to get vectors where UnitsInStock > 39 { "UnitsInStock": { "$gt": 39 } } JSON Filter by metadata
Snowflake Cortex Write a Cortex SQL query to filter rows where metadata.UnitsInStock > 39

"metadata":"UnitsInStock" > 39

SQL Filter syntax

Remember that the answers depend on your data, those are only examples.

Examples for file-based knowledge marts

Use the Filter to limit the search to specific files. The table below shows some examples:

Vector database Filter Format Documentation
Elasticsearch {"terms": {"source_id.keyword": ["gs://ai-ready/test/hello.txt"]}} JSON

Boolean query

Query DSL

OpenSearch {"terms": {"source_id.keyword": ["gs://ai-ready/test/hello.txt"]}} JSON Full-text queries
Pinecone {"source_id": "s3://username-filebased/docxfiles/newF/cv.docx"} JSON Filter by metadata
Snowflake Cortex "source_id" like "s3://username-filebased/pdf/small_pdf/%" SQL Filter syntax

Remember that the answers depend on your data, those are only examples.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!