Questions tagged [document-loader]

2 questions
4
votes
2 answers

How to load a folder of Json files in Langchain?

I am trying to load a folder of JSON files in Langchain as: loader = DirectoryLoader(r'C:...') documents = loader.load() But I got such an error message: ValueError: Json schema does not match the Unstructured schema Can anyone tell me how to…
peiwb
  • 41
  • 1
  • 2
1
vote
1 answer

How to load and split from a list of File objects

I'm creating a JavaScript app that has a drop area where you can drop files from your drive. When the files are drop, I get an array of File objects. Now I want to use langchain document loader to load these files and then split them into chunks.…
Fran Casadome
  • 508
  • 4
  • 15