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.1.tar.gz (88.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.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for files_to_chat-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c7fb49dd9046bac0cc59fa719f7efba54f12897138fb30e38d34cee33649cbd2
MD5 fe627eade6d230be31b17c889688c51b
BLAKE2b-256 a3238758623d392f95873b3365a26b152f91d07fe741c57b60c092c68b6901f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for files_to_chat-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0877b74fb72dcffc1643ad7b09cd041da2253cabd91f434ebfcf3631eaa8680d
MD5 fc38eeb09e27823e17b9d5994098cbcb
BLAKE2b-256 e22bddc1691689ae1ffd612ac7cf89e93d8eb8877ae8b58efe2518aeb3766d06

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