Skip to content

q business specify priority for a data source?

0

Hello, I have created an application with multiple data sources (all using S3 buckets with word/excel files as source). Whilst creating an app in the Q business end-user console, is it possible to give priority in the prompt to prefer an answer from data source A, and if no suitable answer is found, use data source B? ( Both sources are available in the output card and are selected to allow access. ) Or is giving a priority/preference only possible if suitable metadata is created first for each document? (currently it has only the default metadata). Kind regards, Menno

asked a year ago237 views

1 Answer
1

Currently, there isn't a direct way to specify priority for data sources in Amazon Q Business without using metadata. However, you can use custom document enrichments to achieve a similar effect.

Custom document enrichments allow you to preprocess the data in Q and add additional metadata to your documents. By adding specific metadata to documents from different data sources, you can influence how Q prioritizes information when answering queries.

For example, you could add a "priority" or "source" attribute to documents from data source A with a higher value, and a lower value for documents from data source B. Then, you can use metadata boosting to give preference to documents with higher priority values.

To implement this:

  1. Use custom document enrichments to add priority metadata to your documents.
  2. Enable the new metadata fields for search in your index settings.
  3. Configure metadata boosting to give higher weight to the priority field.

This approach allows you to indirectly prioritize one data source over another without changing the core functionality of Q Business. However, it does require additional setup and preprocessing of your documents.

If you haven't added any custom metadata yet, you'll need to implement this enrichment process to achieve the prioritization you're looking for. The default metadata alone won't allow for source-specific prioritization.

Remember that this method influences but doesn't guarantee that answers will always come from the preferred source. Q will still aim to provide the most relevant answer based on the query and available information.
Sources
Get answer from specific source on Amazon Q Business Chat | AWS re:Post
Enhancing an Amazon Q Business application environment - Amazon Q Business

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.