Azure/gpt-rag-ingestion

Provide exemple of use

rchoffar opened this issue · 2 comments

Hi,
Could you please provide an exemple of how it's working ?
I have been trying with this:

{
    "values": [
        {
            "recordId": "",
            "data": {
                "documentContent": "inline",
                "documentUrl": "https://***.blob.core.windows.net/documents/test.txt",
                "documentUrlencoded": "https://***.blob.core.windows.net/documents/test.txt",
                "documentSasToken": "***",
                "documentContentType": "application/text"
            }
        }
    ]
}

But i didnt get it work.

This is the answer i get:

{
    "values": [
        {
            "recordId": "",
            "data": {
                "chunks": []
            },
            "errors": [],
            "warnings": []
        }
    ]
}

Thanks !

Hi

Following worked for me: (pdf document)

{
    "values": [
        {
            "recordId": "",
            "data": {
                "documentContent": "inline",
                "documentUrl": "https://***.blob.core.windows.net/documents/***.pdf",
                "documentSasToken": "?<sas-token>",
                "documentContentType": "application/pdf"
            }
        }
    ]
}

So the SAS needs to be prefixed with a '?'

Hi,

Please, can you share with me where you make this change (which file do you change and where do you upload your pdf document) ?