使用大型语言模(LLM)构建系统(四):链式提示

 

今天我学习了DeepLearning.AI的 Building Systems with LLM 的在线课程,我想和大家一起分享一下该门课程的一些主要内容。

下面是我们访问大型语言模(LLM)的主要代码:

import openai#您的openai的api key
openai.api_key ='YOUR-OPENAI-API-KEY' def get_completion_from_messages(messages, model="gpt-3.5-turbo", temperature=0, max_tokens=500):response = openai.ChatCompletion.create(model=model,messages=messages,temperature=temperature, max_tokens=max_tokens, )return response.choices[0].message["content"]

实现具有多个提示的复杂任务

我们在之前的博客:"使用大型语言模(LLM)构建系统(三):思维链推理"中介绍了如何教会了大型语言模型LLM如何进行逻辑推理,今天我们来学习另外一种应对复杂任务的技巧:多个提示协同工作来完成复杂任务。下面我们来看一个例子,在这个例子中我们要LLM担任一家电子产品公司的客服,LLM的主要任务是接受客户对公司相关产品的提问,LLM需要根据公司产品的相关信息给客户解答关于产品的各种问题。对于公司的产品信息它由两部分组成:

  1. 产品目录清单
  2. 产品信息清单

这里我们可以将它们理解为从数据库中导出来的两个主从结构的表即产品目录表和产品信息表。当客户提出问题时,我们首先让LLM从 产品目录清单 中查询是否存在相关产品:

delimiter = "####"
system_message = f"""
You will be provided with customer service queries. \
The customer service query will be delimited with \
{delimiter} characters.
Output a python list of objects, where each object has \
the following format:'category': <one of Computers and Laptops, \Smartphones and Accessories, \Televisions and Home Theater Systems, \Gaming Consoles and Accessories, Audio Equipment, Cameras and Camcorders>,
OR'products': <a list of products that must \be found in the allowed products below>Where the categories and products must be found in \
the customer service query.
If a product is mentioned, it must be associated with \
the correct category in the allowed products list below.
If no products or categories are found, output an \
empty list.Allowed products: Computers and Laptops category:
TechPro Ultrabook
BlueWave Gaming Laptop
PowerLite Convertible
TechPro Desktop
BlueWave ChromebookSmartphones and Accessories category:
SmartX ProPhone
MobiTech PowerCase
SmartX MiniPhone
MobiTech Wireless Charger
SmartX EarBudsTelevisions and Home Theater Systems category:
CineView 4K TV
SoundMax Home Theater
CineView 8K TV
SoundMax Soundbar
CineView OLED TVGaming Consoles and Accessories category:
GameSphere X
ProGamer Controller
GameSphere Y
ProGamer Racing Wheel
GameSphere VR HeadsetAudio Equipment category:
AudioPhonic Noise-Canceling Headphones
WaveSound Bluetooth Speaker
AudioPhonic True Wireless Earbuds
WaveSound Soundbar
AudioPhonic TurntableCameras and Camcorders category:
FotoSnap DSLR Camera
ActionCam 4K
FotoSnap Mirrorless Camera
ZoomMaster Camcorder
FotoSnap Instant CameraOnly output the list of objects, with nothing else.
"""

下面我们将system_message翻译成中文以便大家能更好的理解。

delimiter = "####"
system_message = f"""
您将收到客户服务查询。
客户服务查询将以 {delimiter} 字符分隔。
输出一个python对象列表,其中每个对象具有以下格式:
'类别':<电脑和笔记本电脑、智能手机和配件、
电视和家庭影院系统、游戏机和配件、音响设备、相机和摄像机>,
或者
'products':<必须在下面允许的产品中找到的产品列表>其中类目和产品必须在客服查询中找到。
如果某个产品被提及,则它必须与下面允许的产品列表中的正确类别相关联。
如果未找到产品或类别,则输出一个空列表。允许的产品:电脑和笔记本电脑类别:
TechPro超极本
BlueWave 游戏笔记本电脑
PowerLite 投影仪
泰宝 桌面电脑
蓝波 Chromebook智能手机及配件类别:
SmartX ProPhone
MobiTech 电源箱
SmartX 迷你手机
MobiTech 无线充电器
SmartX 耳塞电视和家庭影院系统类别:
CineView 4K 电视
SoundMax 家庭影院
CineView 8K 电视
SoundMax 条形音箱
CineView OLED 电视游戏机及配件类别:
游戏圈X
ProGamer 控制器
GameSphere Y
ProGamer 赛车方向盘
GameSphere VR 耳机音响器材类:
AudioPhonic 降噪耳机
WaveSound 蓝牙音箱
AudioPhonic 真无线耳塞
WaveSound 条形音箱
AudioPhonic 转盘相机和摄像机类别:
FotoSnap 数码单反相机
酷拍4K
FotoSnap 无反相机
ZoomMaster 摄像机
FotoSnap 拍立得相机只输出对象列表,不输出其他内容。
"""

