Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 602 Bytes

README.md

File metadata and controls

19 lines (17 loc) · 602 Bytes

Semantic Search Demo

  • To use a local Llama model switch to 'local' branch of this repository

  • Create a consume folder in the project base directory and place the PDF files in the directory.
  • Create a .env file -
# not required for local model
HUGGINGFACEHUB_API_TOKEN=_______

# URL for embeddings endpoint of the local model e.g. - http://100.105.38.57:3001/v1/embeddings
EMBEDDINGS_URL=_______
  • Create virtual environment and install requirements
$ python -m venv venv
$ source /venv/bin/activate
$ pip install -r requirements.txt
  • Execute the main.py file