mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 07:40:12 +01:00
Merge branch 'main' into main
This commit is contained in:
commit
f60dbb520e
4 changed files with 20 additions and 6 deletions
|
|
@ -12,10 +12,11 @@ model_type = os.environ.get('MODEL_TYPE')
|
|||
model_path = os.environ.get('MODEL_PATH')
|
||||
model_n_ctx = os.environ.get('MODEL_N_CTX')
|
||||
|
||||
def main():
|
||||
# Load stored vectorstore
|
||||
from constants import CHROMA_SETTINGS
|
||||
|
||||
def main():
|
||||
llama = LlamaCppEmbeddings(model_path=llama_embeddings_model, n_ctx=model_n_ctx)
|
||||
db = Chroma(persist_directory=persist_directory, embedding_function=llama)
|
||||
db = Chroma(persist_directory=persist_directory, embedding_function=llama, client_settings=CHROMA_SETTINGS)
|
||||
retriever = db.as_retriever()
|
||||
# Prepare the LLM
|
||||
callbacks = [StreamingStdOutCallbackHandler()]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue