深圳市制作网站ui设计接单价目表

diannao/2026/1/20 15:48:54/文章来源:
深圳市制作网站,ui设计接单价目表,电子商务包括哪些内容,中国建筑网最新招聘背景 LangChain学习中#xff0c;尝试改了一下哈里森和吴恩达课程当中的问题#xff0c;看看gpt-3.5-turbo在集成了ReAct和wikipedia后#xff0c;如何回答《三体》的主要内容是什么这个问题#xff0c;当然#xff0c;主要是为了回答这问题时LangChain内部发生了什么。所… 背景 LangChain学习中尝试改了一下哈里森和吴恩达课程当中的问题看看gpt-3.5-turbo在集成了ReAct和wikipedia后如何回答《三体》的主要内容是什么这个问题当然主要是为了回答这问题时LangChain内部发生了什么。所以将langchain.debug 设置为 True。 代码出奇简洁 代码 import sys import os# 添加 parent_dir 到 sys.path current_dir os.path.dirname(__file__) parent_dir os.path.dirname(current_dir) sys.path.append(parent_dir)from constants import PROXY_URL,KEYimport warnings warnings.filterwarnings(ignore)import langchain langchain.debug Truefrom langchain.agents import load_tools, initialize_agent from langchain.agents import AgentType from langchain.python import PythonREPL from langchain.chat_models import ChatOpenAIllm ChatOpenAI(temperature0.0,model_namegpt-3.5-turbo, openai_api_keyKEY,openai_api_basePROXY_URL )tools load_tools([wikipedia],llmllm )agent initialize_agent(tools, #第二步加载的工具llm, #第一步初始化的模型agentAgentType.CHAT_ZERO_SHOT_REACT_DESCRIPTION, #代理类型handle_parsing_errorsTrue, #处理解析错误verbose True #输出中间步骤 )response agent(What is the main content of the science fiction novel The Three-Body Problem?)print(response) 输出异常繁琐 控制台输出 [chain/start] [1:chain:AgentExecutor] Entering Chain run with input:       {   input: What is the main content of the science fiction novel The Three-Body Problem? }[chain/start] [1:chain:AgentExecutor 2:chain:LLMChain] Entering Chain run with input: {   input: What is the main content of the science fiction novel The Three-Body Problem?,   agent_scratchpad: ,   stop: [     Observation:   ] }[llm/start] [1:chain:AgentExecutor 2:chain:LLMChain 3:llm:ChatOpenAI]  Entering LLM run with input: {   prompts: [     System: Answer the following questions as best you can. You have access to the following tools:\n\nwikipedia: A wrapper around Wikipedia. Useful for when you need to answer general questions about people, places, companies, facts, historical events, or other subjects. Input should be a search query.\n\nThe way you use the tools is by specifying a json blob.\nSpecifically, this json should have a action key (with the name of the tool  to use) and a action_input key (with the input to the tool going here).\n\nThe only values that should be in the \action\ field are: wikipedia\n\nThe $JSON_BLOB should only contain a SINGLE action, do NOT return a list of multiple actions. Here is an example of a valid $JSON_BLOB:\n\n\n{\n  \action\: $TOOL_NAME,\n  \action_input\: $INPUT\n}\n\n\nALWAYS use the following format:\n\nQuestion: the input question you must answer\nThought: you should always think about what to do\nAction:\n\n$JSON_BLOB\n\nObservation: the result of the action\n... (this Thought/Action/Observation can repeat N times)\nThought: I now know the final answer\nFinal Answer: the final answer to the original input question\n\nBegin! Reminder to always use the exact characters Final Answer when responding.\nHuman: What is the main content of the science fiction novel The Three-Body Problem?   ] }[llm/end] [1:chain:AgentExecutor 2:chain:LLMChain 3:llm:ChatOpenAI] [3.96s] Exiting LLM run with output: {   generations: [     [       {         text: Thought: I can use Wikipedia to find information about the main content of the science fiction novel \The Three-Body Problem\.\n\nAction:\n\n{\n  \action\: \wikipedia\,\n  \action_input\: \The  Three-Body Problem (novel)\\n}\n,         generation_info: {           finish_reason: stop,           logprobs: null         },         type: ChatGeneration,         message: {           lc: 1,           type: constructor,           id: [             langchain,             schema,             messages,             AIMessage           ],           kwargs: {             content: Thought: I can use Wikipedia to find information about the main content of the science fiction novel \The Three-Body Problem\.\n\nAction:\n\n{\n  \action\: \wikipedia\,\n  \action_input\: \The Three-Body Problem (novel)\\n}\n,             additional_kwargs: {}           }         }       }     ]   ],   llm_output: {     token_usage: {       completion_tokens: 55,       prompt_tokens: 306,       total_tokens: 361     },     model_name: gpt-3.5-turbo,     system_fingerprint: fp_3bc1b5746c   },   run: null }[chain/end] [1:chain:AgentExecutor 2:chain:LLMChain] [3.96s] Exiting Chain run with output: {   text: Thought: I can use Wikipedia to find information about the main content of the science fiction novel \The Three-Body Problem\.\n\nAction:\n\n{\n  \action\: \wikipedia\,\n  \action_input\: \The Three-Body Problem (novel)\\n}\n }[tool/start] [1:chain:AgentExecutor 4:tool:wikipedia] Entering Tool run  with input: The Three-Body Problem (novel)[tool/end] [1:chain:AgentExecutor 4:tool:wikipedia] [5.47s] Exiting Tool run with output: Page: The Three-Body Problem (novel) Summary: The Three-Body Problem (Chinese: 三体; lit. Three-Body) is a story by Chinese science fiction author Liu Cixin, the first novel in the Remembrance of Earths Past trilogy. The series portrays a fictional past, present and future wherein Earth encounters an alien civilization from a nearby system of three sun-like stars orbiting one another, a representative example of the three-body problem in orbital mechanics. The story was originally serialized in Science Fiction World in 2006 before it was published as a standalone book in 2008. In 2006, it received the  Galaxy Award for Chinese science fiction. In 2012, it was described as one of Chinas most successful full-length novels of the past two decades. The English translation by Ken Liu was published by Tor Books in 2014. That  translation was the first novel by an Asian writer to win a Hugo Award for Best Novel; it was also nominated for the Nebula Award for Best Novel.The book has been adapted into other media. In 2015, a Chinese film adaptation of the same name was in production, but it was never released. A Chinese TV series, Three-Body, released in early 2023 to critical success locally. An English language Netflix series, 3 Body Problem, was released in March 2024. Page: Three-body problem Summary: In physics and classical mechanics, the three-body problem is the problem of taking the initial positions and velocities (or momenta) of three point masses and solving for their subsequent motion according to Newtons laws of motion and Newtons law of universal gravitation. The three-body problem is a special case of the n-body problem. Unlike two-body problems, no general closed-form solution exists, as the resulting dynamical system is chaotic for most initial conditions, and numerical methods are generally required. Historically, the first specific three-body problem to receive extended study was the one involving the Moon, Earth, and the Sun. In an extended modern sense, a three-body problem is any problem in classical mechanics or quantum mechanics that models the motion of three particles. Page: 3 Body Problem (TV series) Summary: 3 Body Problem is an American science fiction television series created by David Benioff, D. B. Weiss and Alexander Woo, loosely based on the Hugo Award-winning Chinese novel The Three-Body Problem by Liu Cixin. It is the second live-action adaptation after the 2023 Chinese television series. The series premiered on Netflix with its eight episodes on March 21, 2024.[chain/start] [1:chain:AgentExecutor 5:chain:LLMChain] Entering Chain run with input: {   input: What is the main content of the science fiction novel The Three-Body Problem?,   agent_scratchpad: This was your previous work (but I havent seen any of it! I only see what you return as final answer):\nThought: I can use Wikipedia to find information about the main content of the science fiction novel \The Three-Body Problem\.\n\nAction:\n\n{\n  \action\: \wikipedia\,\n  \action_input\: \The Three-Body Problem (novel)\\n}\n\nObservation: Page: The Three-Body Problem (novel)\nSummary: The Three-Body Problem (Chinese: 三体; lit. Three-Body) is a story by Chinese science fiction author Liu Cixin, the first novel in the Remembrance of Earths Past trilogy. The series portrays a fictional past, present and future wherein Earth encounters an alien civilization from a nearby system of three sun-like stars orbiting one another, a representative example of the three-body problem in orbital mechanics.\nThe story was originally serialized in Science Fiction World in 2006 before it was published as a standalone book in 2008. In 2006, it received the Galaxy Award for Chinese science fiction. In 2012, it was described as one of Chinas most successful full-length novels of the past two decades. The English translation by Ken Liu was published by Tor Books in 2014. That translation was the first novel by an  Asian writer to win a Hugo Award for Best Novel; it was also nominated for the Nebula Award for Best Novel.The book has been adapted into other media. In 2015, a Chinese film adaptation of the same name was in production,  but it was never released. A Chinese TV series, Three-Body, released in early 2023 to critical success locally. An English language Netflix series,  3 Body Problem, was released in March 2024.\n\nPage: Three-body problem\nSummary: In physics and classical mechanics, the three-body problem is the  problem of taking the initial positions and velocities (or momenta) of three point masses and solving for their subsequent motion according to Newtons laws of motion and Newtons law of universal gravitation. The three-body problem is a special case of the n-body problem. Unlike two-body problems, no general closed-form solution exists, as the resulting dynamical system is chaotic for most initial conditions, and numerical methods are generally required.\nHistorically, the first specific three-body problem to receive extended study was the one involving the Moon, Earth, and the Sun. In an extended modern sense, a three-body problem is any problem in classical mechanics or quantum mechanics that models the motion of three particles.\n\n\n\nPage: 3 Body Problem (TV series)\nSummary: 3 Body Problem is an  American science fiction television series created by David Benioff, D. B. Weiss and Alexander Woo, loosely based on the Hugo Award-winning Chinese  novel The Three-Body Problem by Liu Cixin. It is the second live-action adaptation after the 2023 Chinese television series.\nThe series premiered on Netflix with its eight episodes on March 21, 2024.\n\n\nThought:,         stop: [     Observation:   ] }[llm/start] [1:chain:AgentExecutor 5:chain:LLMChain 6:llm:ChatOpenAI]  Entering LLM run with input: {   prompts: [     System: Answer the following questions as best you can. You have access to the following tools:\n\nwikipedia: A wrapper around Wikipedia. Useful for when you need to answer general questions about people, places, companies, facts, historical events, or other subjects. Input should be a search query.\n\nThe way you use the tools is by specifying a json blob.\nSpecifically, this json should have a action key (with the name of the tool  to use) and a action_input key (with the input to the tool going here).\n\nThe only values that should be in the \action\ field are: wikipedia\n\nThe $JSON_BLOB should only contain a SINGLE action, do NOT return a list of multiple actions. Here is an example of a valid $JSON_BLOB:\n\n\n{\n  \action\: $TOOL_NAME,\n  \action_input\: $INPUT\n}\n\n\nALWAYS use the following format:\n\nQuestion: the input question you must answer\nThought: you should always think about what to do\nAction:\n\n$JSON_BLOB\n\nObservation: the result of the action\n... (this Thought/Action/Observation can repeat N times)\nThought: I now know the final answer\nFinal Answer: the final answer to the original input question\n\nBegin! Reminder to always use the exact characters Final Answer when responding.\nHuman: What is the main content of the science fiction novel The Three-Body Problem?\n\nThis was your previous work (but I havent seen any of it! I only see what you return as final answer):\nThought: I can use Wikipedia to find information about the main content of the science fiction novel \The  Three-Body Problem\.\n\nAction:\n\n{\n  \action\: \wikipedia\,\n   \action_input\: \The Three-Body Problem (novel)\\n}\n\nObservation: Page: The Three-Body Problem (novel)\nSummary: The Three-Body Problem (Chinese: 三体; lit. Three-Body) is a story by Chinese science fiction author Liu Cixin, the first novel in the Remembrance of Earths Past trilogy.  The series portrays a fictional past, present and future wherein Earth encounters an alien civilization from a nearby system of three sun-like stars orbiting one another, a representative example of the three-body problem  in orbital mechanics.\nThe story was originally serialized in Science Fiction World in 2006 before it was published as a standalone book in 2008. In 2006, it received the Galaxy Award for Chinese science fiction. In 2012,  it was described as one of Chinas most successful full-length novels of the past two decades. The English translation by Ken Liu was published by Tor Books in 2014. That translation was the first novel by an Asian writer  to win a Hugo Award for Best Novel; it was also nominated for the Nebula Award for Best Novel.The book has been adapted into other media. In 2015, a Chinese film adaptation of the same name was in production, but it was never released. A Chinese TV series, Three-Body, released in early 2023 to critical success locally. An English language Netflix series, 3 Body Problem, was released in March 2024.\n\nPage: Three-body problem\nSummary: In physics and classical mechanics, the three-body problem is the problem of taking the initial positions and velocities (or momenta) of three point masses and solving for their subsequent motion according to Newtons laws of motion and Newtons law of universal gravitation. The three-body problem is a special case of the n-body problem. Unlike two-body problems, no general closed-form solution exists, as the resulting dynamical system is chaotic for most initial conditions, and numerical methods are generally required.\nHistorically, the first specific three-body problem to receive extended study was the one involving the Moon, Earth, and the Sun. In an extended modern sense, a three-body problem is any problem in classical mechanics  or quantum mechanics that models the motion of three particles.\n\n\n\nPage: 3 Body Problem (TV series)\nSummary: 3 Body Problem is an American science fiction television series created by David Benioff, D. B. Weiss and Alexander Woo, loosely based on the Hugo Award-winning Chinese novel The Three-Body Problem by Liu Cixin. It is the second live-action adaptation after the 2023 Chinese television series.\nThe series premiered on Netflix with its eight episodes on March 21, 2024.\n\n\nThought:   ] }[llm/end] [1:chain:AgentExecutor 5:chain:LLMChain 6:llm:ChatOpenAI] [4.10s] Exiting LLM run with output: {   generations: [     [       {         text: I have found information about the main content of the science fiction novel \The Three-Body Problem\ by Liu Cixin. It is a story that portrays a fictional past, present, and future where Earth encounters an alien civilization from a nearby system of three sun-like stars orbiting one another. The novel is the first in the Remembrance of Earths Past trilogy and has received critical acclaim.\n\nFinal Answer: The main content of the science fiction novel \The Three-Body Problem\ involves Earth encountering an alien civilization from a nearby system of three sun-like stars.,         generation_info: {           finish_reason: stop,           logprobs: null         },         type: ChatGeneration,         message: {           lc: 1,           type: constructor,           id: [             langchain,             schema,             messages,             AIMessage           ],           kwargs: {             content: I have found information about the main content of the science fiction novel \The Three-Body Problem\ by Liu Cixin. It is  a story that portrays a fictional past, present, and future where Earth encounters an alien civilization from a nearby system of three sun-like stars orbiting one another. The novel is the first in the Remembrance of Earths Past trilogy and has received critical acclaim.\n\nFinal Answer: The main content of the science fiction novel \The Three-Body Problem\ involves Earth encountering an alien civilization from a nearby system of three sun-like stars.,             additional_kwargs: {}           }         }       }     ]   ],   llm_output: {     token_usage: {       completion_tokens: 113,       prompt_tokens: 924,       total_tokens: 1037     },     model_name: gpt-3.5-turbo,     system_fingerprint: fp_3bc1b5746c   },   run: null }[chain/end] [1:chain:AgentExecutor 5:chain:LLMChain] [4.10s] Exiting Chain run with output: {   text: I have found information about the main content of the science  fiction novel \The Three-Body Problem\ by Liu Cixin. It is a story that  portrays a fictional past, present, and future where Earth encounters an alien civilization from a nearby system of three sun-like stars orbiting one another. The novel is the first in the Remembrance of Earths Past trilogy and has received critical acclaim.\n\nFinal Answer: The main content of the science fiction novel \The Three-Body Problem\ involves Earth encountering an alien civilization from a nearby system of three sun-like stars. }[chain/end] [1:chain:AgentExecutor] [13.57s] Exiting Chain run with output: {   output: The main content of the science fiction novel \The Three-Body Problem\ involves Earth encountering an alien civilization from a nearby system of three sun-like stars. } {input: What is the main content of the science fiction novel The Three-Body Problem?, output: The main content of the science fiction novel  The Three-Body Problem involves Earth encountering an alien civilization from a nearby system of three sun-like stars.} 最终结果 The Three-Body Problem involves Earth encountering an alien civilization from a nearby system of three sun-like stars.  翻译《三体问题》涉及地球遇到来自附近三颗类太阳恒星系统的外星文明。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/diannao/89920.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