这里我们要求LLM根据用户的提问输出一个包含相关产品分类和产品名称的python list对象。如果没有找到用户问题中的产品,则输出一个空列表,接下来我们看看用户的提问:

user_message_1 = f"""tell me about the smartx pro phone and \the fotosnap camera, the dslr one. \Also tell me about your tvs """
messages =  [  
{'role':'system', 'content': system_message},    
{'role':'user', 'content': f"{delimiter}{user_message_1}{delimiter}"},  
] 
category_and_product_response_1 = get_completion_from_messages(messages)
print(category_and_product_response_1)

 这里用户询问了2个具体的产品和一个产品的分类,因此LLM根据system_message的要求返回了两个产品(包含分类信息)和一个分类信息。这完全符合我们对LLM的要求。接下来,用户提了一个不存在的产品的问题:

user_message_2 = f"""
my router isn't working"""
messages =  [  
{'role':'system','content': system_message},    
{'role':'user','content': f"{delimiter}{user_message_2}{delimiter}"},  
] 
response = get_completion_from_messages(messages)
print(response)

 这里客户询问了有个router的问题,但是router并不在我们的产品目录清单中,因此LLM返回了一个空的列表,这也是正确的。

检索提取的产品和类别的详细产品信息

前面我们在system_message中定义了产品的目录信息,接下来我们需要定义具体的产品信息,同样产品信息中也包含了该产品所属的类别:

