question

MarcHollyoak-6307 avatar image
0 Votes"
MarcHollyoak-6307 asked MarcHollyoak-6307 commented

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

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-qna-maker
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@MarcHollyoak-6307 Yes, this seems to be a current limitation with the GetDetails API as this value is not returned programmatically. We will check internally if this will be supported or if there a way to get the details with the current set of API's. Thanks for spotting this.


0 Votes 0 ·

1 Answer

romungi-MSFT avatar image
0 Votes"
romungi-MSFT answered MarcHollyoak-6307 commented

@MarcHollyoak-6307 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"
   }




· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Perfect!

Please pass on my thanks to the team for your rapid response.

Kind regards

Marc

0 Votes 0 ·