Ruta
El id del almacén de datos al que quieres acceder.
Cuerpo
Respuesta
Los IDs de los documentos que fueron creados.
curl --location --request POST 'https://app.braviloai.com/api/datastores/upsert/<datastoreId>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <API_KEY>' \
--data-raw '{
"documents": [
"text": "Lorem Ipsum...",
"name": "Mi Documento",
"metadata": {
"source" : "https://en.wikipedia.org/wiki/Lorem_ipsum",
"author": "John Doe",
"date": "2021-01-01",
}
]
}'
{
"ids": ["60f9b9f0-0b1a-11ec-9a03-0242ac130003"]
}
Este endpoint te permite agregar una nueva Fuente de Datos en un Almacén de Datos
curl --location --request POST 'https://app.braviloai.com/api/datastores/upsert/<datastoreId>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <API_KEY>' \
--data-raw '{
"documents": [
"text": "Lorem Ipsum...",
"name": "Mi Documento",
"metadata": {
"source" : "https://en.wikipedia.org/wiki/Lorem_ipsum",
"author": "John Doe",
"date": "2021-01-01",
}
]
}'
{
"ids": ["60f9b9f0-0b1a-11ec-9a03-0242ac130003"]
}
curl --location --request POST 'https://app.braviloai.com/api/datastores/upsert/<datastoreId>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <API_KEY>' \
--data-raw '{
"documents": [
"text": "Lorem Ipsum...",
"name": "Mi Documento",
"metadata": {
"source" : "https://en.wikipedia.org/wiki/Lorem_ipsum",
"author": "John Doe",
"date": "2021-01-01",
}
]
}'
{
"ids": ["60f9b9f0-0b1a-11ec-9a03-0242ac130003"]
}