How Folder Sync Works
Unlike direct file attachments that send entire documents to the AI model, Folder Sync uses semantic search to identify relevant sections from your synced folders. This approach enables working with larger document collections while staying within AI model context limits.- Folder Sync
- Direct Attachments
- Processing method: Semantic search identifies relevant sections
- File limit: Up to 200 files per folder
- Best for: Large document collections, FAQ agents, department knowledge bases
- Updates: Daily automatic synchronization
- Context: Only relevant sections sent to model
Setting Up Folder Sync
Navigate to your agent
Start the attachment process
Review sync limitations
- Daily synchronization: Files sync once per day for up-to-date content
- 200 file maximum: Only the first 200 files will be processed
- File type restrictions: Images are excluded
- Initial sync duration: First sync can take up to one hour
Confirm and attach
Folder Sync Limitations
Understanding these technical constraints helps you optimize your folder structure and content strategy:File and Folder Limits
Per Agent Limit
Per Folder Limit
File Type Restrictions
Subfolder Handling
Subfolders count toward the 200-file limit, but attaching subfolders directly as separate synced folders often provides better results:- Reduced file skipping: Direct subfolder attachment decreases the probability of important files being excluded
- Better organization: Separate synced folders for different topics or departments improve content relevance
- Clearer context: Focused folder scope helps the semantic search identify more relevant content sections
Sync Behavior and Timing
Automatic Updates
Your synced folders refresh once daily to ensure agents have access to the latest document versions. This automatic process:- Detects new files added to the folder
- Updates existing files that have been modified
- Removes files that have been deleted from the source folder
- Maintains the 200-file limit by processing files in the order they appear in the source system
Initial Sync Duration
During the initial sync, the system:- Downloads and processes each file for semantic search
- Creates searchable indexes for content discovery
- Validates file formats and applies restrictions
- Establishes the synchronization schedule
Manual Refresh
In addition to automatic daily syncs, you can manually refresh a synced folder at any time to get the latest updates immediately:- Navigate to your agent’s Knowledge section
- Hover over the synced folder you want to refresh
- Click the three dots (⋯) that appear
- Select Refresh from the menu
- You’ve just added important files that need to be available right away
- You want to verify that recent changes have been synchronized
- You’re troubleshooting sync issues and want to force an update
Connection Ownership and User Removal
When you attach a folder from SharePoint or Google Drive to an agent, Langdock uses your personal OAuth connection to authenticate and synchronize the files. This connection is tied to your user account.What Happens When a User Is Removed from Langdock
When a user is deleted from Langdock:- Files remain attached: The documents that were already synced stay attached to the agent and remain accessible to users who have access to that agent
- Syncing stops: The OAuth connection that was used to refresh and sync the folder is deleted along with the user account
- No automatic recovery: The system cannot automatically reconnect to the source folder
How to Restore Syncing
To resume synchronization after the original connector is removed:Remove the broken folder
Re-add the folder
Verify the new connection
Access Control and Permissions
Workspace Configuration
Admins control Folder Sync availability through workspace settings:- Navigate to Settings > Roles in your workspace
- Configure which user roles can attach synced folders
- Enable or disable the feature for specific teams or departments
Agent Sharing and Permissions
- When a user queries the agent, Langdock verifies their access to each file using their connected account
- Files a user doesn’t have permission to view in SharePoint or Google Drive are hidden from that user’s file listings and search results
- Users must have their own integration connection to access synced folder content
- Ensure users have appropriate permissions in SharePoint or Google Drive for the content they need
- Users should connect their own accounts to the relevant integration
- Regularly audit which agents have access to synced folders
Optimizing Folder Sync Performance
Folder Structure Recommendations
For best results with the 200-file limit:- Organize by topic: Create focused folders for specific subjects or projects
- Use descriptive filenames: Clear names help semantic search identify relevant content
- Regular cleanup: Remove outdated or irrelevant files to maximize the value of your 200-file allocation
- Consider subfolder strategy: Attach important subfolders separately rather than relying on the parent folder
Content Quality Tips
- Consistent formatting: Well-structured documents improve search accuracy
- Clear headings: Proper document structure helps identify relevant sections
- Avoid duplicates: Multiple versions of the same content can confuse the semantic search
- Update frequency: More frequently updated folders benefit most from daily synchronization
Troubleshooting Common Issues
Folder not appearing in search
Folder not appearing in search
- Integration not enabled in workspace
- Insufficient permissions to access the folder
- Folder contains no supported file types
- Verify SharePoint or Google Drive integration is active
- Check folder permissions in the source system
- Ensure folder contains at least one supported file format
Files missing from synced folder
Files missing from synced folder
- Folder exceeds 200-file limit
- Files are unsupported formats
- Sync still in progress
- Review folder contents and remove unnecessary files
- Wait for initial sync to complete (up to one hour)
Sync not updating daily
Sync not updating daily
- Source folder permissions changed
- Integration connection issues
- Workspace sync settings modified
- Verify continued access to source folder
- Check integration status in workspace settings
- Contact admin to review sync configuration
Syncing stopped after user left the organization
Syncing stopped after user left the organization
- Remove the folder from the agent’s Knowledge section
- Have another user with access to the source folder re-add it
- The new user’s connection will be used for future synchronization
FAQ
How long does synced content take to become searchable?
How long does synced content take to become searchable?
Why is synced folder content different from directly uploaded files?
Why is synced folder content different from directly uploaded files?
Which permissions are required for folder sync?
Which permissions are required for folder sync?
What should I check if synced files are missing?
What should I check if synced files are missing?