semantic-search icon indicating copy to clipboard operation
semantic-search copied to clipboard

Load the index from disk

Open JohnGiorgi opened this issue 4 years ago • 1 comments

JohnGiorgi avatar Mar 04 '21 16:03 JohnGiorgi

Set up an environment variable for the file path so the user can provide (optional). https://github.com/PathwayCommons/semantic-search/blob/6e3c35dda63f89b71373b017adbc85a8a73e66c6/semantic_search/main.py#L19

If they do provide then use that file to read the index. Look below for the passing variable. CUDA_DEVICE=0 MAX_LENGTH=384 uvicorn semantic_search.main:app

Anwesh1 avatar Mar 04 '21 16:03 Anwesh1