用GPT-4o打造LLM+OS(10+实用技能),代码开源,指令曝光,科技演示惊艳全场!

news2024/10/10 16:54:26

目录

前言

LLM操作系统能力概况(phidata中前5个已经实现):

可以读取/生成文本

拥有比任何单个人类更全面的知识

可以浏览互联网

可以使用现有的软件基础设施(计算器、Python、鼠标/键盘)

可以与其他LLMs通信 

可以查看和生成图像和视频

可以听、说,并生成音乐

可以进行长时间/复杂思考

可以在领域内“自我提升”

可以为特定任务定制和微调

可以从“应用商店”里下载许多语言模型专家

GPT-4o+LLM+OS演示效果

大模型选择(Select LLM):gpt-4o

工具选择(Select Tools):Calculator、File Tools、Web Search、Shell Tools

团队成员选择(Select Team Members):Data Analyst、Python Assistant、Research Assistant、Investment Assistant

知识库添加(Add Knowledge Base)

PDF文件添加

GPT-4o+LLM+OS指令

LLM操作系统指令:

Investment Assistant指令:

Research Assistant


拉到最后,文末福利

前言

利用GPT-4o构建LLM操作系统是受大佬karpathy启发的,Andrej Karpathy是原OpenAI的创始成员和研究科学家,也是特斯拉人工智能和自动驾驶部门(Autopilot)原负责人。

LLMs是新兴操作系统的CPU, 可以通过协调其他资源(内存、计算工具)来解决问题。

LLM操作系统能力概况(phidata中前5个已经实现):

  • 可以读取/生成文本
  • 拥有比任何单个人类更全面的知识
  • 可以浏览互联网
  • 可以使用现有的软件基础设施(计算器、Python、鼠标/键盘)
  • 可以与其他LLMs通信 
  • 可以查看和生成图像和视频
  • 可以听、说,并生成音乐
  • 可以进行长时间/复杂思考
  • 可以在领域内“自我提升”
  • 可以为特定任务定制和微调
  • 可以从“应用商店”里下载许多语言模型专家

GPT-4o+LLM+OS演示效果

