Azure / gpt-rag-ingestion

MIT License
61 stars 53 forks source link

Provide exemple of use #5

Open rchoffar opened 1 year ago

rchoffar commented 1 year ago

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 !

CeyssensStef commented 10 months ago

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 '?'

paulmoise commented 10 months ago

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) ?