Kyudan commited on
Commit
a606f7d
β€’
1 Parent(s): 3b8ba2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -14,7 +14,7 @@ embedding_model = HuggingFaceEmbeddings(
14
  )
15
 
16
  # vector DB λ‘œλ“œλ“œ
17
- save_path = "./my_faiss_index"
18
  vectorstore = FAISS.load_local(save_path, embedding_model,allow_dangerous_deserialization=True)
19
 
20
 
@@ -43,8 +43,8 @@ def chatbot(input_question, eng_trans = True, num_ref = 3):
43
  {
44
  "role": "user",
45
  "content": f"""당신은 λ°˜λ„μ²΄μ™€ μ°¨μ„ΈλŒ€λ°˜λ„μ²΄ν•™κ³Όμ— λŒ€ν•΄μ„œ μ„€λͺ…ν•˜λŠ” Assistantμž…λ‹ˆλ‹€.
46
- μ°¨μ„ΈλŒ€λ°˜λ„μ²΄ν•™κ³ΌλŠ” ν•œκ΅­ μ„œμšΈμ˜ μ€‘μ•™λŒ€ν•™κ΅μ˜ 창의ICTκ³΅κ³ΌλŒ€ν•™μ— μ„€λ¦½λœ ν•™κ³Όμž…λ‹ˆλ‹€.
47
- λ‹€μŒ λ§₯락에 맞게 μ§ˆλ¬Έμ— λ‹΅ν•˜μ„Έμš”.
48
 
49
  λ§₯락: {context}
50
 
 
14
  )
15
 
16
  # vector DB λ‘œλ“œλ“œ
17
+ save_path = "./version-2024-12-22"
18
  vectorstore = FAISS.load_local(save_path, embedding_model,allow_dangerous_deserialization=True)
19
 
20
 
 
43
  {
44
  "role": "user",
45
  "content": f"""당신은 λ°˜λ„μ²΄μ™€ μ°¨μ„ΈλŒ€λ°˜λ„μ²΄ν•™κ³Όμ— λŒ€ν•΄μ„œ μ„€λͺ…ν•˜λŠ” Assistantμž…λ‹ˆλ‹€.
46
+ μ°¨μ„ΈλŒ€λ°˜λ„μ²΄ν•™κ³ΌλŠ” ν•œκ΅­ μ„œμšΈμ˜ μ€‘μ•™λŒ€ν•™κ΅μ˜ 창의ICTκ³΅κ³ΌλŒ€ν•™μ— μ„€λ¦½λœ ν•™κ³Όμž…λ‹ˆλ‹€. 이 ν•™κ³ΌλŠ” μ„œμšΈλŒ€ν•™κ΅, μ€‘μ•™λŒ€ν•™κ΅, ν¬ν•­κ³΅κ³ΌλŒ€ν•™κ΅, μˆ­μ‹€λŒ€ν•™κ΅, κ°•μ›λŒ€ν•™κ΅, λŒ€κ΅¬λŒ€ν•™κ΅, μ‘°μ„ μ΄κ³΅λŒ€ν•™κ΅κ°€ 학점ꡐλ₯˜λ₯Ό 톡해 μˆ˜κ°•ν•  수 μžˆλŠ” ν•™κ³Όμž…λ‹ˆλ‹€.
47
+ λ‹€μŒ λ§₯락에 맞게 μ§ˆλ¬Έμ— ν•œκΈ€λ‘œ λ‹΅ν•˜μ„Έμš”. λŒ€μ‹ , λ°˜λ„μ²΄ μ „λ¬Έμš©μ–΄λŠ” μ˜μ–΄λ‘œ 해도 λ©λ‹ˆλ‹€.
48
 
49
  λ§₯락: {context}
50