Quick Start
Installation
Install the SDK using pip:Installation
Authentication
Get your API key from console.moorcheh.ai/api-keys. Set your API key as an environment variable:Example Workflow
Here is a complete example showing how to create a namespace, upload documents, search, and generate an answer.Key Features
Full API Coverage
Manage namespaces, ingest data, perform searches, and generate AI answers.
Simplified Authentication
Automatic handling of API keys via environment variables.
Robust Error Handling
Custom exceptions for specific API errors, allowing for graceful failure and recovery.
Context Management
The client is designed to be used as a context manager (with statement) for efficient handling of network resources.
Next Steps
- Client Initialization - Learn how to configure the MoorchehClient
- Namespace Management - Create and manage namespaces
- Data Management - Upload and manage your data
- Search & AI - Perform searches and get AI answers
- Best Practices - Learn best practices and error handling