Kyudan commited on
Commit
6335df2
·
1 Parent(s): f7dcae3
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -22,12 +22,10 @@ retriever = vectorstore.as_retriever(search_kwargs={"k": 3})
22
 
23
  def chatbot(input_question):
24
  eng = translate_ko_to_en(input_question)
25
- print(f"translated eng: {eng}")
26
  basic_docs = retriever.invoke(input_question)
27
  eng_docs = retriever.invoke(eng)
28
- basic_docs = list(set().union(eng_docs,basic_docs))
29
-
30
- print(f"basic docs: {basic_docs}")
31
 
32
  context = "\n".join([doc.page_content for doc in basic_docs])
33
 
 
22
 
23
  def chatbot(input_question):
24
  eng = translate_ko_to_en(input_question)
25
+
26
  basic_docs = retriever.invoke(input_question)
27
  eng_docs = retriever.invoke(eng)
28
+ basic_docs = basic_docs + eng_docs
 
 
29
 
30
  context = "\n".join([doc.page_content for doc in basic_docs])
31