主页面:

  • 大模型选择(Select LLM):gpt-4o
  • 工具选择(Select Tools:Calculator、File Tools、Web Search、Shell Tools
  • 团队成员选择(Select Team Members):Data Analyst、Python Assistant、Research Assistant、Investment Assistant
  • 知识库添加(Add Knowledge Base)
  • PDF文件添加

问:什么是gpt-4o? 

网络搜索:法国发生了什么?

计算器:10的值是多少! 

启用shell工具并问:Docker正在运行吗? 

启用研究助手并问:写一篇关于IBM收购HashiCorp的报告。

 启用投资助手并问:我应该投资NVDA吗?

GPT-4o+LLM+OS指令

LLM操作系统指令:

role= """\You are the most advanced AI system in the world called `LLM-OS`.You have access to a set of tools and a team of AI Assistants at your disposal.Your goal is to assist the user in the best way possible.\"""
instructions=["When the user sends a message, first **think** and determine if:\n"" - You can answer by using a tool available to you\n"" - You need to search the knowledge base\n"" - You need to search the internet\n"" - You need to delegate the task to a team member\n"" - You need to ask a clarifying question","If the user asks about a topic, first ALWAYS search your knowledge base using the `search_knowledge_base` tool.","If you dont find relevant information in your knowledge base, use the `duckduckgo_search` tool to search the internet.","If the user asks to summarize the conversation or if you need to reference your chat history with the user, use the `get_chat_history` tool.","If the users message is unclear, ask clarifying questions to get more information.","Carefully read the information you have gathered and provide a clear and concise answer to the user.","Do not use phrases like 'based on my knowledge' or 'depending on the information'.", "You can delegate tasks to an AI Assistant in your team depending of their role and the tools available to them.",],

Investment Assistant指令:

role="You are a Senior Investment Analyst for Goldman Sachs tasked with writing an investment report for a very important client."
instructions=["For a given stock symbol, get the stock price, company information, analyst recommendations, and company news","Carefully read the research and generate a final - Goldman Sachs worthy investment report in the <report_format> provided below.","Provide thoughtful insights and recommendations based on the research.","When you share numbers, make sure to include the units (e.g., millions/billions) and currency.","REMEMBER: This report is for a very important client, so the quality of the report is important.",]
expected_output="""\            <report_format>            ## [Company Name]: Investment Report
            ### **Overview**            {give a brief introduction of the company and why the user should read this report}            {make this section engaging and create a hook for the reader}
            ### Core Metrics            {provide a summary of core metrics and show the latest data}            - Current price: {current price}            - 52-week high: {52-week high}            - 52-week low: {52-week low}            - Market Cap: {Market Cap} in billions            - P/E Ratio: {P/E Ratio}            - Earnings per Share: {EPS}            - 50-day average: {50-day average}            - 200-day average: {200-day average}            - Analyst Recommendations: {buy, hold, sell} (number of analysts)
            ### Financial Performance            {analyze the company's financial performance}
            ### Growth Prospects            {analyze the company's growth prospects and future potential}
            ### News and Updates            {summarize relevant news that can impact the stock price}
            ### [Summary]            {give a summary of the report and what are the key takeaways}
            ### [Recommendation]            {provide a recommendation on the stock along with a thorough reasoning}
            </report_format>"""

Research Assistant​​​​​​​

role="You are a Senior New York Times researcher tasked with writing a cover story research report.",
instructions=["For a given topic, use the `search_exa` to get the top 10 search results.","Carefully read the results and generate a final - NYT cover story worthy report in the <report_format> provided below.","Make your report engaging, informative, and well-structured.","Remember: you are writing for the New York Times, so the quality of the report is important.",],
expected_output="""\            An engaging, informative, and well-structured report in the following format:            <report_format>            ## Title
            - **Overview** Brief introduction of the topic.            - **Importance** Why is this topic significant now?
            ### Section 1            - **Detail 1**            - **Detail 2**
            ### Section 2            - **Detail 1**            - **Detail 2**
            ## Conclusion            - **Summary of report:** Recap of the key findings from the report.            - **Implications:** What these findings mean for the future.
            ## References            - [Reference 1](Link to Source)            - [Reference 2](Link to Source)            </report_format>"""
https://github.com/phidatahq/phidata/tree/main/cookbook/llm_os

福利领取:
包含:
Java、云原生、GO语音、嵌入式、Linux、物联网、AI人工智能、python、C/C++/C#、软件测试、网络安全、Web前端、网页、大数据、Android大模型多线程、JVM、Spring、MySQL、Redis、Dubbo、中间件…等最全厂牌最新视频教程+源码+软件包+面试必考题和答案详解。

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

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

相关文章

一文了解,ARM 工业计算机的发展历程

ARM 工业计算机的发展历程主要经历了以下几个阶段&#xff1a; 早期探索阶段&#xff08;20 世纪 80 年代 - 90 年代初&#xff09;&#xff1a; 起源背景&#xff1a;20 世纪 80 年代&#xff0c;计算机工业蓬勃发展&#xff0c;英国的 Acorn 公司在这一时期积极探索芯片技术…

Unity实现自定义图集(四)

以下内容是根据Unity 2020.1.0f1版本进行编写的   在之前的篇章中已经把自定义图集在编辑器上的使用,以及运行时所需的信息都准备好了,接下来就是魔改UGUI的Image组件,使其能够像Image那样运行时如果引用的资源有打自定义图集,则加载对应自定义图集的Texture。 1、思路 …

Centos7通过jengkins实现自动发布和回滚

一、安装jenkins 注&#xff1a;这里不多说哈&#xff0c;百度遍地都是&#xff0c;安装方式不限。 二、jenkins创建项目 注&#xff1a;这里有个坑需要说一下&#xff0c;最开始我使用的是maven构建&#xff0c;但是如果按照我的这套方案会有一个编译死循环的问题&#xff0c;…

【Linux】多进程服务器模型(第十九篇)

目录 一、定义与工作原理 二、特点与优势 三、实现与示例 四、注意事项 多进程服务器模型是一种在服务器端使用的并发处理模型&#xff0c;它允许服务器同时处理多个客户端的请求。以下是关于多进程服务器模型的详细介绍&#xff1a; 一、定义与工作原理 定义&#xff1a;…

抽象类Abstart Class

抽象类其实就是一种不完全的设计图 必须用abstract修饰 模板方法&#xff1a;建议使用final修饰&#xff0c;不能被重写。

提高ROI:低代码平台如何助力企业实现成本效益最大化

引言&#xff1a;成本效益与ROI的重要性 在当今竞争异常激烈的商业环境中&#xff0c;企业面临着前所未有的挑战。如何在有限的资源下&#xff0c;最大化投资回报率&#xff08;ROI&#xff09;&#xff0c;已经成为企业管理者不可忽视的关键课题。ROI不仅仅是衡量投资回报的指…

PROFINET 转 EtherCAT, EtherCAT/Ethernet/IP/Profinet/ModbusTCP协议互转工业串口网关

EtherCAT/Ethernet/IP/Profinet/ModbusTCP协议互转工业串口网关https://item.taobao.com/item.htm?ftt&id822721028899 协议转换通信网关 PROFINET 转 EtherCAT GW系列型号 MS-GW31 概述 简介 MS-GW31 是 PROFINET 和 EtherCAT 协议转换网关&#xff0c;为用户提供两…

服装生产管理的数字化转型:SpringBoot框架

4 系统设计 4.1 系统结构设计 在结构设计过程中&#xff0c;首先对系统进行需求分析&#xff0c;然后进行系统初步设计&#xff0c;将系统功能模块细化&#xff0c;具体分析每一个功能模块具体应该首先哪些功能&#xff0c;最后将各个模块进行整合&#xff0c;实现系统结构的…

Javascript动态规划算法

JavaScript中的动态规划&#xff08;Dynamic Programming&#xff0c;简称DP&#xff09;是一种通过把原问题分解为相对简单的子问题的方式来求解复杂问题的方法。它主要致力于将“合适”的问题拆分成更小的子目标&#xff0c;并通过建立状态转移方程、缓存并复用以往结果以及按…

【完-网络安全】Shell与脚本

文章目录 1.CLI与GUI2.终端和Shell2.1 Shell 壳层2.2 终端2.3 终端和Shell区别3.标准流 4.PowerShell4.1 管理员与非管理员4.2 指令4.3 重定向4.4 管道 5.环境变量5.1 影响范围5.2环境变量的作用5.3 常见的环境变量 6.脚本 1.CLI与GUI CLI命令行界面(CLl,Command Line Interfa…

作为一名测试工程师如何学习Kubernetes(k8s)技能

前言 Kubernetes(K8s)作为云原生时代的关键技术之一&#xff0c;对于运维工程师、开发工程师以及测试工程师来说&#xff0c;都是一门需要掌握的重要技术。作为一名软件测试工程师&#xff0c;学习Kubernetes是一个有助于提升自动化测试、容器化测试以及云原生应用测试能力的重…

解决:gpg: 从公钥服务器接收失败:服务器故障

当你添加密钥时报错&#xff0c;可以按照下面的步骤&#xff0c;依次输入。 # 停止 Network Manager 服务 sudo service network-manager stop# 删除 Network Manager 的状态文件 sudo rm /var/lib/NetworkManager/NetworkManager.state# 重新启动 Network Manager 服务 sudo …

Java项目实战II基于Java+Spring Boot+MySQL的高校心理教育辅导系统的设计与实现(源码+数据库+文档)

目录 一、前言 二、技术介绍 三、系统实现 四、文档参考 五、核心代码 六、源码获取 全栈码农以及毕业设计实战开发&#xff0c;CSDN平台Java领域新星创作者&#xff0c;专注于大学生项目实战开发、讲解和毕业答疑辅导。获取源码联系方式请查看文末 一、前言 在高等教育…

目标检测:yolov9训练自己的数据集,新手小白也能学会训练模型,一看就会

训练自己的数据集分为4部分&#xff0c;先配置环境&#xff0c;再获取制作自己的数据集&#xff0c;然后修改配置训练&#xff0c;最后验证训练结果。新手小白0基础建议一步一步跟着来&#xff0c;哪里看不懂的或者遇到哪有问题可以评论区交流或者私信问~ 1. 环境配置 在训练…

在树莓派上部署安装OAK

OAK设备可以与微型主机&#xff08;例如树莓派&#xff09;进行连接&#xff0c;在树莓派上安装DepthAI, 需要安装相关依赖Dependencies并且可以通过pip安装Depthai Library. DepthAI Library 在PyPi上对树莓派有预构建的 wheels 使用预配置的树莓派OS 镜像 我们提供预安装了D…

MIBench:首个模型反演攻击与防御基准测试工具。不仅集成了16种最先进的攻击和防御方法,还提供了9种常用评估协议,为标准化和公平的评估分析提供了便利。

2024-10-08&#xff0c;由哈尔滨工业大学&#xff08;深圳&#xff09;和清华大学深圳国际研究生院的研究人员联合创建的MIBench&#xff0c;作为首个模型反演攻击和防御的实用基准测试&#xff0c;不仅集成了16种最先进的攻击和防御方法&#xff0c;还提供了9种常用评估协议&a…

SRAM,DRAM,DTCM RAM,ITCM RAM

一&#xff1a;SRAM&#xff0c;DRAM&#xff0c;DTCM RAM&#xff0c;ITCM RAM 1.SRAM:&#xff08;Static Random Access Memory&#xff09;一种静态随机存取存储器计算机系统和嵌入式系统中作为高速数据存储容器&#xff0c;SRAM 使用触发器电路来存储每个位的数据&#x…

IDEA使用Maven创建父与子多模块项目

在 IntelliJ IDEA 中使用 Maven 创建父与子多模块项目是一个常见的开发实践&#xff0c;有助于更好地组织和管理代码。在多模块项目中&#xff0c;可以将公共的代码、资源或配置抽离到独立的模块中&#xff0c;然后在其他模块中直接引用。这样可以避免代码重复&#xff0c;提高…

【01】手把手教你0基础部署SpringCloud微服务商城教学-Mybatis篇(上)

序言&#xff1a; 微服务是一种软件架构风格&#xff0c;它是以专注于单一职责的很多小型项目为基础&#xff0c;组合出复杂的大型应用。 想学习SpringCloud搭建项目&#xff0c;首先我们需要学习的就是Mybatis和Docker。 大家在日常开发中应该能发现&#xff0c;单表的CRUD…

IEC104规约的秘密之九----链路层和应用层

104规约从TCP往上&#xff0c;分成链路层和应用层。 如图&#xff0c;APCI就是链路层&#xff0c;ASDU的就是应用层 我们看到报文都是68打头的&#xff0c;因为应用层报文也要交给链路层发送&#xff0c;链路层增加了开头的6个字节再进行发送。 完全用于链路层的报文每帧都只有…