Spaces:
Sleeping
Sleeping
load vector store from azure blob storage
Browse files
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("
|
| 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
|