Skip to content

sergiotapia/kryten

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kryten

Kryten is a CLI tool to help you easily ask questions and get clear sourced answers directly from your documents.

./kryten ask ~/directives.pdf question "What's Space Core Directive 997?"

Work done by an officer's doppleganger in a parallel universe
cannot be claimed as overtime. (directives.pdf, page 1)

Goals:

Kryten is portable, snappy, and works across all platforms with minimal resource usage. For real.

  • CLI only
  • Tiny footprint: Kryten is only 1.6MB.
  • SQLite for portability and easy backups.
  • Ask any question you want.
  • Show your chat history for a single file.
  • Show your chat history across all files.
  • Documents are cached so questions are snappy.
  • Run without ceremony. No need for configurations.

My intent is for Kryten to be used by other apps to power their RAG workflows.

Usage Guide:

Set these three Environment variables:

OPENAI_API_KEY="sk-123123"
PINECONE_API_KEY="123123"
PINECONE_ENDPOINT="https://some-index.svc.some-random-id.pinecone.io"

Call the kryten binary.

./kryten ask ~/directives.pdf question "What's Space Core Directive 997?"

Work done by an officer's doppleganger in a parallel universe 
cannot be claimed as overtime. (directives.pdf, page 1)

Requirements:

OpenAI for ChatPGT

You can create your own API key here: https://platform.openai.com/api-keys

Pinecone Serverless for Vector Database RAG.

Screenshot 2024-01-22 at 8 56 10 PM Screenshot 2024-01-22 at 8 56 58 PM Screenshot 2024-01-22 at 9 02 52 PM Screenshot 2024-01-22 at 9 10 09 PM

Java Runtime to run Tika App.

Tika App is used to extract the content of your documents. You'll need the Java Runtime Environment installed on your machine so this can run properly.

Local Development:

nimble install
nimble build && ./kryten ask ~/directives.pdf question "What is Space Core Directive 196156?"

Contributing:

TODO

About

Kryten is a CLI tool to ask questions and get sourced answers from any .pdf, .doc, .docx, and many more documents.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages