Creating a SmartBucket
Overview
SmartBuckets are intelligent storage containers that give you powerful search and conversational AI capabilities for your documents and data. They are managed through Raindrop applications, which provides several benefits:
- Full versioning capabilities
- Consistent deployment patterns
- Resource management
- Access control integration
Prerequisites
Before creating a SmartBucket, ensure you have:
- Raindrop CLI installed and authenticated.
- Appropriate permissions in your Raindrop account
- Basic understanding of Raindrop manifest syntax
Step-by-Step Creation Process
1. Install Raindrop CLI
First, install the latest version of the Raindrop CLI:
npm install -g @liquidmetal-ai/raindrop@latest
2. Create a SmartBucket Application
Create a new SmartBucket application by cloning our template:
raindrop build clone liquidmetal/smartbucket my-app
This command:
- Creates a new application directory with the name
my-app
- Sets up all necessary configuration files
- Creates a SmartBucket in
my-app
calledmy-app-smartbucket
- When prompted, type “Y” to create a SmartBucket in your organization
3. Navigate to Your Application Directory
cd my-app
4. Deploy and Start Your SmartBucket
Deploy and start your SmartBucket with these commands:
raindrop build deployraindrop build startraindrop build status -o watch
These commands:
- Deploy your SmartBucket configuration
- Start the SmartBucket service
- Monitor the deployment status
6. Upload Your First Document
Upload documents to your SmartBucket using:
raindrop object put <path-to-file> <key> -b my-app-smartbucket
Note: The key
is the name you give to the document in your SmartBucket. Please note that you must use a unique key for each document.
Note: The flag -b
is followed by my-app-smartbucket
, which is the name of your SmartBucket.
7. List Files in Your SmartBucket
View all documents in your SmartBucket:
raindrop object list -b my-app-smartbucket
8. Search and Interact With Your Content
Search across all your documents and have conversations with your data:
raindrop query search 'Your search query' -b my-app-smartbucket
Next Steps
After creating your SmartBucket, you can: