当前位置: 首页 > news >正文

怎么分析竞争对手网站网络营销和电子商务的区别和联系

怎么分析竞争对手网站,网络营销和电子商务的区别和联系,官方网站撰写策划书,商城网站后台管理系统Langchain 的 ConversationSummaryBufferMemory ConversationSummaryBufferMemory 在内存中保留最近交互的缓冲区#xff0c;但不仅仅是完全刷新旧的交互#xff0c;而是将它们编译成摘要并使用两者。但与之前的实现不同的是#xff0c;它使用令牌长度而不是交互次数来确定何… Langchain 的 ConversationSummaryBufferMemory ConversationSummaryBufferMemory 在内存中保留最近交互的缓冲区但不仅仅是完全刷新旧的交互而是将它们编译成摘要并使用两者。但与之前的实现不同的是它使用令牌长度而不是交互次数来确定何时刷新交互。 我们首先来了解一下如何使用这些实用程序 示例代码 from langchain.memory import ConversationSummaryBufferMemory from langchain.llms import OpenAIllm OpenAI()memory ConversationSummaryBufferMemory(llmllm, max_token_limit40, return_messagesTrue ) memory.save_context({input: 嗨}, {output: 最近怎么样}) memory.save_context({input: 没什么特别的你呢}, {output: 没什么特别的。})memory.load_memory_variables({})输出结果 {history: [SystemMessage(content\nThe human and AI are engaging in conversation. The human greets the AI and the AI asks how the human is doing., additional_kwargs{}),HumanMessage(content没什么特别的你呢, additional_kwargs{}, exampleFalse),AIMessage(content没什么特别的。, additional_kwargs{}, exampleFalse)]}示例代码 from langchain.chains import ConversationChainconversation_with_summary ConversationChain(llmllm,# We set a very low max_token_limit for the purposes of testing.memoryConversationSummaryBufferMemory(llmOpenAI(), max_token_limit250),verboseTrue, ) conversation_with_summary.predict(input嗨最近怎么样)输出结果 Entering new ConversationChain chain... Prompt after formatting: The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.Current conversation:Human: 嗨最近怎么样 AI: Finished chain.嗨最近还不错我在学习新的技能并且正在尝试新的任务。我也在尝试改进我的语言处理能力以便更好地与人交流。你呢示例代码 conversation_with_summary.predict(input只是在写一些文档)输出结果 Entering new ConversationChain chain... Prompt after formatting: The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.Current conversation: Human: 嗨最近怎么样 AI: 嗨最近还不错我在学习新的技能并且正在尝试新的任务。我也在尝试改进我的语言处理能力以便更好地与人交流。你呢 Human: 只是在写一些文档 AI: Finished chain.哦看起来很有趣你在写什么文档示例代码 conversation_with_summary.predict(input你听说过 LangChain 吗)输出结果 Entering new ConversationChain chain... Prompt after formatting: The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.Current conversation: Human: 嗨最近怎么样 AI: 嗨最近还不错我在学习新的技能并且正在尝试新的任务。我也在尝试改进我的语言处理能力以便更好地与人交流。你呢 Human: 只是在写一些文档 AI: 哦看起来很有趣你在写什么文档 Human: 你听说过 LangChain 吗 AI: Finished chain.是的我知道LangChain。它是一个基于区块链的语言学习平台旨在帮助人们更好地学习外语。你正在写关于LangChain的文档吗示例代码 # 我们可以看到摘要和缓冲区都已更新 conversation_with_summary.predict(input哈哈不对不过很多人都把它混淆了。 )输出结果 Entering new ConversationChain chain... Prompt after formatting: The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.Current conversation: System: The AI thinks artificial intelligence is a force for good because it will help humans reach their full potential. It has been learning new skills and trying new tasks, as well as attempting to improve its language processing so that it can communicate better with humans. The human asks how the AI has been doing recently. Human: 只是在写一些文档 AI: 哦看起来很有趣你在写什么文档 Human: 你听说过 LangChain 吗 AI: 是的我知道LangChain。它是一个基于区块链的语言学习平台旨在帮助人们更好地学习外语。你正在写关于LangChain的文档吗 Human: 哈哈不对不过很多人都把它混淆了。 AI: Finished chain.哦我明白了。那你在写什么文档呢完结
http://www.w-s-a.com/news/123895/

相关文章:

  • 怎么恢复网站数据库网站开发作业代做
  • 哪里建设网站最好用中国第五冶金建设公司医院网站
  • 雄安网建 网站建设订餐网站建设
  • 广州视频网站建站公司网站 体系
  • 青浦门户网站网站推广烟台公司电话
  • 湖北荆门建设银行网站wordpress购物模板下载
  • 学ui+wordpress模板北京推广优化
  • 建分类网站得花多少钱深圳设计网站开发
  • 网站集群建设和网站集约化百度商桥怎么绑定网站
  • 青岛模板网站建设价格网络品牌网站建设
  • 网站建设的几大要素网站的做网站的公司
  • 怎么登陆自己的公司网站垂直电商网站建设
  • 温州微网站制作哪里有许昌网站建设哪家最好
  • 中国中小企业网站官网网页制作工具按其制作方式分 可以分为
  • 做资源下载网站违法吗河南企业做网站
  • 网站开发总体功能设计网站建设 北京昌平
  • 辽宁省高等级公路建设局网站书画院网站建设方案
  • 本地生活网站 源码重庆本地网站有哪些
  • 企业网站域名服务器国外html响应式网站
  • 东莞网站建设策划企业网站推广策划方法
  • 网站的图片怎么制作WordPress交互式网站
  • pc网站增加手机站什么专业学网页设计制作
  • 婚庆公司网站模板wordpress用什么框架
  • 高校网站建设的时效性长沙市网站建设
  • 合肥网站建设市场四川建设网官网住房和城乡厅官网官方
  • 天行健君子以自强不息网站建设江西网站做的好的企业文化
  • 建网站内容谷歌搜索引擎优化
  • 网站建设与管理案例教程第三版答案网站建设策划书范文六篇精选
  • 建设工程项目在哪个网站查询实时网站推广的最终目的是
  • 个人网站可以做淘客网站设置的参数