您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. ---
  2. sidebar_position: 5
  3. slug: /manage_files
  4. ---
  5. # Files
  6. Knowledge base, hallucination-free chat, and file management are the three pillars of RAGFlow. RAGFlow's file management allows you to upload files individually or in bulk. You can then link an uploaded file to multiple target knowledge bases. This guide showcases some basic usages of the file management feature.
  7. :::danger IMPORTANT
  8. Compared to uploading files directly to various knowledge bases, uploading them to RAGFlow's file management and then linking them to different knowledge bases is *not* an unnecessary step, particularly when you want to delete some parsed files or an entire knowledge base but retain the original files.
  9. :::
  10. ## Create folder
  11. RAGFlow's file management allows you to establish your file system with nested folder structures. To create a folder in the root directory of RAGFlow:
  12. ![create new folder](https://github.com/infiniflow/ragflow/assets/93570324/3a37a5f4-43a6-426d-a62a-e5cd2ff7a533)
  13. > Each knowledge base in RAGFlow has a corresponding folder under the **root/.knowledgebase** directory. You are not allowed to create a subfolder within it.
  14. ## Upload file
  15. RAGFlow's file management supports file uploads from your local machine, allowing both individual and bulk uploads:
  16. ![upload file](https://github.com/infiniflow/ragflow/assets/93570324/5d7ded14-ce2b-4703-8567-9356a978f45c)
  17. ![bulk upload](https://github.com/infiniflow/ragflow/assets/93570324/def0db55-824c-4236-b809-a98d8c8674e3)
  18. ## Preview file
  19. RAGFlow's file management supports previewing files in the following formats:
  20. - Documents (PDF, DOCS)
  21. - Tables (XLSX)
  22. - Pictures (JPEG, JPG, PNG, TIF, GIF)
  23. ![preview](https://github.com/infiniflow/ragflow/assets/93570324/2e931362-8bbf-482c-ac86-b68b09d331bc)
  24. ## Link file to knowledge bases
  25. RAGFlow's file management allows you to *link* an uploaded file to multiple knowledge bases, creating a file reference in each target knowledge base. Therefore, deleting a file in your file management will AUTOMATICALLY REMOVE all related file references across the knowledge bases.
  26. ![link knowledgebase](https://github.com/infiniflow/ragflow/assets/93570324/6c6b8db4-3269-4e35-9434-6089887e3e3f)
  27. You can link your file to one knowledge base or multiple knowledge bases at one time:
  28. ![link multiple kb](https://github.com/infiniflow/ragflow/assets/93570324/6c508803-fb1f-435d-b688-683066fd7fff)
  29. ## Move file to a specific folder
  30. ![move files](https://github.com/user-attachments/assets/3a2db469-6811-4ea0-be80-403b61ffe257)
  31. ## Search files or folders
  32. **File Management** only supports file name and folder name filtering in the current directory (files or folders in the child directory will not be retrieved).
  33. ![search file](https://github.com/infiniflow/ragflow/assets/93570324/77ffc2e5-bd80-4ed1-841f-068e664efffe)
  34. ## Rename file or folder
  35. RAGFlow's file management allows you to rename a file or folder:
  36. ![rename_file](https://github.com/infiniflow/ragflow/assets/93570324/5abb0704-d9e9-4b43-9ed4-5750ccee011f)
  37. ## Delete files or folders
  38. RAGFlow's file management allows you to delete files or folders individually or in bulk.
  39. To delete a file or folder:
  40. ![delete file](https://github.com/infiniflow/ragflow/assets/93570324/85872728-125d-45e9-a0ee-21e9d4cedb8b)
  41. To bulk delete files or folders:
  42. ![bulk delete](https://github.com/infiniflow/ragflow/assets/93570324/519b99ab-ec7f-4c8a-8cea-e0b6dcb3cb46)
  43. > - You are not allowed to delete the **root/.knowledgebase** folder.
  44. > - Deleting files that have been linked to knowledge bases will **AUTOMATICALLY REMOVE** all associated file references across the knowledge bases.
  45. ## Download uploaded file
  46. RAGFlow's file management allows you to download an uploaded file:
  47. ![download_file](https://github.com/infiniflow/ragflow/assets/93570324/cf3b297f-7d9b-4522-bf5f-4f45743e4ed5)
  48. > As of RAGFlow v0.17.2, bulk download is not supported, nor can you download an entire folder.