Update app.py
Browse files
app.py
CHANGED
|
@@ -99,7 +99,7 @@ def wrap_model(model, tokenizer):
|
|
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
-
def fetch_context(db, model, query, template, use_compressor=True):
|
| 103 |
"""
|
| 104 |
Perform similarity search and retrieve related context to query.
|
| 105 |
I have stored large documents in db so I can apply compressor on the set of retrived documents to
|
|
|
|
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
+
def fetch_context(db, model, model_name, query, template, use_compressor=True):
|
| 103 |
"""
|
| 104 |
Perform similarity search and retrieve related context to query.
|
| 105 |
I have stored large documents in db so I can apply compressor on the set of retrived documents to
|