Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load the index from disk #56

Open
JohnGiorgi opened this issue Mar 4, 2021 · 1 comment · May be fixed by #59
Open

Load the index from disk #56

JohnGiorgi opened this issue Mar 4, 2021 · 1 comment · May be fixed by #59
Assignees

Comments

@JohnGiorgi
Copy link
Collaborator

No description provided.

@Anwesh1
Copy link
Contributor

Anwesh1 commented Mar 4, 2021

Set up an environment variable for the file path so the user can provide (optional).

class Settings(BaseSettings):

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

@JohnGiorgi JohnGiorgi linked a pull request Mar 10, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants