How can I find out through API whether a file previously loaded as unstructured in KB?

Marc Hollyoak 61 Reputation points
2021-08-07T18:01:19.23+00:00

Hi Team,

In QnA Maker portal one can open a knowledgebase, go to settings page, and view the files ingested and whether they have been treated as 'unstructured content' (a checkbox next to File name.

I would like to find out this status programmatically through the API. I can only find how to set the 'isUnstructured' flag in FileDTO (in KB Create and Update API calls), but not read it later.

Is there a way please?

Many thanks

Marc

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
{count} votes

Answer accepted by question author
  1. romungi-MSFT 49,086 Reputation points Microsoft Employee Moderator
    2021-08-10T09:50:08.127+00:00

    @Marc Hollyoak I think you can expect this value to be returned in the next version of the API's. The REST API specs that are available from the repo indicates the same.

      {  
        "sourceName": "source2",  
        "sourceUri": "https://download.microsoft.com/download/2/9/B/29B20383-302C-4517-A006-B0186F04BE28/surface-pro-4-user-guide-EN.pdf",  
        "sourceKind": "file",  
        "contentStructureKind": "unstructured",  
        "lastUpdatedDateTime": "2021-05-01T15:13:22Z"  
      }  
    

0 additional answers

Sort by: Most helpful

Your answer

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