This plugin makes your local files accessible to ChatGPT via local plugin; allowing you to ask questions and interact with files via chat. Features and use-cases:
- Point to the base directory of code, allowing ChatGPT to read your existing code and any changes you make throughout the chat
- In addition to text files/code, also supports extracting text from PDF and DOCX files.
The core idea is based on something implemented in kesor's fantastic chatgpt-code-plugin. This is simply a less-specific version of that project, with support for reading any text-based (like code), PDF, or DOCX files.
You need Plugin Developer access for this.
git clone git@github.com:samrawal/chatgpt-localfiles.git
cd chatgpt-localfiles
pip install -r requirements.txt
- You can access via command-line or a GUI:
python serve.py {path_to_your_base_directory}
ORpython gui.py
- The GUI is currently macOS-only and comes with a GUI directory picker and taskbar icon when server is running.
3. Add the plugin to ChatGPT (only needs to be done once): Note: you need Plugin Developer Access for this
- Go to Plugins -> Develop your own plugin -> Type
localhost:9900
. Make sure the app is running while you do this!