RCaz commited on
Commit
d1b0b54
·
1 Parent(s): 729ce6a

load vector store from azure blob storage

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -33,9 +33,10 @@ def load_from_azure(container_name, local_dir="./index"):
33
  file.write(container_client.download_blob(blob).readall())
34
 
35
  # 1. Download files from Azure
36
- load_from_azure("your-container-name")
37
 
38
  # 2. Load into FAISS
 
39
  vectorstore = FAISS.load_local("./index", embeddings, allow_dangerous_deserialization=True)
40
 
41
  #%% Include a rate limiter
 
33
  file.write(container_client.download_blob(blob).readall())
34
 
35
  # 1. Download files from Azure
36
+ load_from_azure("blobcontaineravatarbot")
37
 
38
  # 2. Load into FAISS
39
+ embeddings="intfloat/e5-base-v2"
40
  vectorstore = FAISS.load_local("./index", embeddings, allow_dangerous_deserialization=True)
41
 
42
  #%% Include a rate limiter