Skip to main content

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:

  1. Using pip:

    pip install files-to-chat
    
  2. 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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

files_to_chat-0.1.3.tar.gz (90.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

files_to_chat-0.1.3-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

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

Hashes for files_to_chat-0.1.3.tar.gz
Algorithm Hash digest
SHA256 56f70619a55cfcf7c528be731608e386cab16eb275f2ee16da1344f4952974f7
MD5 7787708f9b8ab5d71a710d55c7b8a52f
BLAKE2b-256 4c9908d6ac6dd6b09f467874e6b0b2e8a5df5addec7aebb722949d5f811da6cb

See more details on using hashes here.

File details

Details for the file files_to_chat-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for files_to_chat-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4575b5e84cc63fe6e3ebd395205637f0ed5e500582690f9fc0ff73cf35b95adb
MD5 17f865ac15d707d7149a794416247826
BLAKE2b-256 661d2ea307642d8116856f2f9b67fd1475120c243ede10da18d65ecf8ab123a2

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page