`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).
Project description
files-to-chat: Process Files for LLM Prompt Contexts
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).
Table of Contents
Installation
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 .
Usage
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
Example Usage
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.
Cleaning Up the Prompt Cache
Prompt caches are stored under your home cache directory. To remove the cache, run:
rm -rf ~/.cache/files-to-chat/prompt_cache
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file files_to_chat-0.1.3.tar.gz.
File metadata
- Download URL: files_to_chat-0.1.3.tar.gz
- Upload date:
- Size: 90.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.27
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56f70619a55cfcf7c528be731608e386cab16eb275f2ee16da1344f4952974f7
|
|
| MD5 |
7787708f9b8ab5d71a710d55c7b8a52f
|
|
| BLAKE2b-256 |
4c9908d6ac6dd6b09f467874e6b0b2e8a5df5addec7aebb722949d5f811da6cb
|
File details
Details for the file files_to_chat-0.1.3-py3-none-any.whl.
File metadata
- Download URL: files_to_chat-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.27
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4575b5e84cc63fe6e3ebd395205637f0ed5e500582690f9fc0ff73cf35b95adb
|
|
| MD5 |
17f865ac15d707d7149a794416247826
|
|
| BLAKE2b-256 |
661d2ea307642d8116856f2f9b67fd1475120c243ede10da18d65ecf8ab123a2
|