wordpress 旅游预订手机优化电池充电要开吗

在日常的Mac使用过程中,有效的文件管理策略是保持设备高效运行的关键。随着时间的推移,无用的文件和忘记的数据可能会悄悄占据你的硬盘空间,导致设备变慢,甚至影响你的工作效率。因此,学习Mac文件管理,并定…

青岛网站制作服务商wordpress可以仿任何站

在JavaScript中,箭头函数是ES6中引入的一种新的函数语法。它们提供了一种更简洁的方式来写函数,并且对 this 关键字的行为有特殊的处理。 箭头函数(Arrow Functions) 箭头函数使用一个“箭头”(>)定义…

网站备案要多久时间苏州网上注册公司网址

0、测试环境 我们简化开发,创建一个简单的环境(因为没有其它包比如 service、dao,所以这里不用 Spring 容器,只用 SpringMVC 容器): Servelet 容器配置: package com.lyh.config;import org.s…

南宁网站排名外包郑州网站推广公司服务

https://wenku.baidu.com/view/fb553d795acfa1c7aa00cc27?pcf2#1 转载于:https://www.cnblogs.com/linewman/p/9918760.html

中文网站建设设计钱建网站

算术运算指令算术运算指令是反映CPU计算能力的一组指令,也是编程时经常使用的一组指令。它包括:加、减、乘、除及其相关的辅助指令。 该组指令的操作数可以是8位、16位和32位(80386)。当存储单元是该类指令的操作数时,该操作数的寻址方式可以…

wordpress修改链接东莞整站优化

7.1 视图容器组件 7.1.2 scroll-view组件 设置滚动条位置时默认是没有动画过渡的,scroll-with-animation设置为true即可开启动画过渡效果。 enable-back-to-top设置为true,用户单击标题栏可以让scroll-view中的内容快速地回到最顶部。iOS单击标题栏即…

p2p网站建设网站金融模版

1、获取 nginx 的镜像 # 默认是latest版本docker pull nginx 2、运行 nginx 容器 docker run --name nginx-80 -p 80:80 --rm -d nginx# --name nginx-80 设定容器的名称# -p 80:80 端口进行映射,将本地的80端口映射到容器内部的80端口# --rm 表示容器退出后直接…

网站制作ppt模板wordpress远程图片模块

fuxploide,一款针对文件上传的Fuzz检测工具 1.工具概述2.安装3.参数解析4.使用案例1.工具概述 Fuxploider 是一种开源渗透测试工具,可自动检测和利用文件上传表单缺陷。该工具能够检测允许上传的文件类型,并能够检测哪种技术最适合在所需的 Web 服务器上上传 Web Shell 或任…

大型门户网站 代码wordpress菜单文件

今天学习Django框架,用ajax向后台发送post请求,直接报了403错误,说CSRF验证失败;先前用模板的话都是在里面加一个 {% csrf_token %} 就直接搞定了CSRF的问题了;很显然,用ajax发送post请求这样就白搭了&…

