Replies: 3 comments 5 replies
-
could you not just add .txt to the end of those files and have it ingest? the code will sitll be there as well and the .py extension before the .txt |
Beta Was this translation helpful? Give feedback.
-
fair enough. Have gpt4 write you a python script to batch convert .py and .json files to .txt "without deleting original extension from name" then paste that code into a text editor. save the file as PyJsonCnv.py (or something) give gpt4 the folder path to the files you want converted, the the folder path to the "shared documents" in the private GPT folder.. gpt4 will write the whole script (i been doing this trying to convert xlsx to pdf ) next step would be to put that script in the private GPT folder and have the model call upon it when needed...But i dont know how to do that--yet. |
Beta Was this translation helpful? Give feedback.
-
You can just add this line to ingest.py, above "# Add more mappings for other file extensions and loaders as needed:" |
Beta Was this translation helpful? Give feedback.
-
Pls add support for json and python files and any other common file extension which could be in a public GitHub python project. This would make this tool so good.
Beta Was this translation helpful? Give feedback.
All reactions