Overview
The Orama Secure Proxy Plugin provides secure, cloud-based embeddings generation and LLM features for your Orama instances. It allows you to use state-of-the-art embedding models and chat models without exposing API keys on the client side.This plugin requires an Orama Cloud account (free tier available).
Features
- Secure API Proxy: Your API keys never leave Orama Cloud
- Multiple Embedding Models: Choose from Orama and OpenAI models
- Chat Integration: Built-in support for LLM chat models
- Auto-generation: Automatically generate embeddings at insert time
- Client-Safe: Use in browsers and mobile apps without exposing credentials
Installation
Getting Started
1. Get Your API Key
Sign up for a free account at https://cloud.orama.com and obtain your API key.2. Configure the Plugin
Configuration
Plugin Options
Your Orama Cloud API key
Configuration for embeddings generation
Configuration for chat/LLM features
Available Embedding Models
- Orama Models
- OpenAI Models
| Model Name | Provider | Dimensions | Use Case |
|---|---|---|---|
orama/gte-small | Orama | 384 | Best for most applications, fast and efficient |
orama/gte-medium | Orama | 768 | Higher quality embeddings, more compute |
orama/gte-large | Orama | 1024 | Best quality, most compute intensive |
Orama models are optimized for search and offer the best price/performance ratio.
Available Chat Models
| Model Name | Provider | Description |
|---|---|---|
openai/gpt-4o | OpenAI | Latest and most capable GPT-4 model |
openai/gpt-4o-mini | OpenAI | Smaller, faster GPT-4 variant |
openai/gpt-4-turbo | OpenAI | Fast GPT-4 with large context window |
openai/gpt-4 | OpenAI | Standard GPT-4 model |
openai/gpt-3.5-turbo | OpenAI | Fast and cost-effective |
Check the Orama Cloud documentation for the latest available models and provider support.
Usage Examples
Insert with Auto-Generated Embeddings
Vector Search
- Generates embeddings for “headphones for studying”
- Performs vector similarity search
- Returns the most semantically similar results
Hybrid Search
Custom Vector Properties
How It Works
The Secure Proxy plugin implements hooks to intercept insert and search operations:beforeInsert Hook
At/home/daytona/workspace/source/packages/plugin-secure-proxy/src/index.ts:57-76:
beforeSearch Hook
At/home/daytona/workspace/source/packages/plugin-secure-proxy/src/index.ts:78-104:
Accessing the Proxy
The plugin exposes the OramaProxy instance for direct use:Security Benefits
No Exposed Keys
API keys are stored securely in Orama Cloud and never exposed to clients
Client-Side Safe
Use in browsers and mobile apps without security concerns
Rate Limiting
Built-in rate limiting and abuse prevention
Usage Tracking
Monitor API usage through Orama Cloud dashboard
Best Practices
Choose the Right Model
Combine Multiple Properties
Use Verbose Mode During Development
Comparison with Local Embeddings
| Feature | Secure Proxy | Embeddings Plugin |
|---|---|---|
| Setup | API key only | TensorFlow.js required |
| Models | Multiple options | Universal Sentence Encoder only |
| Dimensions | 384-3072 | 512 |
| Client-Side | ✅ Safe | ❌ Model too large |
| Offline | ❌ Requires internet | ✅ Works offline |
| Cost | API usage | Free (compute costs) |
| Performance | Consistent | Varies by hardware |
Troubleshooting
Invalid API Key
Model Not Found
Vector Dimension Mismatch
Next Steps
Vector Search
Learn more about vector search in Orama
Orama Cloud
Sign up for Orama Cloud
Analytics Plugin
Track search analytics with Orama Cloud
Local Embeddings
Compare with offline embeddings plugin