浙江综合网站建设配件创建官方网站

1 synchronized可重入性的理解 当一个线程试图操作一个由其他线程持有的对象锁的临界资源时,将会处于阻塞状态,但当一个线程再次请求自己持有对象锁的临界资源时,如果当前锁是重入性,会请求将会成功,如果当前锁不是可…

优化网站制作方法大全宁德网站设计

本文参考:http://www.360doc.com/content/11/0308/14/5327079_99222581.shtml文献整理所得。 1.正整数的十进制转换为二进制. 十进制整数转换为二进制整数采用"除2取余,逆序排列"法。具体做法是:用2整除十进制整数,可以得到一个商…

开发企业网站费用手机安卓系统

前言在开发应用系统的时候,导出文件是必不可放的功能。以前用过POI、easyexcel等工具的导入导出功能,但总感觉太麻烦了,代码特别多,感觉并不是很好用。今天给大家介绍一款新工具,java工具类库Hutool。Hutool简介Hutool…

上海网站推荐大余网站建设

第一章 最优化的基本概念 1.最优化求解的数学模型建立 2.例题(考试第一大题:数学模型建立) 解析:优化变量、目标函数(一般取最小化)、约束条件 注意: 1)约束条件一般形式为&#…

迪庆北京网站建设wordpress分类数据库参数

