upload_file()
Upload a file from disk. Vrin accepts PDFs, CSVs, text files, and other common document formats.Parameters
If
True, persist extracted knowledge to the knowledge base. If False, the file is processed but facts are not stored permanently.Example
upload_bytes()
Upload raw bytes directly without a file on disk.Parameters
get_upload_status()
Check the processing status of a file upload.Parameters
Supported file types
What happens during upload
- File is uploaded via multipart POST to the upload endpoint
- Vrin detects the file type and extracts text content
- Content is chunked, facts are extracted, and everything is indexed
- The upload status transitions:
processing->completed(orfailed)