Skip to main content
UKnow cloud storage integration allows your agents to search and retrieve information directly from your cloud storage accounts without manual file uploads. Connect multiple cloud storage providers and give agents access to your organization’s documents.

Overview

UKnow provides semantic search capabilities across:
  • Google Drive - Search across all your Google Drive files and folders
  • Dropbox - Access Dropbox documents and shared folders
  • OneDrive - Search personal and business OneDrive accounts
  • SharePoint - Connect to SharePoint document libraries
UKnow connections are managed via OAuth authentication and require the UKnow service to be configured with valid API credentials.

How It Works

  1. OAuth Connection: Users authenticate with their cloud storage provider via UKnow OAuth
  2. Drive Selection: Choose which drives/libraries to include in search
  3. Path Filtering: Optionally filter to specific folders or paths
  4. Semantic Search: Agents query documents using natural language
  5. Real-time Access: No file uploads needed - agents access live cloud data

Configuration

Basic Configuration

agents:
  - name: "document_assistant"
    agent_type: "llm_agent"
    
    knowledge_bases:
      - name: "company_sharepoint"
        knowledge_base_type: "uknow"
        enabled: true
        config:
          username: "[email protected]"
          drive_key: "abc123xyz"
          path_filter: "/documents/"
          drive_ids: []

Configuration Fields

name
string
required
Unique identifier for this knowledge base instance
knowledge_base_type
string
required
Must be set to "uknow"
enabled
boolean
default:"true"
Enable or disable this knowledge base
config
object
required
UKnow-specific configuration object

Usage Examples

SharePoint Document Library

agents:
  - name: "hr_assistant"
    agent_type: "llm_agent"
    
    knowledge_bases:
      - name: "hr_policies"
        knowledge_base_type: "uknow"
        enabled: true
        config:
          username: "[email protected]"
          drive_key: "sharepoint_key_123"
          path_filter: "/HR Policies/"
          drive_ids: ["sharepoint-site-guid-1234"]
    
    system_prompt: |
      You are an HR assistant with access to company policies and procedures.
      Search the knowledge base to answer employee questions accurately.

Google Drive with Multiple Folders

agents:
  - name: "sales_assistant"
    agent_type: "react_agent"
    tools: ["web_search"]
    
    knowledge_bases:
      - name: "sales_materials"
        knowledge_base_type: "uknow"
        enabled: true
        config:
          username: "[email protected]"
          drive_key: "gdrive_key_456"
          path_filter: "/Sales Materials/"
          search_options:
            search_type: "mmr"
            fetch_k: 10
            lambda_mult: 0.7
    
    system_prompt: |
      You are a sales assistant with access to product documentation and sales materials.
      Use the knowledge base to find relevant information for customer inquiries.

Multiple Cloud Storage Connections

agents:
  - name: "knowledge_agent"
    agent_type: "llm_agent"
    
    knowledge_bases:
      - name: "sharepoint_docs"
        knowledge_base_type: "uknow"
        enabled: true
        config:
          username: "[email protected]"
          drive_key: "sp_key_123"
          path_filter: "/documents/"
      
      - name: "google_drive_files"
        knowledge_base_type: "uknow"
        enabled: true
        config:
          username: "[email protected]"
          drive_key: "gd_key_456"
          path_filter: "/shared/"
    
    system_prompt: |
      You have access to multiple cloud storage sources.
      Search across all available knowledge bases to find relevant information.

Managing Connections

UKnow connections are managed through the platform interface or API. Each connection represents an authenticated cloud storage account.

Connection Properties

  • Email: Cloud storage account email
  • Drive Key: OAuth authentication token
  • Display Name: Friendly name for the connection
  • Drive IDs: Selected drives/libraries to search
  • Path Filter: Folder path restriction
  • Sync Status: Connection readiness (syncing, ready)

Connection Lifecycle

1

OAuth Authentication

User authenticates with cloud provider via UKnow OAuth flow
2

Drive Discovery

System fetches available drives/libraries from the account
3

Configuration

User selects drives and sets path filters
4

Sync Status Check

System verifies connection is ready for search
5

Agent Integration

Connection is used in agent knowledge base configuration

Search Behavior

How Agents Search UKnow

When an agent needs information:
  1. Query Processing: Agent’s question is sent to UKnow API
  2. Semantic Search: UKnow performs vector similarity search across configured drives
  3. Path Filtering: Results filtered by path_filter if specified
  4. Drive Filtering: Results limited to drive_ids if specified
  5. Ranking: Results ranked by relevance score
  6. Context Injection: Top results provided to agent as context

Search Types

Best Practices

Path Filtering: Use specific path filters to improve search relevance and reduce noise. Instead of searching entire drives, target specific folders.
Drive Selection: For SharePoint, select specific document libraries rather than searching all sites to improve performance.
Search Type: Use similarity for most cases. Use mmr when you need diverse results (e.g., research tasks).
Fetch K: Start with 5-10 results. Increase if agents need more context, but be mindful of token limits.
OAuth Tokens: Drive keys are sensitive credentials. Never hardcode them in configurations. Use the platform’s secure connection management.
Sync Status: Ensure connections show sync_status: ready before using in production. Syncing connections may return incomplete results.

Limitations

  • Read-Only: UKnow knowledge bases are read-only. Agents cannot create, update, or delete cloud files.
  • OAuth Required: All connections require valid OAuth authentication through UKnow.
  • API Dependency: Requires UKnow API to be configured with UKNOW_API_BASE and UKNOW_API_KEY environment variables.
  • Sync Delays: New files may take time to appear in search results depending on cloud provider sync.

Troubleshooting

Connection Issues

IssueCauseSolution
sync_status: syncingConnection still indexingWait for sync to complete, check status via API
Missing credentialsAPI keys not configuredVerify UKNOW_API_BASE and UKNOW_API_KEY environment variables
No results foundPath filter too restrictiveBroaden path filter or check folder exists
Authentication failedExpired OAuth tokenRe-authenticate connection via platform

Search Quality Issues

  • Check path_filter is targeting correct folders
  • Verify drive_ids include the right libraries
  • Try adjusting search_type (e.g., use MMR for diversity)
  • Check connection sync_status is “ready”
  • Cloud provider may have sync delay
  • Verify document is in filtered path
  • Reduce fetch_k value
  • Use more specific path_filter
  • Limit drive_ids to relevant libraries only

Next Steps