Skip to main content Skip to complementary content

Creating knowledge marts

Creating knowledge marts lets you embed and store your structured and unstructured data in a vector database. This allows the augmented context to be retrieved with semantic search features to be used as a context for Retrieval Augmented Generation (RAG) applications.

RAG optimizes the LLM output by providing additional context to the LLM with the query.

Information noteYou need a Qlik Talend Cloud Enterprise subscription.
Information noteThis feature is only supported on Snowflake platforms, and for a customer-managed data gateway. Snowflake Iceberg is not supported.

Installing the Qlik Data Gateway - Data Movement

To use knowledge marts, you need to connect to vector databases and LLM connections which requires to install a specific Qlik Data Gateway - Data Movement. For more information, see Setting up Qlik Data Gateway - Data Movement for knowledge marts.

Viewing and downloading the logs

You can view and download the logs for the knowledge marts. For more information, see Troubleshooting Data Movement gateway.

Prerequisites

You can use data tasks of the following types as source for a knowledge mart:

  • Storage

  • Transform

Before you can create a knowledge mart, you need to do the following in the source data tasks:

  • Populate the datasets with data that you want to use in your knowledge mart. For more information, see Onboarding data to a data warehouse.
  • Create a dataset relational model to define the relationships between the source datasets. For more information, see Creating a data model.

    Warning noteAll source datasets must have keys.

Limitations

There are limitations when you use source datasets matching all these conditions:

  • Created by SQL transformation or a transformation flow

  • Non-materialized

  • Historical Data Store (Type 2) turned off

These datasets are considered updated on every run which may affect efficiency and cost. You can mitigate this by:

  • Changing the source datasets to be materialized.

  • Using explicit dataset transformations.

  • Creating global rules that transform multiple datasets.

Supported encoding format

Your files must be properly encoded in UTF-8. Other formats may be wrongly interpreted.

Information noteQlik adds 2 transformation rules that remove all binary content from the output: QLIK__REMOVE_BLOB_COLUMNS and QLIK__REMOVE_BYTES_COLUMNS.

Supported characters

The file and folder names can contain the following characters:

  • [0-9], [a-Z], [A-Z]
  • ! - _ . * ' ()

Other special characters might be supported but, because of significant special character handling, it is recommended to only use the characters from the list above.

Relationships

  • It is not possible to relate data from two datasets. Create a transform task where you define the relationship in the data model, and use the transform task as source for the task.

  • When two datasets are related in the data model, both datasets will be available in the task, even if you only selected one of the datasets.

Changing connections or data gateway

If you change the vector connection or the vector data gateway, you must prepare the task again.

Troubleshooting

Files moved to OneDrive are not recognized by File knowledge mart

Possible cause  

If files are moved or synced to OneDrive using options that preserve the old file created and modified date, the file is not recognized as a new file.

Proposed action  

Change the file modified date to the current date.

Runtime error when using Pinecone

Possible cause  

NULL values in metadata columns are not supported by Pinecone. Result would be a runtime error.

Proposed action  

  • Transform the NULL values to other values, for example an empty string, or the word NULL, in a transformation before the knowledge mart.

  • Use another vector database.

  • Do not use the column as metadata.

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 – please let us know!