Assistants

Link knowledge content to assistant

Link an existing knowledge content to an assistant.

post/orgs/assistants/{assistant_id}/knowledge/contents/{content_id}

Request

  • Base URL: https://api.useinvent.com
  • URL: https://api.useinvent.com/orgs/assistants/{assistant_id}/knowledge/contents/{content_id}
  • Auth: HTTP bearer

Path parameters

assistant_idstring required

The ID of the assistant

content_idstring required

The ID of the content

Response

The limited vector content linked to the assistant.

idstring required
titlestring required

Title of the vector

type'TEXT' | 'FILE' | 'URL' required

Type of the vector content

parent_content_idstring

Parent content ID

sizenumber required

Size of the vector in bytes

chunks_processednumber required

Number of chunks processed for the vector

chunks_countnumber required

Number of chunks in the vector

errorstring nullable required

Error message if vector processing failed

status'PENDING' | 'PROCESSING' | 'PROCESSED' | 'FAILED' required

Status of vector processing

created_atstring date-time nullable required
updated_atstring date-time nullable required

Example response

{
  "content": {
    "file": {
      "file_filename": "document.pdf",
      "file_size": 1024,
      "file_mimetype": "application/pdf"
    }
  },
  "children": [
    {
      "content": {
        "file": {
          "file_filename": "document.pdf",
          "file_size": 1024,
          "file_mimetype": "application/pdf"
        }
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.