How Folder Sync Works
Unlike direct file attachments, Folder Sync uses semantic search to identify relevant sections from synced text documents. Synced spreadsheets use complete file reading instead.- Folder Sync
- Direct Attachments
- Processing method: Semantic search for text documents; complete file reading for spreadsheets
- File limit: Up to 200 files per folder in Cloud workspaces
- 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 or project
Start the attachment process
Review sync limitations
- Daily synchronization: Files sync once per day for up-to-date content
- File maximum: Up to 200 files per folder in Cloud workspaces. Dedicated deployments support up to 1,000 files per folder.
- 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 or Project Limit
Per Folder Limit
File Type Restrictions
Subfolder Handling
Subfolders count toward the 200-file limit in Cloud workspaces. Dedicated deployments use a 1,000-file limit. 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 and projects 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 applicable 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 supported file. It embeds text documents for semantic search and prepares spreadsheets for direct reading.
- 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 an integration to an Agent or Project, 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 or project. Users with access can continue reading them when they have source permissions and their own integration connection
- 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 with the Attach integration folders role permission, which sets who can attach integration folders to agents and projects. To change it:- Navigate to Settings > Roles in your workspace
- In the Files section, enable or disable Attach integration folders for each role
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 the source system 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 the source system 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, organize folders within the 200-file limit in Cloud workspaces. Dedicated deployments support up to 1,000 files per folder.- 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 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 the relevant 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 the 200-file Cloud limit or the 1,000-file Dedicated 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 or the project’s Context 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 does integration folder sync work?
How does integration folder sync work?
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?