Brain
Create Text Document
Brain
Create Text Document
Create documents in a brain with plain text representation
POST
/
brain
/
{brain_id}
/
documents
/
text
curl --request POST \
--url https://api.isosceles.ai/brain/{brain_id}/documents/text \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"content": "What is an operating system? An operating system (OS) is the program that, after being initially loaded into the computer by a boot program, manages all of the other application programs in a computer............",
"title": "oslecture3"
}'
{
"chunk_header": null,
"content": "What is an operating system? An operating system (OS) is the program that, after being initially loaded into the computer by a boot program, manages all of the other application programs in a computer............",
"created_on": 1715540036,
"description": "",
"document_type": "raw_text",
"file_extension": ".txt",
"file_name": null,
"id": "0a7b731a-1aaf-4255-b047-12ebfd446f3c",
"knowledge_base_id": "930388ef-da14-46fb-9c63-0fc7364fa0e5",
"link_to_source": null,
"supp_id": "",
"title": null,
"vectorization_status": "PENDING"
}
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Path Parameters
Body
application/json
Response
200 - application/json
The response is of type object
.
curl --request POST \
--url https://api.isosceles.ai/brain/{brain_id}/documents/text \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"content": "What is an operating system? An operating system (OS) is the program that, after being initially loaded into the computer by a boot program, manages all of the other application programs in a computer............",
"title": "oslecture3"
}'
{
"chunk_header": null,
"content": "What is an operating system? An operating system (OS) is the program that, after being initially loaded into the computer by a boot program, manages all of the other application programs in a computer............",
"created_on": 1715540036,
"description": "",
"document_type": "raw_text",
"file_extension": ".txt",
"file_name": null,
"id": "0a7b731a-1aaf-4255-b047-12ebfd446f3c",
"knowledge_base_id": "930388ef-da14-46fb-9c63-0fc7364fa0e5",
"link_to_source": null,
"supp_id": "",
"title": null,
"vectorization_status": "PENDING"
}