Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,7 @@ model_name = "PleIAs/Cassandre-RAG"
|
|
| 26 |
llm = LLM(model_name, max_model_len=8128)
|
| 27 |
|
| 28 |
# Connect to the LanceDB database
|
| 29 |
-
db = lancedb.connect("
|
| 30 |
table = db.open_table("abstractsC")
|
| 31 |
|
| 32 |
def hybrid_search(text):
|
|
@@ -45,7 +45,7 @@ def hybrid_search(text):
|
|
| 45 |
continue
|
| 46 |
|
| 47 |
seen_hashes.add(hash_id)
|
| 48 |
-
title = row['
|
| 49 |
content = row['text']
|
| 50 |
|
| 51 |
document.append(f"**{hash_id}**\n{title}\n{content}")
|
|
|
|
| 26 |
llm = LLM(model_name, max_model_len=8128)
|
| 27 |
|
| 28 |
# Connect to the LanceDB database
|
| 29 |
+
db = lancedb.connect("base/lancedb_data")
|
| 30 |
table = db.open_table("abstractsC")
|
| 31 |
|
| 32 |
def hybrid_search(text):
|
|
|
|
| 45 |
continue
|
| 46 |
|
| 47 |
seen_hashes.add(hash_id)
|
| 48 |
+
title = row['hash']
|
| 49 |
content = row['text']
|
| 50 |
|
| 51 |
document.append(f"**{hash_id}**\n{title}\n{content}")
|