Skip to content

Commit

Permalink
Update run_localGPT.py to be able to run without an internet connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Dafterfly authored Oct 13, 2023
1 parent 279dfbb commit c59db5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions run_localGPT.py
Original file line number Diff line number Diff line change
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 c59db5f

Please sign in to comment.