需要在 Excel 中求一个数字的平方根吗?使用几个内置的 Excel 函数和公式可以轻松计算平方根。在本分步指南中,您将学习在 Excel 中计算平方根的 5 种不同方法,包括使用 SQRT 函数、POWER 函数、指数公式、VBA 代码和 Power Query。跟随教程&a…

pc端网站自适应代码南宁本地网站有哪些

Leetcode原题 Leetcode70. 爬楼梯 标签 记忆化搜索 | 数学 | 动态规划 题目描述 假设你正在爬楼梯。需要 n 阶你才能到达楼顶。每次你可以爬 1 或 2 个台阶。你有多少种不同的方法可以爬到楼顶呢?示例 1:输入:n 2 输出:2 解…

重庆装修网站建设广州google推广

0x01 基础概念 ICMP(Internet control Message Protocal)Internet报文协议,是TCP/IP的一种子协议,属于网络层协议,其目的是用于在IP主机、路由器之间传递控制信息 0x02 程序 程序 # -*- coding:utf-8 -*- from sca…

一些好用的网站插件开发wordpress

只需要在项目中加载nuGet包就可以了 操作:工具--nuGet包管理器--程序包管理器控制台 在 PM>处输入 install-package entityframework 加载sqlserver的数据库连接 install-package oracle.manageddataaccess.entityframework 加载oracle的数据库连接 参考地址&…

为什么我做的网站不是加密访问湖南网络推广公司

一直在备考。考一个关于自己本身工作的资格证。也一直在忙碌中,三个项目的并驾齐驱。 可以说,我也很忙。 东北今天下了很大雪,厚厚的,踩上去咯吱咯吱的响,这样的安逸更容易使得心静下来。 但是,其实我是焦虑…

怎样介绍自己做的网站烟台网站建设服务

原文:在SQL Server中为什么不建议使用Not In子查询在SQL Server中,子查询可以分为相关子查询和无关子查询,对于无关子查询来说,Not In子句比较常见,但Not In潜在会带来下面两种问题: 结果不准确 查询性能低下 下面我们…

旅游网站案例分析温州好的网站推广

数据结构.单链表经典算法 1.经典算法OJ题1:移除链表元素1.1题目描述:1.2题解:1.3图文解释: 2.经典算法OJ题2:反转链表2.1题目描述:2.2题解:2.3图文解释 3.经典算法OJ题3:合并两个有序…