POST
/
knowledgebase

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
file
file
required

PDF file to upload

chunk_size
integer
default: 512

Chunk size for embedding model

similarity_top_k
integer
default: 15

Number of top similar nodes to return.

overlapping
integer
default: 128

Number of characters which overalap in between neighboring nodes.

Response

200 - application/json
rag_id
string
required

The ID of the knowledgebase

file_name
enum<string>
required

File name of the PDF uploaded

Available options:
created
status
enum<string>
required

Status of the knowledgebase. Initially the status would be processing.

Available options:
processing,
processed