files-to-chat
is a command-line tool designed to process files or folders, converting their contents into a format suitable for use as a prompt context to chat with large language models (LLMs).
To install and use files-to-chat
, you have two options:
-
Using pip:
pip install files-to-chat
-
From Source:
git clone https://github.com/mzbac/files-to-chat.git cd files-to-chat pip install .
Run the tool from the command line to chat with processed documents:
files-to-chat path/to/file_or_folder
For detailed options, run:
files-to-chat --help
files-to-chat /path/to/your/file.txt
This command will process the specified file and generate a prompt context suitable for use in a chat session with an LLM.
Prompt caches are stored under your home cache directory. To remove the cache, run:
rm -rf ~/.cache/files-to-chat/prompt_cache