Spaces:
Running
Running
Kyudan
commited on
Commit
·
6335df2
1
Parent(s):
f7dcae3
update
Browse files
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 |
-
|
26 |
basic_docs = retriever.invoke(input_question)
|
27 |
eng_docs = retriever.invoke(eng)
|
28 |
-
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 |
|