azureazure-blob-storageazure-openaiazure-ai-search

Fetch Data from Azure Blob Storage to Azure AI Search - RAG


I am developing a RAG-based chatbot to search through my content. I have uploaded all the contents to blob storage and imported the blob storage into the Azure AI Search service. I attempted to use an index/indexer, but the index operates based on fields only, whereas I want to search through everything. Is there an alternative way to achieve this?

I also want any new data added to my blob container to be automatically included in Azure AI Search.

enter image description here


Solution

  • I attempted to use an index/indexer, but the index operates based on fields only, whereas I want to search through everything. Is there an alternative way to achieve this?

    Based on your capture, where you only have 1 index field called 'id', I guess you incorrectly understood the way an index is used. You need to define your index structure with the appropriate fields first, given what you want to achieve:

    And once you have listed what you need from your files, and defined and created your index structure, then you will use an 'indexer' to fill your index with your data.

    For example, when you use the "Add your data" tab in Azure OpenAI Studio, it will automatically create all that for you. You end up having this kind of index structure: index structure

    Here:

    I also want any new data added to my blob container to be automatically included in Azure AI Search.

    You need to define the frequency of processing of your indexer to run regularly. Of you can use some code, for example by using an Azure Function with a "Blob trigger" event, where you will index your document when the function runs because it is fired when a blob is created / modified.