Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 892 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 892 Bytes

A simple way to chat with an LLM over some files. Built on langchain.

npm install -g globgpt

Usage

  1. Index some files
# single file
globgpt retrieve --name my-first-llm my-file.txt

# all files in the current directory
fd . | xargs globgpt retrieve --name my-first-llm

# specific files
fd --full-path --glob "**/tests/**/*.ts" | xargs globgpt retrieve --name my-test-llm
  1. Chat
globgpt chat --name my-test-llm "Suggest 10 more tests to add"

# use gpt-4 (slower, but better)
globgpt chat --name my-test-llm --model gpt-4 "Suggest 10 more tests to add"

# pretty print
globgpt chat --name my-test-llm "Suggest 10 more tests to add. Format your response in markdown" | glow
globgpt chat --name my-test-llm "Suggest 10 more tests to add. Format your response in markdown" | bat -l md