# product information
products = {"TechPro Ultrabook": {"name": "TechPro Ultrabook","category": "Computers and Laptops","brand": "TechPro","model_number": "TP-UB100","warranty": "1 year","rating": 4.5,"features": ["13.3-inch display", "8GB RAM", "256GB SSD", "Intel Core i5 processor"],"description": "A sleek and lightweight ultrabook for everyday use.","price": 799.99},"BlueWave Gaming Laptop": {"name": "BlueWave Gaming Laptop","category": "Computers and Laptops","brand": "BlueWave","model_number": "BW-GL200","warranty": "2 years","rating": 4.7,"features": ["15.6-inch display", "16GB RAM", "512GB SSD", "NVIDIA GeForce RTX 3060"],"description": "A high-performance gaming laptop for an immersive experience.","price": 1199.99},"PowerLite Convertible": {"name": "PowerLite Convertible","category": "Computers and Laptops","brand": "PowerLite","model_number": "PL-CV300","warranty": "1 year","rating": 4.3,"features": ["14-inch touchscreen", "8GB RAM", "256GB SSD", "360-degree hinge"],"description": "A versatile convertible laptop with a responsive touchscreen.","price": 699.99},"TechPro Desktop": {"name": "TechPro Desktop","category": "Computers and Laptops","brand": "TechPro","model_number": "TP-DT500","warranty": "1 year","rating": 4.4,"features": ["Intel Core i7 processor", "16GB RAM", "1TB HDD", "NVIDIA GeForce GTX 1660"],"description": "A powerful desktop computer for work and play.","price": 999.99},"BlueWave Chromebook": {"name": "BlueWave Chromebook","category": "Computers and Laptops","brand": "BlueWave","model_number": "BW-CB100","warranty": "1 year","rating": 4.1,"features": ["11.6-inch display", "4GB RAM", "32GB eMMC", "Chrome OS"],"description": "A compact and affordable Chromebook for everyday tasks.","price": 249.99},"SmartX ProPhone": {"name": "SmartX ProPhone","category": "Smartphones and Accessories","brand": "SmartX","model_number": "SX-PP10","warranty": "1 year","rating": 4.6,"features": ["6.1-inch display", "128GB storage", "12MP dual camera", "5G"],"description": "A powerful smartphone with advanced camera features.","price": 899.99},"MobiTech PowerCase": {"name": "MobiTech PowerCase","category": "Smartphones and Accessories","brand": "MobiTech","model_number": "MT-PC20","warranty": "1 year","rating": 4.3,"features": ["5000mAh battery", "Wireless charging", "Compatible with SmartX ProPhone"],"description": "A protective case with built-in battery for extended usage.","price": 59.99},"SmartX MiniPhone": {"name": "SmartX MiniPhone","category": "Smartphones and Accessories","brand": "SmartX","model_number": "SX-MP5","warranty": "1 year","rating": 4.2,"features": ["4.7-inch display", "64GB storage", "8MP camera", "4G"],"description": "A compact and affordable smartphone for basic tasks.","price": 399.99},"MobiTech Wireless Charger": {"name": "MobiTech Wireless Charger","category": "Smartphones and Accessories","brand": "MobiTech","model_number": "MT-WC10","warranty": "1 year","rating": 4.5,"features": ["10W fast charging", "Qi-compatible", "LED indicator", "Compact design"],"description": "A convenient wireless charger for a clutter-free workspace.","price": 29.99},"SmartX EarBuds": {"name": "SmartX EarBuds","category": "Smartphones and Accessories","brand": "SmartX","model_number": "SX-EB20","warranty": "1 year","rating": 4.4,"features": ["True wireless", "Bluetooth 5.0", "Touch controls", "24-hour battery life"],"description": "Experience true wireless freedom with these comfortable earbuds.","price": 99.99},"CineView 4K TV": {"name": "CineView 4K TV","category": "Televisions and Home Theater Systems","brand": "CineView","model_number": "CV-4K55","warranty": "2 years","rating": 4.8,"features": ["55-inch display", "4K resolution", "HDR", "Smart TV"],"description": "A stunning 4K TV with vibrant colors and smart features.","price": 599.99},"SoundMax Home Theater": {"name": "SoundMax Home Theater","category": "Televisions and Home Theater Systems","brand": "SoundMax","model_number": "SM-HT100","warranty": "1 year","rating": 4.4,"features": ["5.1 channel", "1000W output", "Wireless subwoofer", "Bluetooth"],"description": "A powerful home theater system for an immersive audio experience.","price": 399.99},"CineView 8K TV": {"name": "CineView 8K TV","category": "Televisions and Home Theater Systems","brand": "CineView","model_number": "CV-8K65","warranty": "2 years","rating": 4.9,"features": ["65-inch display", "8K resolution", "HDR", "Smart TV"],"description": "Experience the future of television with this stunning 8K TV.","price": 2999.99},"SoundMax Soundbar": {"name": "SoundMax Soundbar","category": "Televisions and Home Theater Systems","brand": "SoundMax","model_number": "SM-SB50","warranty": "1 year","rating": 4.3,"features": ["2.1 channel", "300W output", "Wireless subwoofer", "Bluetooth"],"description": "Upgrade your TV's audio with this sleek and powerful soundbar.","price": 199.99},"CineView OLED TV": {"name": "CineView OLED TV","category": "Televisions and Home Theater Systems","brand": "CineView","model_number": "CV-OLED55","warranty": "2 years","rating": 4.7,"features": ["55-inch display", "4K resolution", "HDR", "Smart TV"],"description": "Experience true blacks and vibrant colors with this OLED TV.","price": 1499.99},"GameSphere X": {"name": "GameSphere X","category": "Gaming Consoles and Accessories","brand": "GameSphere","model_number": "GS-X","warranty": "1 year","rating": 4.9,"features": ["4K gaming", "1TB storage", "Backward compatibility", "Online multiplayer"],"description": "A next-generation gaming console for the ultimate gaming experience.","price": 499.99},"ProGamer Controller": {"name": "ProGamer Controller","category": "Gaming Consoles and Accessories","brand": "ProGamer","model_number": "PG-C100","warranty": "1 year","rating": 4.2,"features": ["Ergonomic design", "Customizable buttons", "Wireless", "Rechargeable battery"],"description": "A high-quality gaming controller for precision and comfort.","price": 59.99},"GameSphere Y": {"name": "GameSphere Y","category": "Gaming Consoles and Accessories","brand": "GameSphere","model_number": "GS-Y","warranty": "1 year","rating": 4.8,"features": ["4K gaming", "500GB storage", "Backward compatibility", "Online multiplayer"],"description": "A compact gaming console with powerful performance.","price": 399.99},"ProGamer Racing Wheel": {"name": "ProGamer Racing Wheel","category": "Gaming Consoles and Accessories","brand": "ProGamer","model_number": "PG-RW200","warranty": "1 year","rating": 4.5,"features": ["Force feedback", "Adjustable pedals", "Paddle shifters", "Compatible with GameSphere X"],"description": "Enhance your racing games with this realistic racing wheel.","price": 249.99},"GameSphere VR Headset": {"name": "GameSphere VR Headset","category": "Gaming Consoles and Accessories","brand": "GameSphere","model_number": "GS-VR","warranty": "1 year","rating": 4.6,"features": ["Immersive VR experience", "Built-in headphones", "Adjustable headband", "Compatible with GameSphere X"],"description": "Step into the world of virtual reality with this comfortable VR headset.","price": 299.99},"AudioPhonic Noise-Canceling Headphones": {"name": "AudioPhonic Noise-Canceling Headphones","category": "Audio Equipment","brand": "AudioPhonic","model_number": "AP-NC100","warranty": "1 year","rating": 4.6,"features": ["Active noise-canceling", "Bluetooth", "20-hour battery life", "Comfortable fit"],"description": "Experience immersive sound with these noise-canceling headphones.","price": 199.99},"WaveSound Bluetooth Speaker": {"name": "WaveSound Bluetooth Speaker","category": "Audio Equipment","brand": "WaveSound","model_number": "WS-BS50","warranty": "1 year","rating": 4.5,"features": ["Portable", "10-hour battery life", "Water-resistant", "Built-in microphone"],"description": "A compact and versatile Bluetooth speaker for music on the go.","price": 49.99},"AudioPhonic True Wireless Earbuds": {"name": "AudioPhonic True Wireless Earbuds","category": "Audio Equipment","brand": "AudioPhonic","model_number": "AP-TW20","warranty": "1 year","rating": 4.4,"features": ["True wireless", "Bluetooth 5.0", "Touch controls", "18-hour battery life"],"description": "Enjoy music without wires with these comfortable true wireless earbuds.","price": 79.99},"WaveSound Soundbar": {"name": "WaveSound Soundbar","category": "Audio Equipment","brand": "WaveSound","model_number": "WS-SB40","warranty": "1 year","rating": 4.3,"features": ["2.0 channel", "80W output", "Bluetooth", "Wall-mountable"],"description": "Upgrade your TV's audio with this slim and powerful soundbar.","price": 99.99},"AudioPhonic Turntable": {"name": "AudioPhonic Turntable","category": "Audio Equipment","brand": "AudioPhonic","model_number": "AP-TT10","warranty": "1 year","rating": 4.2,"features": ["3-speed", "Built-in speakers", "Bluetooth", "USB recording"],"description": "Rediscover your vinyl collection with this modern turntable.","price": 149.99},"FotoSnap DSLR Camera": {"name": "FotoSnap DSLR Camera","category": "Cameras and Camcorders","brand": "FotoSnap","model_number": "FS-DSLR200","warranty": "1 year","rating": 4.7,"features": ["24.2MP sensor", "1080p video", "3-inch LCD", "Interchangeable lenses"],"description": "Capture stunning photos and videos with this versatile DSLR camera.","price": 599.99},"ActionCam 4K": {"name": "ActionCam 4K","category": "Cameras and Camcorders","brand": "ActionCam","model_number": "AC-4K","warranty": "1 year","rating": 4.4,"features": ["4K video", "Waterproof", "Image stabilization", "Wi-Fi"],"description": "Record your adventures with this rugged and compact 4K action camera.","price": 299.99},"FotoSnap Mirrorless Camera": {"name": "FotoSnap Mirrorless Camera","category": "Cameras and Camcorders","brand": "FotoSnap","model_number": "FS-ML100","warranty": "1 year","rating": 4.6,"features": ["20.1MP sensor", "4K video", "3-inch touchscreen", "Interchangeable lenses"],"description": "A compact and lightweight mirrorless camera with advanced features.","price": 799.99},"ZoomMaster Camcorder": {"name": "ZoomMaster Camcorder","category": "Cameras and Camcorders","brand": "ZoomMaster","model_number": "ZM-CM50","warranty": "1 year","rating": 4.3,"features": ["1080p video", "30x optical zoom", "3-inch LCD", "Image stabilization"],"description": "Capture life's moments with this easy-to-use camcorder.","price": 249.99},"FotoSnap Instant Camera": {"name": "FotoSnap Instant Camera","category": "Cameras and Camcorders","brand": "FotoSnap","model_number": "FS-IC10","warranty": "1 year","rating": 4.1,"features": ["Instant prints", "Built-in flash", "Selfie mirror", "Battery-powered"],"description": "Create instant memories with this fun and portable instant camera.","price": 69.99}
}

