Skip to main content

Add your description here

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/your-repo/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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

files_to_chat-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for files_to_chat-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4201bda1f7dc3b07129a452bed0bb096c5c3e987eb764caa4ff810bc7534ec6e
MD5 0741839d3c5d5148b499bbcbac36e8c8
BLAKE2b-256 6d077732bfc6415e40a4d55dabb7cd8015fd4fe1ce004a30d3bbba721cf98ccf

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