Product Updates
January 13, 2025

Launch Week - Day 1: Introducing Ragie Connect

Bob Remeika
,
Co-founder and CEO

Many of you have asked for a way to use our robust RAG pipeline in your SaaS application, which is why we’re shipping Ragie Connect.

With Ragie Connect, you can:

  1. Build RAG applications on your users’ data.
  2. Leverage built-in authentication and permissions so you can ship in minutes, not weeks.
  3. Take advantage of automatic data syncing that keeps your application in sync with data from sources like Google Drive, Notion, Salesforce, and more. 
  4. Focus on innovation by letting Ragie handle the heavy lifting of data integration and ingestion. 

Building AI applications that seamlessly integrate with user data is no small feat. Developers often face challenges like authentication, permissions, building a custom integration for each data source, and ensuring that the application syncs data in real-time—all while trying to deliver user-friendly experiences. 

Ragie Connect makes it easier than ever to build RAG applications on top of your users’ data, so you can ship generative AI features in minutes.

Whether you're building next-gen productivity tools, enhancing customer workflows, or creating personal AI assistants, Ragie Connect will help you easily integrate RAG into your product without the infrastructure headaches.

When to Use Ragie Connect vs. our Standard Connectors

Ragie Comparison Table
Feature Ragie Connect Standard Ragie API
Use Case Multi-tenant SaaS apps that require user data for context Internal apps or custom workflows
Authentication Handles user authentication and authorization Requires manual integration
Data Syncing Automatic syncing from platforms like Google Drive, Notion, etc. Custom syncing workflows needed
Ideal For Direct user-to-data source connections Preprocessed or centralized data

Getting Started with Ragie Connect 

Here’s a quick step-by-step video that explains how to embed Ragie Connect into your applications:

In the video demo above, we integrated Ragie Connect into Base Chat, a multi-tenant AI chatbot that enables users to connect their data to the application and chat with their knowledge base. Base Chat is open-source, and we’re excited to announce that a comprehensive guide for cloning and deploying your own instance will be live on the last day of Launch Week.

Check out the GitHub repo: https://github.com/ragieai/basechat 

In summary, integrating Ragie Connect into your product involves two straightforward steps:

1. Initiate a Connection

Start by generating a redirect URL using the Ragie API. This establishes trust between your application and Ragie and associates the connection with your account.

Example API call:

curl https://api.ragie.ai/connections/oauth \    
	-H "Authorization: Bearer $RAGIE_API_KEY" \    
    --json '{"source_type": "google_drive", "redirect_uri": "https://example.com/link/to/your/application"}'    

This returns a redirect URL to guide your users through authentication. Once the connection is complete, Ragie redirects them back to your app with a connection_id.

2. Monitor the Connection via Webhooks

Ragie can notify your application of connection events through webhooks, such as:

  • connection_sync_started
  • connection_sync_progress
  • connection_sync_finished

These webhook payloads include details like connection ID, sync progress, and document counts, enabling you to tailor user experiences. For example, you can enable RAG features in your application once a sync is at least 50% complete. Applications subscribing to these events can dynamically adjust functionality based on the sync status.

Managing your Connections

After establishing connections, you can manage them through Ragie’s API to optimize your integration. For example, you can enable or disable a connection to control its sync behavior:

curl https://api.ragie.ai/connections/{connection_id}/enabled \    
	--request PUT \    
    -H "Authorization: Bearer $RAGIE_API_KEY" \    
    --json '{"enabled": "false"}'  

Other management options include:

  • Updating Metadata: Modify metadata or partition strategies.
  • Retrieving Statistics: View document counts for a connection.
  • Deleting Connections: Remove connections and optionally keep associated files.

Check out our API Documentation for more details on the management options we currently offer. 

Feedback

What are you trying to build with RAG? How might Ragie Connect help you? Send us your feedback via Discord, or talk to us directly by booking a demo on this Calendar.