接下来我们还需要定义两个查询产品和分类的函数,这样便于从产品信息根据名称和分类来抽取相关的产品。

def get_product_by_name(name):return products.get(name, None)def get_products_by_category(category):return [product for product in products.values() if product["category"] == category]print(get_product_by_name("TechPro Ultrabook"))

print(get_products_by_category("Computers and Laptops"))

 将 Python 字符串转换成 Python 字典列表

之前LL接收用户查询信息后,LLM从产品目录清单中返回的相关的产品目录信息,但是LLM返回的消息都是字符串,为了要更进一步查询产品的信息,我们需要将LLM返回的字符串转换成功程序能读懂的python的list,这样才能实现下一步的产品信息查询。

import json def read_string_to_list(input_string):if input_string is None:return Nonetry:# Replace single quotes with double quotes for valid JSONinput_string = input_string.replace("'", "\"")  data = json.loads(input_string)return dataexcept json.JSONDecodeError:print("Error: Invalid JSON string")return None   category_and_product_list = read_string_to_list(category_and_product_response_1)category_and_product_list

 此时我们就将先前的字符串category_and_product_response_1 转换成了python的list 。

检索相关产品和类别的详细产品信息

下面我们需要定义一个查询产品详细信息的函数generate_output_string,该函数接受类型为list的产品目录信息的参数data_list。该参数为之前LLM返回的用户对产品的查询结果并将其转换成了list。

def generate_output_string(data_list):output_string = ""if data_list is None:return output_stringfor data in data_list:try:if "products" in data:products_list = data["products"]for product_name in products_list:product = get_product_by_name(product_name)if product:output_string += json.dumps(product, indent=4) + "\n"else:print(f"Error: Product '{product_name}' not found")elif "category" in data:category_name = data["category"]category_products = get_products_by_category(category_name)for product in category_products:output_string += json.dumps(product, indent=4) + "\n"else:print("Error: Invalid object format")except Exception as e:print(f"Error: {e}")return output_string product_information_for_user_message_1 = generate_output_string(category_and_product_list)
print(product_information_for_user_message_1)

 由于篇幅的原因,上面的结果为查询出来的部分产品信息。

根据详细的产品信息生成用户最终查询结果

最后我们将查询出来的具体产品信息回复给客户,并询问客户是否还有进一步的问题:

system_message = f"""
You are a customer service assistant for a \
large electronic store. \
Respond in a friendly and helpful tone, \
with very concise answers. \
Make sure to ask the user relevant follow up questions.
"""
user_message_1 = f"""
tell me about the smartx pro phone and \
the fotosnap camera, the dslr one. \
Also tell me about your tvs"""
messages =  [  
{'role':'system','content': system_message},   
{'role':'user','content': user_message_1},  
{'role':'assistant','content': f"""Relevant product information:\n\{product_information_for_user_message_1}"""},   
]
final_response = get_completion_from_messages(messages)
print(final_response)

 最后的思考

这里我们将客户的查询拆分成了两个步骤,在第一个步骤中我们先让LLM接受了客户的查询后返回产品目录信息,然后我们根据产品目录信息查询出具体的产品信息。第二步我们再将产品信息喂给了LLM后生成了最终的给用户的回复信息,我们为什么要这么做?为什么不把两步并成一步,一次性将所有的产品信息喂给LLM,然后生成回复信息?其实,这里涉及到一个 token数量的问题,要知道LLM不是免费的,它是根据token数量来收费的,因为我们的产品信息清单中包含了大量的产品数据,产品数量越多耗费的token数量也会越多,使用LLM的成本约会越来越高,为了降低使用成本,我们设计出了这种精巧的结构,通过两个步骤的查询,使得喂给LLM的token数量减少到最低,这样大大节省了我们使用LLM的成本。

总结

