OpenChat icon indicating copy to clipboard operation
OpenChat copied to clipboard

Add support for importing JSON files

Open zebfross opened this issue 2 years ago • 2 comments

This change adds support for importing JSON files using Langchain's JSONLoader. Here are the major changes:

  • Created new routes and types in the backend-server
  • Added appropriate frontend views
  • Added HandleJsonDataSource.php that handles the uploaded files. Along with json files, I also allow zip files to be uploaded. Zip support required adding the "zip" php extension to the docker file.
  • Added jsonHandler.ts to the llm-server that imports the json files. It uses Langchain's JSONLoader to import the files as documents.

zebfross avatar Jul 03 '23 22:07 zebfross

Wow!

Thanks for the amazing contribution! Will take a look at it tonight.

gharbat avatar Jul 04 '23 18:07 gharbat

How is this coming? I would love to load products list.

inluxc avatar Jul 27 '23 10:07 inluxc