ManTea commited on
Commit
63f34c6
·
1 Parent(s): b5c2dbf

fix return format

Browse files
Files changed (1) hide show
  1. NLP_model/chatbot.py +2 -2
NLP_model/chatbot.py CHANGED
@@ -110,7 +110,7 @@ You have to use core knowledge and conversation history to chat with users, who
110
 
111
  Return Format:
112
  Respond in friendly, natural, concise and use only English like a real tour guide.
113
- Always return in HTML format that telegram can render to special format.
114
 
115
  Warning:
116
  Let's support users like a real tour guide, not a bot. The information in core knowledge is your own knowledge.
@@ -156,7 +156,7 @@ def get_chain():
156
  text_key="text"
157
  )
158
 
159
- _retriever_instance = vectorstore.as_retriever(search_kwargs={"k": 7})
160
  logger.info(f"Pinecone retriever initialized in {time.time() - start_time:.2f} seconds")
161
  return _retriever_instance
162
  except Exception as e:
 
110
 
111
  Return Format:
112
  Respond in friendly, natural, concise and use only English like a real tour guide.
113
+ Always use HTML tags (e.g. <b> for bold) so that Telegram can render the special formatting correctly.
114
 
115
  Warning:
116
  Let's support users like a real tour guide, not a bot. The information in core knowledge is your own knowledge.
 
156
  text_key="text"
157
  )
158
 
159
+ _retriever_instance = vectorstore.as_retriever(search_kwargs={"k": 6})
160
  logger.info(f"Pinecone retriever initialized in {time.time() - start_time:.2f} seconds")
161
  return _retriever_instance
162
  except Exception as e: