> ## Documentation Index
> Fetch the complete documentation index at: https://docs.langdock.com/llms.txt
> Use this file to discover all available pages before exploring further.

# When should I use direct files, a Knowledge base, or Folder Sync?

> Choose between direct file attachments, Knowledge bases, and Folder Sync based on file quantity, length, and update frequency.

**When to attach a file to a chat or an agent chat:**

* There is a small number of files

* The file(s) is/are relatively short

* You use the file only once or only in one chat

* You want the model to read the full file as plain text, for example when exact wording matters

**When to add a file in the agent knowledge:**

* There is a small number of files

* The file(s) is/are relatively short

* You want to use the file regularly in the agent

* The file does not change often (maybe every few days), so it is not too much effort to attach it again to the agent

**When to use a Knowledge base or Folder Sync:**

* There is a large number of files

* The files are very long

* You only need specific sections of the files for a prompt, not the entire files

  * For example: You have built an FAQ agent and attached documentation to it. For each prompt, only some topics are needed and only the relevant sections are used to answer the request.

Use a [Knowledge base](/en/using-langdock/library/knowledge-bases) for uploaded collections you manage in the Library. Use [Folder Sync](/en/using-langdock/guides/integrations/folder-sync) when content from SharePoint or Google Drive should update automatically.
