umaiku commited on
Commit
d897e9d
·
verified ·
1 Parent(s): 9203292

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -23,7 +23,7 @@ folder = snapshot_download(repo_id="umaiku/faiss_index", repo_type="dataset", lo
23
 
24
  embeddings = HuggingFaceEmbeddings(model_name="intfloat/multilingual-e5-small")
25
 
26
- vector_db = FAISS.load_local("faiss_index", embeddings, allow_dangerous_deserialization=True)
27
 
28
  df = pd.read_csv("faiss_index/bger_cedh_db 1954-2024.csv")
29
 
@@ -53,8 +53,8 @@ def respond(
53
  context += "Case number: " + doc.metadata["case_nb"] + spacer
54
  context += "Case date: " + doc.metadata["case_date"] + spacer
55
  context += "Case url: " + doc.metadata["case_url"] + spacer
56
- #context += "Case text: " + doc.page_content + spacer
57
- context += "Case text: " + case_text[:8000] + spacer
58
 
59
 
60
  message = f"""
 
23
 
24
  embeddings = HuggingFaceEmbeddings(model_name="intfloat/multilingual-e5-small")
25
 
26
+ vector_db = FAISS.load_local("faiss_index_8k", embeddings, allow_dangerous_deserialization=True)
27
 
28
  df = pd.read_csv("faiss_index/bger_cedh_db 1954-2024.csv")
29
 
 
53
  context += "Case number: " + doc.metadata["case_nb"] + spacer
54
  context += "Case date: " + doc.metadata["case_date"] + spacer
55
  context += "Case url: " + doc.metadata["case_url"] + spacer
56
+ context += "Case text: " + doc.page_content + spacer
57
+ #context += "Case text: " + case_text[:8000] + spacer
58
 
59
 
60
  message = f"""