Inquire about the number of blobs from Azure OpenAI chat

ash7f 0 Reputation points
2023-09-24T05:18:00.5366667+00:00

I have a number of documents in a blob storage that have been indexed using Cognitive Search. I have an Azure OpenAI resource with Cognitive Search as the data source. Is it possible to make the chat return the number of documents in the blob storage?

I tried tagging the documents and indexing the tags, but that was unsuccessful.

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
991 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,836 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,029 questions
{count} votes

1 answer

Sort by: Most helpful
  1. VenkateshDodda-MSFT 20,696 Reputation points Microsoft Employee
    2023-09-25T06:17:20.97+00:00

    @ash7f Thanks for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this.

    You can leverage the $count=true to get the number of matches found in an index. On an empty search, count is the total number of documents in the index. On a qualified search, it's the number of documents matching the query input.

    Count of matching documents in index

    Feel free to reach back to me if you have any further questions on this.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.