How to load PDF and other Docs #93
-
How to load PDF and other documents, here are just told about .md |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @abrahimzaman360, Thanks for bringing this up! I understand that our documentation primarily mentions The Here's how you can use it:
For example: read_files_as_documents(input_dir="your/path/to/documents", required_exts=['.pdf', '.txt']) You can check all our supported file types here. I hope this clarifies things! If you have more questions or suggestions, please let us know. We appreciate your feedback! |
Beta Was this translation helpful? Give feedback.
Hey @abrahimzaman360,
Thanks for bringing this up! I understand that our documentation primarily mentions
.md
files, which might lead to some confusion.The
read_files_as_documents
andread_github_repo_as_documents
functions were designed to be versatile. By default, they support various file types, not just.md
. Therequired_exts
parameter lets users filter the types of files they want to read, but it's entirely optional.Here's how you can use it:
required_exts
parameter.required_exts
parameter.For example: