Recuperar contenidos de documentos
Last updated
Last updated
document_id
entero
Requerido. El ID del documento para el cual recuperar contenidos.
start_chunk
entero
El índice del fragmento inicial. El valor predeterminado es 0.
end_chunk
entero
El índice del fragmento final. El valor predeterminado es start_chunk + 20.
404
Documento no encontrado
500
Error interno del servidor
Para documentos grandes, el contenido se divide en fragmentos. Puedes recuperar el documento completo haciendo múltiples solicitudes:
Haz una solicitud inicial con start_chunk=0
Usa el valor end_chunk
devuelto como start_chunk
para la siguiente solicitud
Continúa hasta que hayas recuperado todos los fragmentos
Este endpoint devuelve el contenido de texto sin procesar de un documento, lo que te permite acceder a toda la información para un procesamiento o análisis detallado.
Returns the content of the document with the specified ID, along with the index of the latest retrieved chunk. Each call fetches up to 20 chunks. To get more, use the end_chunk value from the response as the start_chunk for the next call.
The ID of the document to retrieve contents for.
Indicate the starting chunk that you want to retrieve. If not specified, the default value is 0.
Indicate the ending chunk that you want to retrieve. If not specified, the default value is start_chunk + 20.