Skip to content

FoxyIntel is a command-line utility that leverages the OpenAI API for seamless interactions with ChatGPT. It specializes in processing PDF and text files, preserving them in a local vector database known as ChromaDB, and subsequently harnessing ChatGPT's capabilities. Moreover, users have the option to pose inquiries via Google using the Serper API

License

Notifications You must be signed in to change notification settings

japkettu/FoxyIntel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FoxyIntel

FoxyIntel is a commandline tool that uses OpenAI API to interact with ChatGPT (gpt-3.5-turbo). It reads text, pdf and mp3 files, stores them to local vector database (ChromaDB) and feeds them to ChatGPT. Additionally user can ask questions using Google via Serper API.

image

image

image

Known problems

  • Whisper language model supports only English for mp3 files
  • ChatGPT option in Settings doesn't work.

Installation

Docker

Install Docker on your system.

Clone repository from GitHub.

git clone https://github/japkettu/FoxyIntel

cd FoxyIntel

Rename .env_example to .env and add your OpenAI and Serper API keys to .env file. Optionally change EMBEDDING_FUNCTION from huggingface to openai by uncommenting and commenting lines. Huggingface is free and slower option which creates 384 dimensional vector while OpenAI costs $0.0001 / 1K tokens and creates 1536 dimensional vector.

Build docker image

docker build -t foxy-intel .

Create Docker volume for persistent data

docker volume create foxy-intel-vol

Run docker in interactive mode. This command mounts the home directory to root so it is possible to upload files from host environment to docker.

On Linux

docker run -v $HOME:/root -i -t --mount=source=foxy-intel-vol,target=/app/chroma.db foxy-intel

On Windows (PowerShell)

docker run -v ${HOME}:/root -v foxy-intel-vol:/app/chroma.db -i -t foxy-intel

About

FoxyIntel is a command-line utility that leverages the OpenAI API for seamless interactions with ChatGPT. It specializes in processing PDF and text files, preserving them in a local vector database known as ChromaDB, and subsequently harnessing ChatGPT's capabilities. Moreover, users have the option to pose inquiries via Google using the Serper API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published