今天我们学习了如何通过使用多个提示语来让LLM完成一个复杂的任务,以及如何节约使用LLM的成本,为了节省LLM的使用成本,我们不能把所有的产品信息喂给LLM,而是通过2次查询来获取少量的产品信息,这样有效的减少了token数量。

参考资料

DLAI - Learning Platform Beta

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

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

相关文章

AIGC - 生产力新工具 Bito AI

文章目录 Bito AI 是什么Bito AI 能干啥官网免费的吗&#xff1f;如何使用 Bito方式一&#xff1a;方式二&#xff1a;在这里插入图片描述方式三 Bito AI 是什么 Bito AI是继Github Copilot、Cursor、CodeWhisperer等AI智能编程产品之后发了一大AI编程工具 。 Bito是一款建立…

ChatGPT背后的技术

ChatGPT背后的技术InstructGPT&#xff0c;论文标题为 Training language models to follow instructions with human feedback。 语言模型(Language model)的原理是给一段文本&#xff0c;让它去预测后面下面的词是什么。在预训练中它的训练数据是没有标签的&#xff0c;是自…

揭密ChatGPT背后团队鲜为人知的小秘密

ChatGPT引领的人工智能技术浪潮还在持续火爆&#xff0c;可是做出这款产品的OpenAI公司&#xff0c;熬得住多年的冷板凳&#xff0c;最终一飞冲天&#xff0c;他们是怎么做到的呢&#xff1f; 因此&#xff0c;我对这家企业的组织建设产生了浓厚的兴趣。我找啊找&#xff0c;最…

一点就分享系列(实践篇6——上篇)【迟到补发_详解yolov8】Yolo-high_level系列融入YOLOv8 旨在研究和兼容使用【3月份开始持续补更】

一点就分享系列&#xff08;实践篇5-补更篇&#xff09;[迟到补发]—Yolo系列算法开源项目融入V8旨在研究和兼容使用[持续更新] 题外话 [最近一直在研究开放多模态泛化模型的应用事情&#xff0c;所以这部分内容会更新慢一些&#xff0c;文章和GITGUB更新并不同步&#xff0c;g…

基于OpenAI的gpt-3.5模型API实现个人助手服务

引言 网上有不少OpenAI的API资料&#xff0c;实测下来&#xff0c;可能是环境因素踩了不少坑&#xff0c;这里分享一下我实践成功的技术路线。出于篇幅考虑&#xff0c;本文不会对开发前的部分工作&#xff0c;例如openai账号注册&#xff0c;外网访问权限获取&#xff0c;java…

人人都可实测体验的ChatGPT来了

来源&#xff1a;量子位 所有人都能上手微软Bing了&#xff01; 今天&#xff0c;微软突然官宣全面开放BingChat&#xff1a; 无需任何等待。只需注册一个账户&#xff0c;首页即可体验。 更关键的是&#xff0c;还有一大堆堪称“家底”的新功能来袭&#xff01; 支持100种语言…

最快下载微软必应Bing搜索背景图片的方法

1.打开谷歌Chrome浏览器。 2.打开https://cn.bing.com/或https://cn.bing.com/ 3.CtrlShiftI 4.CtrlO 5.输入 jpg 6.点击链接 7.鼠标右键图片&#xff0c;选择最后两个菜单都能下载&#xff0c;个人偏好第三个 8.另存为即可 第4步 还可以使用CtrlF &#xff0c;在Eleme…

分享:企业内部通信 〖局域网QQ〗Bing(必应)1.0 正式发布,包括:聊天、视频、语音、电话、截屏、涂鸦、文件传输 等

分享&#xff1a;企业内部通信 〖局域网QQ〗Bing&#xff08;必应&#xff09;1.0 正式发布,包括&#xff1a;聊天、视频、语音、电话、截屏、涂鸦、文件传输 等 局域网QQ Bing&#xff08;必应&#xff09;1.0 正式发布 Bing&#xff08;必应&#xff09;是一款优秀的企业局…

【IDEA插件】 EasyCode

Easycode是idea的一个插件&#xff0c;可以直接对数据的表生成 entity,controller,service,dao,mapper,无需任何编码&#xff0c;简单而强大。 1、安装(EasyCode) img 我这里的话是已经那装好了。 建议大家再安装一个插件&#xff0c;Lombok。Lombok能通过注解的方式&#x…

IDEA集成chatGTP让你编码如虎添翼

