Skip to content

Latest commit

 

History

History
51 lines (25 loc) · 1.67 KB

README.md

File metadata and controls

51 lines (25 loc) · 1.67 KB

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