Ingests and processes a file, storing its chunks to be used as context.
The context obtained from files is later used in
/chat/completions
, /completions
, and /chunks
APIs.
Most common document formats are supported, but you may be prompted to install an extra dependency to manage a specific file type.
A file can generate different Documents (for example a PDF generates one Document
per page). All Documents IDs are returned in the response, together with the
extracted Metadata (which is later used to improve context retrieval). Those IDs
can be used to filter the context used to create responses in
/chat/completions
, /completions
, and /chunks
APIs.