Hi @Sukesh
Thank you for reaching out regarding the issue with querying your CSV data in Azure AI Search.
Looks like The issue occurs because the CSV indexer does not have a delimiter setting, which leads to incomplete field mapping, such as missing the Total_Cost field. Additionally, the Keyword search type in the chat playground has difficulty with natural language queries and aggregations. While Azure AI Search can retrieve the data, it depends on the LLM to calculate sums or maximum values on the client side, which can result in incomplete or irrelevant outcomes. To resolve this, set the delimiter to , for accurate CSV parsing and use Semantic search for improved query performance.
To resolve this and receive the correct responses (such as "$200" for totals), please follow these steps:
- Correct CSV Parsing in the Indexer:
- Go to Azure AI Search > Indexers > Edit index-csv-data.
- Set the Parsing mode to Delimited text, choose Delimiter character as ,, and ensure First line contains headers is checked.
- Save your changes, then Reset and Run the indexer. Check in Search explorer using Employee_Name:Yesenia Hernandez to confirm that Total_Cost values are displayed.
- How to Update Search Type in Azure AI Studio:
- Go to the Chat playground and add index-csv-data as a data source.
- Set the Search type to Semantic, adjust Top to 10-20, and select GPT-4o-mini.
- Try queries such as "What is the total cost for Yesenia Hernandez?" to confirm it sums the Total_Cost field.
Reference :
https://free.blessedness.top/en-us/azure/search/search-how-to-index-csv-blobs
https://free.blessedness.top/en-us/azure/ai-foundry/openai/use-your-data-quickstart?tabs=keyless%2Ctypescript-keyless%2Cpython-new&pivots=ai-foundry-portal
https://free.blessedness.top/en-us/azure/search/semantic-search-overview
Kindly let us know if the above helps or you need further assistance on this issue.
Please "upvote" if the information helped you. This will help us and others in the community as well.