Skip to content

mzbac/files-to-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages