Document and Document Loaders
- Document is an object that refers to individual doc or part of the document.
-
Refer Here for the class reference of document object
-
Generally we dont create document objects we load the document objects from files or urls
- Document Loaders help in reading from various sources and return document objects
- Refer Here for document loaders
Lets Experiment
- Create a text file and store it data/intro.txt
- Add a pacakge called as langchain_community
uv add langchain_community
-
Lets use text loader
-
Lets create a pdf file and try reading that.
-
using some loaders will work when we install external packages
-
Lets create a csv loader
-
Lets load from directory with files
-
Refer Here for notebook
