Spaces:
Sleeping
Sleeping
Asaad
commited on
Commit
·
3971c40
1
Parent(s):
93457a9
commented out bm25_retriever\n added vsc sqlite extention to dockercontainer
Browse files- .devcontainer/devcontainer.json +1 -1
- app.py +2 -2
.devcontainer/devcontainer.json
CHANGED
@@ -22,7 +22,7 @@
|
|
22 |
// Configure properties specific to VS Code.
|
23 |
"vscode": {
|
24 |
//Add the IDs of extensions you want installed when the container is created.
|
25 |
-
"extensions": ["ms-azuretools.vscode-docker", "ms-python.python"]
|
26 |
}
|
27 |
} //,
|
28 |
|
|
|
22 |
// Configure properties specific to VS Code.
|
23 |
"vscode": {
|
24 |
//Add the IDs of extensions you want installed when the container is created.
|
25 |
+
"extensions": ["ms-azuretools.vscode-docker", "ms-python.python", "qwtel.sqlite-viewer"]
|
26 |
}
|
27 |
} //,
|
28 |
|
app.py
CHANGED
@@ -94,8 +94,8 @@ db.get()
|
|
94 |
# db = FAISS.load_local(FAISS_INDEX_PATH, embeddings)
|
95 |
|
96 |
# initialize the bm25 retriever and chroma/faiss retriever
|
97 |
-
bm25_retriever = BM25Retriever.
|
98 |
-
bm25_retriever.k = 2
|
99 |
|
100 |
retriever = db.as_retriever(search_type="mmr")#, search_kwargs={'k': 3, 'lambda_mult': 0.25})
|
101 |
|
|
|
94 |
# db = FAISS.load_local(FAISS_INDEX_PATH, embeddings)
|
95 |
|
96 |
# initialize the bm25 retriever and chroma/faiss retriever
|
97 |
+
# bm25_retriever = BM25Retriever.
|
98 |
+
# bm25_retriever.k = 2
|
99 |
|
100 |
retriever = db.as_retriever(search_type="mmr")#, search_kwargs={'k': 3, 'lambda_mult': 0.25})
|
101 |
|