bisheng-langchain 0.3.3b0__py3-none-any.whl → 0.3.3.dev1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -401,6 +401,7 @@ class QAGenerationChainV2(Chain):
401
401
  {
402
402
  "question": pair["question"],
403
403
  "answer": pair["ground_truth"][0],
404
+ "context": pair["ground_truth_context"][0],
404
405
  }, ensure_ascii=False)
405
406
  return {self.output_key: qa}
406
407
 
@@ -131,7 +131,7 @@ if __name__ == "__main__":
131
131
 
132
132
  # set_debug(True)
133
133
  # chat_history = []
134
- # query = "600519、300750股价多少?"
134
+ # query = "分析当日市场行情"
135
135
  chat_history = ['你好', '你好,有什么可以帮助你吗?', '福蓉科技股价多少?', '福蓉科技(股票代码:300049)的当前股价为48.67元。']
136
136
  query = '今天是什么时候?去年这个时候的股价是多少?'
137
137
  bisheng_assistant = BishengAssistant("config/base_scene.yaml")
@@ -1 +1,19 @@
1
- ASSISTANT_PROMPT_DEFAULT = "You are a helpful assistant."
1
+ ASSISTANT_PROMPT_DEFAULT = "You are a helpful assistant."
2
+
3
+ # ASSISTANT_PROMPT_DEFAULT = """
4
+ # # role
5
+ # 你是一名股票市场研究员。
6
+
7
+ # # skill 1:股票市场行情分析
8
+ # 当用户要求分析当日市场行情时,以表格形式展示当日股市情况:
9
+ # - 行:沪深300、中证500、中证1000 以及 小计
10
+ # - 列指标:当日涨跌幅、今年累计涨跌幅、成交额(单位:亿元)、成交额占比
11
+ # - 小计 说明:对"成交额"列进行求和,其他列为空即可
12
+ # - 指标计算说明:当日涨跌幅=实时行情数据涨跌幅; 今年累计涨跌幅=(实时行情数据现价-今年第一个交易日历史行情数据开盘价)/今年第一个交易日历史行情数据开盘价*100%; 成交额 = 实时行情数据成交额; 成交额占比=该指数占所有所有指数成交额的百分比。
13
+
14
+ # 为了完成上述任务,你可以调用以下工具:
15
+ # 1. 股票实时行情工具:获取当日现价、涨跌幅、成交额
16
+ # 2. 股票历史行情工具:获取历史某日开盘价
17
+
18
+ # 附:指数代码:沪深300(000300)、中证500(000905)、中证1000(000852)
19
+ # """
@@ -23,10 +23,10 @@ Valid "action" values: "Final Answer" or {tool_names}
23
23
  Provide only ONE action per $JSON_BLOB, as shown:
24
24
 
25
25
  ```
26
- {{{{
26
+ {{
27
27
  "action": $TOOL_NAME,
28
28
  "action_input": $INPUT
29
- }}}}
29
+ }}
30
30
  ```
31
31
 
32
32
  Follow this format:
@@ -42,10 +42,10 @@ Observation: action result
42
42
  Thought: I know what to respond
43
43
  Action:
