Skip to main content

`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:

  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

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

files_to_chat-0.1.2.tar.gz (89.7 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.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file files_to_chat-0.1.2.tar.gz.

File metadata

  • Download URL: files_to_chat-0.1.2.tar.gz
  • Upload date:
  • Size: 89.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.27

File hashes

Hashes for files_to_chat-0.1.2.tar.gz
Algorithm Hash digest
SHA256 423909caaebd9ebf5a2c2628b13c2c112ee54f897a3d40196a1f461f8d3070b8
MD5 4e3a611c188fdf0ebd19104137f03eb6
BLAKE2b-256 f204904bddc6e53ddfaa2940e03b11c9c75ccc3c17c53434913ed60442aba842

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for files_to_chat-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 91ab6301687d51a8cda28c95098ff9fae7d96acbecf760a9f6ee42cdcc67656d
MD5 2baf9ff55de02fc6c5bd63bb6e124646
BLAKE2b-256 6b60c0858d9ef20ae26aea6285a2d5b01eaf39457c26781f2d8f29fcbd6cb38a

See more details on using hashes here.

Supported by

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