Skip to content

timzero/goldthinker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Goldthinker

An AI assistant with a midas touch Mr. Bond! Goldthinker uses a sentence transformer model to convert the text you want to store into a vector that can be used for semantic search. The vector is then added to an index for approximate nearest neighbor search using the Annoy library. When you submit a question, the best matches are then fed via prompt to a the LLaMa 2 7b chat model as context. Finally, the output from the LLM is piped through TTS to be converted to audio.

Prerequisites

  1. Create a free Hugging Face Account here
  2. Accept terms and request access to the Llama-2-7b-chat-hf model here
  3. Install huggingface-cli
  4. run huggingface-cli login Info here

Installation

  1. create a python environment using conda or venv (python >= 3.10 recommended)
  2. pip install -r requirements.txt
  3. cd web
  4. npm install
  5. Optional: Download the weights for Llama-2-7b-chat-hf and set the value of LLAMA_PATH in your .env file

Running

  1. cd web
  2. npm run dev
  3. cd ..
  4. flask --app api run

Note: The first time you run the server it will download around 10G of model files from HF if you did not do install step 5 above. This can take a while.

goldthinker.mp4

About

AI assistant with a midas touch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published