carlosrosas commited on
Commit
8c20665
·
verified ·
1 Parent(s): 87c3522

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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("abstracts/lancedb_data")
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['section']
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}")