admin管理员组

文章数量:1125775

I have an indexer in azure search with following fields:

content string
contentVector Single Collection
date DateTimeOffset
category string

when quering for data with LLM:

show me books for nature published in year 2022.

i often get data from other years as well. In order to solve this, I wanted to use prompt flow by parsing the query using python code to see if it has time information. if it does then i wanted to apply filter:

"date ge 2022-01-01T00:00:00Z and date lt 2023-01-01T00:00:00Z"

but in Index Lookup, I do not have any option to add this filter. Wondering if this approach is right? using only date filter here for simplicity.

i also tried giving below string in queries. results were better but still get records from other years:

show me books for nature theme. and (date ge 2022-01-01T00:00:00Z and date lt 2023-01-01T00:00:00Z)

thank you in advance for any documentation or guidance on this.

本文标签: azure prompt flow component Index Lookup does not have filter optionStack Overflow