Skip to content

Amazon Bedrock Knowledge Base Chunks Retrieval Issue

0

We are currently using Amazon Bedrock knowledge Base (Embedding Model: titan text embedding V2) with DataSource being S3 Bucket which has weather data in CSV format.

When a prompt is asked for a specific date the knowledge base is not able to retrieve the correct chunk of the specified date. The same also happens when we convert csv to pdf/markdown.

What would be the best way that allows the bedrock knowledge base to retrieve the correct date chunk from vector DB. Do we have to change our text embedding model to multimodal embedding? or do we have to change our data to any other format?

2 Answers
0

Hi,

You should try to add metadata with your date to the KB.

Announcement made in March: https://aws.amazon.com/about-aws/whats-new/2024/03/knowledge-bases-amazon-bedrock-metadata-filtering/

See documentation: https://docs.aws.amazon.com/bedrock/latest/userguide/kb-metadata.html

Best,

Didier

EXPERT

answered 2 years ago

0

Is this really a semantic vector search use-case? It sounds like you're trying to do retrieval over structured/tabular data, more like "question-to-SQL" than search... Which might be a use case for Bedrock Knowledge Base's new structured data retrieval capabilities, as detailed (alongside other features) in this blog.

If the knowledge base includes other information aside from the weather, you could also consider whether to treat the weather separately as one "tool", and use a Bedrock Agent to dynamically decide when to call it vs the un-structured knowledge base.

AWS
EXPERT

answered 2 years 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.