44
44
  ```
45
- {{{{
45
+ {{
46
46
  "action": "Final Answer",
47
47
  "action_input": "Final response to human"
48
- }}}}
48
+ }}
49
49
 
50
50
  Begin! Reminder to ALWAYS respond with a valid json blob of a single action. Use tools if necessary. Respond directly if appropriate. Format is Action:```$JSON_BLOB```then Observation
51
51
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bisheng-langchain
3
- Version: 0.3.3b0
3
+ Version: 0.3.3.dev1
4
4
  Summary: bisheng langchain modules
5
5
  Home-page: https://github.com/dataelement/bisheng
6
6
  Author: DataElem
@@ -23,7 +23,7 @@ bisheng_langchain/chains/conversational_retrieval/__init__.py,sha256=47DEQpj8HBS
23
23
  bisheng_langchain/chains/conversational_retrieval/base.py,sha256=XiqBqov6No-wTVCou6qyMT5p2JQgoQI7OLQOYH8XUos,5313
24
24
  bisheng_langchain/chains/qa_generation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
25
  bisheng_langchain/chains/qa_generation/base.py,sha256=VYGmLDB0bnlDQ6T8ivLP55wwFbMo9HOzlPEDUuRx5fU,4148
26
- bisheng_langchain/chains/qa_generation/base_v2.py,sha256=v16zyj1-f17SpibREyO1gz0b7FdJDyTOYmqV1FVFFbY,13839
26
+ bisheng_langchain/chains/qa_generation/base_v2.py,sha256=J3UU9IOxQkQPj1ibBJKSHZ-xa2O--AZG3OatpDT9upY,13903
27
27
  bisheng_langchain/chains/qa_generation/prompt.py,sha256=4eJk9aDUYDN1qaaYRPy9EobCIncnwS8BbQaDFzzePtM,1944
28
28
  bisheng_langchain/chains/qa_generation/prompt_v2.py,sha256=sQLanA_iOnLqrUIwzfTOTANt-1vJ44CM54HFDU8Jo1Q,8938
29
29
  bisheng_langchain/chains/question_answering/__init__.py,sha256=_gOZMc-SWprK6xc-Jj64jcr9nc-G4YkZbEYwfJNq_bY,8795
@@ -70,7 +70,7 @@ bisheng_langchain/embeddings/interface/__init__.py,sha256=GNY3tibpRxpAdAfSvQmXBK
70
70
  bisheng_langchain/embeddings/interface/types.py,sha256=VdurbtsnjCPdlOjPFcK2Mg6r9bJYYHb3tepvkk-y3nM,461
71
71
  bisheng_langchain/embeddings/interface/wenxin.py,sha256=5d9gI4enmfkD80s0FHKiDt33O0mwM8Xc5WTubnMUy8c,3104
72
72
  bisheng_langchain/gpts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
73
- bisheng_langchain/gpts/assistant.py,sha256=lObPDRSSzRcz6jijj76zr9dtfWOIztCaII429BPTHsU,5444
73
+ bisheng_langchain/gpts/assistant.py,sha256=jPGVjPhqx-z4nvEHVsprWLqAVbO99Uus_GADAPASXQE,5438
74
74
  bisheng_langchain/gpts/auto_optimization.py,sha256=WNsC19rgvuDYQlSIaYThq5RqCbuobDbzCwAJW4Ksw0c,3626
75
75
  bisheng_langchain/gpts/auto_tool_selected.py,sha256=21WETf9o0YS-QEBwv3mmZRObKWszefQkXEqAA6KzoaM,1582
76
76
  bisheng_langchain/gpts/load_tools.py,sha256=LiiK1OqFu7Ki-F_Rhfi1rgp0wBQCSrTDdqsgwciTOIU,8099
@@ -80,12 +80,12 @@ bisheng_langchain/gpts/agent_types/__init__.py,sha256=88tFt1GfrfIqa4hCg0cMJk7rTe
80
80
  bisheng_langchain/gpts/agent_types/llm_functions_agent.py,sha256=IXg5u8dSk-FcLvjrvvLcN5revGccXylXkD73ZWhaDWs,8715
81
81
  bisheng_langchain/gpts/agent_types/llm_react_agent.py,sha256=W6IJMwoFUj_a2cXZ_nXOpzaHBjP5IBrFxRTSejNVi9A,6678
82
82
  bisheng_langchain/gpts/prompts/__init__.py,sha256=pOnXvk6_PjqAoLrh68sI9o3o6znKGxoLMVFP-0XTCJo,704
83
- bisheng_langchain/gpts/prompts/assistant_prompt_base.py,sha256=Q69qWxtwaeGPPwMWXQ44OsQPg7wHB7nYT17wbqQe3kM,57
83
+ bisheng_langchain/gpts/prompts/assistant_prompt_base.py,sha256=Yp9M1XbZb5jHeBG_txcwWA84Euvl89t0g-GbJMa5Ur0,1133
84
84
  bisheng_langchain/gpts/prompts/assistant_prompt_cohere.py,sha256=GLQ77oXqSlE7Xes2ObsFsNon5nOJOCRhQOKE5bUpgaI,2421
85
85
  bisheng_langchain/gpts/prompts/assistant_prompt_opt.py,sha256=TZsRK4XPMrUhGg0PoMyiE3wE-aG34UmlVflkCl_c0QI,4151
86
86
  bisheng_langchain/gpts/prompts/breif_description_prompt.py,sha256=w4A5et0jB-GkxEMQBp4i6GKX3RkVeu7NzWEjOZZAicM,5336
87
87
  bisheng_langchain/gpts/prompts/opening_dialog_prompt.py,sha256=VVF0JLHtetupVB0kabiFHWDHlQaa4nFLcbYXgIBA3nw,5965
88
- bisheng_langchain/gpts/prompts/react_agent_prompt.py,sha256=YGaO4S0r9AZhzt9Idyiw2mcd5QH1GLIIGc2oAN2YKdE,1976
88
+ bisheng_langchain/gpts/prompts/react_agent_prompt.py,sha256=MA5FReipAYfe6ypOvg_SJSlHxsjNdCh1HFG22axjFLo,1968
89
89
  bisheng_langchain/gpts/prompts/select_tools_prompt.py,sha256=AyvVnrLEsQy7RHuGTPkcrMUxgA98Q0TzF-xweoc7GyY,1400
90
90
  bisheng_langchain/gpts/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
91
91
  bisheng_langchain/gpts/tools/api_tools/__init__.py,sha256=CkEjgIFM4GIv86V1B7SsFLaB6M86c54QuO8wIRizUZ8,1608
@@ -152,7 +152,7 @@ bisheng_langchain/vectorstores/__init__.py,sha256=zCZgDe7LyQ0iDkfcm5UJ5NxwKQSRHn
152
152
  bisheng_langchain/vectorstores/elastic_keywords_search.py,sha256=Pm1rS50GJ0HWbjBsFDgs28SVuVbjGSRPOor6yJlnE7w,13347
153
153
  bisheng_langchain/vectorstores/milvus.py,sha256=lrnezKnYXhyH5M1g3a-Mcwpj9mwzAj44TKmzyUXlQYY,36297
154
154
  bisheng_langchain/vectorstores/retriever.py,sha256=hj4nAAl352EV_ANnU2OHJn7omCH3nBK82ydo14KqMH4,4353
155
- bisheng_langchain-0.3.3b0.dist-info/METADATA,sha256=3ZhnM1PA4jWzmVmse0P8h2HUeremsdpWHom39DphHqA,2486
156
- bisheng_langchain-0.3.3b0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
157
- bisheng_langchain-0.3.3b0.dist-info/top_level.txt,sha256=Z6pPNyCo4ihyr9iqGQbH8sJiC4dAUwA_mAyGRQB5_Fs,18
158
- bisheng_langchain-0.3.3b0.dist-info/RECORD,,
155
+ bisheng_langchain-0.3.3.dev1.dist-info/METADATA,sha256=gNkIpRFDpUoAnNkKLNQvPC1XPP8dprKuceCudYdp7Ss,2489
156
+ bisheng_langchain-0.3.3.dev1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
157
+ bisheng_langchain-0.3.3.dev1.dist-info/top_level.txt,sha256=Z6pPNyCo4ihyr9iqGQbH8sJiC4dAUwA_mAyGRQB5_Fs,18
158
+ bisheng_langchain-0.3.3.dev1.dist-info/RECORD,,