documents.upload
Uploads text documents to a text namespace. Moorcheh will process and embed these asynchronously.Parameters
Returns:Dict[str, Any] - A dictionary confirming the documents were queued.
Raises: NamespaceNotFound, InvalidInputError.
Upload Documents Example
vectors.upload
Uploads pre-computed vectors to a vector namespace. This is a synchronous operation.Parameters
Returns:Dict[str, Any] - A dictionary confirming the upload status.
Raises: NamespaceNotFound, InvalidInputError.
Upload Vectors Example
documents.delete
Deletes specific documents from a text namespace by their IDs.Parameters
Returns:Dict[str, Any] - A dictionary confirming the deletion status.
Delete Documents Example
vectors.delete
Deletes specific vectors from a vector namespace by their IDs.Parameters
Returns:Dict[str, Any] - A dictionary confirming the deletion status.
Delete Vectors Example
Complete Data Management Example
Complete Data Management Workflow
Document Structure Best Practices
Required Fields
- id: Unique identifier for the document (string or number)
- text: The main content to be searched (string)
Optional Metadata
You can include any additional fields as metadata:Well-Structured Documents
Vector Data Structure
For vector uploads, ensure your vectors match the namespace dimension:Vector Structure
Important Notes
Asynchronous Processing: Text documents are processed asynchronously. Allow a few seconds after upload before searching.