Skip to content

Commit

Permalink
Merge pull request #581 from Dafterfly/run-offline-without-crashing
Browse files Browse the repository at this point in the history
Update run_localGPT.py to be able to run without an internet connection
  • Loading branch information
PromtEngineer committed Oct 14, 2023
2 parents c45b23b + c59db5f commit 573c903
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions run_localGPT.py
Expand Up @@ -32,6 +32,7 @@
MODEL_BASENAME,
MAX_NEW_TOKENS,
MODELS_PATH,
CHROMA_SETTINGS
)


Expand Down Expand Up @@ -122,6 +123,7 @@ def retrieval_qa_pipline(device_type, use_history, promptTemplate_type="llama"):
db = Chroma(
persist_directory=PERSIST_DIRECTORY,
embedding_function=embeddings,
client_settings=CHROMA_SETTINGS
)
retriever = db.as_retriever()

Expand Down

0 comments on commit 573c903

Please sign in to comment.