Knowledge Folders

Knowledge Folders

Knowledge folders let you work with up to 1,000 files in a single collection, extending beyond the 20-file limit for direct attachments. This guide covers setup, usage, and key differences from direct file attachments.

Knowledge folders use vector search to find relevant content sections, which enables large document collections but may not consider every document part for each response.

Understanding the Context Window Limitation

Direct File Attachments vs Knowledge Folders

  • Direct attachments: Up to 20 files sent directly to the model’s context window

  • Knowledge folders: Up to 1,000 files with vector search selecting relevant sections

The 20-file limit exists because of model context windows (the maximum information models can process simultaneously).

When you attach a knowledge folder, Langdock’s vector search identifies the most relevant document sections for your specific prompt, then sends only those sections to the model. This approach enables large document collections while working within context window constraints.

For detailed comparisons between knowledge folders and direct attachments, see our comprehensive guidearrow-up-right.

Supported File Types

Knowledge folders support most document formats including PDF, DOCX, TXT, and Markdown files.

Tabular Data Limitation: XLSX and CSV files cannot be added to knowledge folders. For spreadsheet data analysis, use direct file attachments (up to 20 files) or convert your data to a supported text format.

File Size Limits

Langdock’s character limits for file uploads are determined by the underlying LLM providers’ token restrictions. Since 1 token is approximately 4 characters, and the file upload limit for most major providers is 2 million tokens (roughly 8 million characters), Langdock also supports up to 8 million characters for file content such as PDFs.

Setting Up Knowledge Folders

1

Access Knowledge Folders

Navigate to https://app.langdock.com/integrations in your Langdock workspace.

2

Create and Populate Your Folder

Choose your upload method:

  • Manual upload: Select files directly from your computer

  • API integration: Push files programmatically using our REST API

3

Attach to Assistant

  • Open your target assistant

  • Go to the Knowledge section

  • Click Add Action

  • Search for your knowledge folder name

  • Select Add for the "Search in [folder name]" action

Sharing and Permissions

Knowledge folders support the same sharing capabilities as assistants:

  • Individual Sharing

  • Group Sharing

  • Workspace Sharing

Share with specific users in your workspace.

Workspace admins can configure sharing permissions for different roles at User Management > Rolesarrow-up-right.

API Integration

Knowledge Folder API

  • Rate limit: 50 requests per minute

  • Authentication: API key required (generated by workspace admins)

  • Documentation: Complete schema available in our API guidesarrow-up-right

API Key Management

(See the Knowledge Folder API section above for authentication and key usage.)