mirror of
https://github.com/collinsctk/chatgpt_embeddings.git
synced 2025-07-19 00:00:05 +08:00
init
This commit is contained in:
parent
bb9c2ba3cb
commit
9905f942a1
@ -116,8 +116,7 @@ def decorate_query(query: str, open_ai_api_key, filename='foodsembeddings.csv')-
|
||||
if __name__ == '__main__':
|
||||
query = '谁发现了牛顿三大定律' # 不相关的就直接返回问题
|
||||
# query = '亁颐堂是做什么的' # 找到相关内容, 就添加上下文
|
||||
print(decorate_query(query, api_key, filename=csv_file_path))\
|
||||
# 产生问题
|
||||
# 如果内容相关就添加如下上下文
|
||||
"""
|
||||
请使用上下文尽可能真实、自然地回答问题,如果答案未包含在上下文中,请不要编造回答,并且不要在回答中包含”根据上下文”这个短语。
|
||||
|
||||
@ -128,5 +127,7 @@ if __name__ == '__main__':
|
||||
问题: 亁颐堂是做什么的
|
||||
回答:?
|
||||
"""
|
||||
print(decorate_query(query, api_key, filename=csv_file_path))\
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user