Ingest
POST Ingest Text Document
POST Ingest Text DocumentIngest a text document with metadata. The document will be chunked and indexed for semantic search.
Parameters:
content: Text content to ingestmetadata: (Optional) Dictionary of metadatarules: (Optional) List of processing rules to apply. Each rule can be:Metadata extraction rule with a JSON schema
Natural language rule with a transformation prompt
Returns: Document object with the following fields:
external_id: Unique document identifiercontent_type: Content type (always "text/plain" for text)filename: Always None for text documentsmetadata: Combined user-provided and rule-extracted metadatastorage_info: Empty for text documentssystem_metadata: System-managed metadata (created_at, updated_at, version)access_control: Access control lists (readers, writers, admins)chunk_ids: List of chunk identifiers
Response:
POST Ingest File Document
POST Ingest File DocumentUpload and ingest a file document. Supports various file types including PDFs, Word documents, presentations, and more. The file will be processed, chunked, and indexed for semantic search.
Parameters:
file: File to ingest (path string, bytes, file object, or Path)filename: Name of the filecontent_type: MIME type (optional, will be guessed if not provided)metadata: Optional dictionary of metadatarules: (Optional) List of processing rules to apply to extracted text
Returns: Document object with storage information including:
All fields from text documents
storage_info: Contains bucket and key information for file storagefilename: Original filenamecontent_type: MIME type of the file
Response:
Last updated