The Four Methods
Method 1: Tenant Uploads Files
How it works:
- Tenant uses Context Builder or Context Configuration component
- Tenant creates contexts manually
- Tenant uploads files into those contexts
- You provision these tenant-level contexts in agent sessions
Method 2: You Provide App-Level Contexts
How it works:
- You create app-level contexts via Contexts API
- You upload and manage files centrally
- You provision these to tenants through agent sessions
- Tenants don’t need to upload anything
Method 3: You Create Tenant-Level Contexts
How it works:
- Use Contexts API with
externalTenantIdparameter - Create contexts programmatically for specific tenants
- Optional: Set up synced ingestion (e.g., from Google Drive)
- Files automatically sync when changed
Method 4: RAG MCP
How it works:
- Provision a RAG-type MCP instead of contexts
- No context creation or file uploads needed
- RAG MCP handles knowledge retrieval
- Cannot be combined with contexts in same session
Method Comparison
Important: Contexts vs RAG MCP
Quick Decision Guide
1
Do tenants need to provide their own knowledge?
YES → Use Method 1 (Tenant Uploads Files)NO → Continue to next step
2
Do you have standardized knowledge for all tenants?
YES → Use Method 2 (App-Level Contexts)NO → Continue to next step
3
Do you need to create tenant-specific knowledge programmatically?
YES → Use Method 3 (Tenant-Level via API)NO → Continue to next step
4
Do you have an existing RAG system?
YES → Use Method 4 (RAG MCP)
You can combine multiple methods! For example, provide app-level contexts for common knowledge while letting tenants upload their own files for specialized content.