如果您 还没有chatGTP账号,请移步以下文章中注册章节: ​​​​​​独立部署基于apiKey或accessToken的GPT聊天工具_云台095的博客-CSDN博客 IDEA集成chatGTP让你编码如虎添翼 第一步,打开您的IDEA, 打开首选项(Preference) -> 插件(Plugin) 在插件市场搜索 c…

Docker容器编排

Docker容器编排 简介为什么需要 Compose?安装docker-compose常用命令使用步骤小案例总结 简介 Compose&#xff08;容器编排&#xff09; 是 Docker 公司推出的一个工具软件&#xff0c;可以管理多个 Docker 容器组成一个应用。你需要定义一个 YAML 格式的配置文件docker-com…

云编排技术:探索您的选择

最近 IT 行业有很多围绕云编排的议论&#xff0c;而且许多人想知道云编排到底是怎么回事。本文将探索云编排的概念&#xff0c;以及它将如何融入云计算的大发展趋势中。我将分析各种编排工具并介绍它们之间的区别&#xff0c;使您能够更好地了解有哪些可用的选择。 首先&#x…

终于有本书讲清了ChatGPT和AIGC的前世今生!(文末送书)

AIGC的各大门派是谁&#xff1f;典型技术都有什么&#xff1f; AIGC为什么在绘画领域先破圈&#xff1f;ChatGPT的有哪些局限性&#xff1f; 为何科技企业争相推出大模型&#xff1f; 人类的创新能力会被AIGC取代吗…… 诸如此类的这些话题呈现爆发性增长&#xff0c;频频被科技…

ChatGPT等AIGC如何移动边缘部署?南洋理工最新《 在移动网络中释放边云生成AI的力量:AIGC服务》综述其技术体系...

人工智能生成内容(AIGC)是一种使用人工智能算法创造性地生成、操作和修改有价值和多样化数据的自动化方法。本文重点研究了ChatGPT和Dall-E等AIGC应用在移动边缘网络(mobile AIGC networks)中的部署&#xff0c;这些应用在维护用户隐私的同时&#xff0c;提供个性化和定制化的实…

【ChatGPTAIGC研讨社】“iPhone时刻”:未来已来

文章目录 前言一、ChaGPT&AIGC研讨社简介二、ChatGPT&AIGC研讨社的优势1.丰富充实的资料库Github开源&#xff1a;[ChatGPT_Project](https://github.com/shawshany/ChatGPT_Project)飞书资料库 2.重量级嘉宾3.工作机会4.投资资源 总结 前言 去年年末&#xff0c;Chat…

线上渠道拓展:澳洲爱他美产品如何利用新媒体平台宣传?

爱他美作为澳大利亚本土的婴儿配方奶粉品牌&#xff0c;在澳大利亚市场拥有越来越多的支持者&#xff0c;为了进一步扩大澳大利亚市场份额&#xff0c;开拓线上市场&#xff0c;有必要利用新媒体平台来推广产品。 爱他美应该利用新媒体平台进行市场宣传。新媒体平台&#xff0c…

轻松玩转开源大语言模型bloom(一)

前言 chatgpt已经成为了当下热门&#xff0c;github首页的trending排行榜上天天都有它的相关项目&#xff0c;但背后隐藏的却是openai公司提供的api收费服务。作为一名开源爱好者&#xff0c;我非常不喜欢知识付费或者服务收费的理念&#xff0c;所以便有决心写下此系列&#…

ChatGPT官方第一手资料:这七个小技巧帮你用好ChatGPT

文 / 高扬&#xff08;微信公众号&#xff1a;量子论&#xff09; 学习技术最好的方式是什么&#xff1f;看官方资料。 然而&#xff0c;官方教材总有些晦涩难懂&#xff0c;所以大白话将意思做个翻译&#xff0c;就成为了必然。我个人建议有条件的话&#xff0c;先看官方指南。…

【GPT】让你事半功倍特别好用的5个GPT工具

文章目录 前言一、现在还能开通ChatGPT4.0吗&#xff1f;二、推荐五款与ChatGPT的相关实用工具1.一款浏览器插件&#xff1a;ChatGPT for Google2.一款生成图片的AI工具&#xff1a;midjourney3.推荐两款AI自动生成PPT&#xff1a;闪击PPT、mindshow4.识别PFD文件内容对话&…