semantic-search
semantic-search copied to clipboard
Load the index from disk
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