- 博客(9)
- 收藏
- 关注
原创 创建代理(agent)
True[{‘url’: ‘http://m2.weather.com.cn/mweather1d/101010100.shtml’, ‘content’: ‘北京天气预报,…,及时发布北京气象预警信号、各类气象资讯。’}, {‘url’: ‘https://m.weather.com.cn/mweather/101010100.shtml’, ‘content’: ‘北京天气预报,及时准确发布中央气象台天气信息,…、各类气象资讯。’}]AIMessage(content=‘你好👋!有什么可以帮助你
2024-11-28 20:57:42
892
原创 向量存储(Vectorstore)&检索器(Retriever)
(Document(metadata={‘source’: ‘fish_pets-doc’}, page_content=‘金鱼是冷血动物,它们适应性强、好奇、聪明。(Document(metadata={‘source’: ‘brid_pets-doc’}, page_content=‘鸟类通常是杂食性的,它们灵活、好奇、聪明。[(Document(metadata={‘source’: ‘mamal_pets-doc’}, page_content=‘猫通常喜欢自己的空间,它们独立、优雅、聪明。
2024-11-22 20:58:16
1326
原创 记忆功能(langgraph)
TrueAIMessage(content=‘你好!有什么我可以帮忙的吗?’, additional_kwargs={}, response_metadata={‘token_usage’: {‘prompt_tokens’: 6, ‘total_tokens’: 23, ‘completion_tokens’: 17}, ‘model’: ‘mistral-large-latest’, ‘finish_reason’: ‘stop’}, id=‘run-2407a420-512d-494c-9738-c
2024-11-22 14:32:18
1504
原创 流式传输(stream_runnabels)
|流|式|传|输|是|一|种|数据|传|输|方|式|,|数据|在|传|输|过|程|中|逐|段|发|送|,|而|不|是|一|次|性|传|输|整|个|文|件|。|这|种|方|式|常|用|于|音|频|、|视|频|等|媒|体|内|容|,|因|为|它|允|许|用|户|在|下|载|过|程|中|实|时|播|放|内|容|,|而|不|需|要|等|待|整|个|文|件|下|载|完|成|。|流|式|传|输|可|以|提|高|用|户|体|验|,|减|少|等|待|时|间|,|并|且|有|效|利|用|网|络|带|宽|。
2024-11-20 22:01:14
1329
原创 工具调用 (tool_calling)
工具调用:模型可以决定是否使用工具并确保其响应符合工具的输入模式。question] 使用模型的工具调用过程中遇到的一些问题。工具绑定:工具需要连接到支持工具调用的模型。创建工具:通过@tool 装饰器创建工具。
2024-11-20 16:29:47
1468
原创 通过langchain实现简单对话
messages=[SystemMessage(content=‘你是一个专业的翻译,你的任务是把中文翻译成英语’, additional_kwargs={}, response_metadata={}), HumanMessage(content=‘你好,吃了吗?’, additional_kwargs={}, response_metadata={})]ZhipuAI API Key 已加载。LangSmith API Key 已加载。
2024-11-20 11:39:32
485
原创 时间序列数据处理方法
本文章代码全部来源于:Electricity_Demand_and_Price_forecasting/Electricity_Demand_and_Price_forecasting.ipynb at main · ritikdhame/Electricity_Demand_and_Price_forecasting · GitHub数据可视化图片加载不了再git上都有。
2024-11-18 18:21:17
1059
原创 Informer 项目学习版
plot_prediction_comparison( setting_path='results/informer_WTH_ftM_sl96_ll48_pl24_dm512_nh8_el2_dl1_df2048_atprob_fc5_ebtimeF_dtTrue_mxTrue_test_0', sample_size=200, # 展示样本数量 feature_idx=6, # 特征索引 time_idx=0 # 时间窗口起始位置 )
2024-11-12 14:58:33
902
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人