Sources

You can see which Sources Alan used to reply your question.

A Source can be a PDF page, or a XLSX content or even a part of a video.

We return the full text of the source, if the source is a document ( pdf, word ) we will return the raw_page containing the image of the page.

GET https://backend.az.misterturing.com/v4.0/workstation/get_sources/

Request Param

Name
Type
Description

message_id*

string

message_id created while Sending a Message

{
    "sources": [
        {
            "document_name": "file_name",
            "link": "https://alan-files-read-5a00c334ae2a.s3.amazonaws.com/path/file_name.pdf",
            "raw_page": "https://backend.az.misterturing.com/v4.0/chat/page-images/UUID",
            "text": "Source Text",
            "type": "pdf",
            "votes": 0,
            "source_id": "id:page:page:g=8f29c53d-7d94-404e-af13-5f09e7f3c368:2950220732072394198",
            "feedback": "non_evaluated"
        }
    ]
}

You will use the source_id to improve Alan by applying feedbacks, more details in How use Feedback's to improve Alan

Last updated