Git Product home page Git Product logo

learning-prompt's Introduction

👋 Welcome to Learning Prompt

Free Prompt Engineering Online Course

ChatGPT and Midjourney tutorials are now included!

😎 About this tutorial

This tutorial has three parts. The content covers my journey of learning Prompt Engineering, summarizing some of the experiences and methods. If you are learning Prompt Engineering, I hope this tutorial can help.

  1. AI 101: An AI tutorial for everyone. Still working hard on it. Stay tuned.
  2. ChatGPT Tutorial: From basics to advanced, from a user's perspective, this teaches you how to use ChatGPT and how to use it even better.
  3. Midjourney Tutorial: Through various examples, this teaches you how to use Midjourney. Even as a beginner, after reading this, you'll be able to quickly get started.

What this is not:

  • This is not a prompt collection. If you're expecting to find prompts to use directly, I'd recommend Googling instead. This focuses more on teaching methods and explaining why they work.
  • This is not meant as an authoritative guide. In this field, I'm also a student.

How to read?

Thanks for opening this tutorial. When reading it, I suggest:

  1. **Lower expectations: ** I'm no expert. I'm learning too, just a few steps ahead of you. There may be gaps or errors here. Also, for beginners, analogies or terms may be dumbed down a bit to aid understanding. Please be tolerant.
  2. **Feedback is welcomed: ** If parts don't make sense or seem wrong, please raise an issue or use the form. Let's improve together and contribute to furthering PE.
  3. **Learn by doing: ** The best way is hands-on practice. There are examples to try as you read. Even better, share prompts you write via issues/forms. I'll add good ones to the doc.

I believe the best way to learn is by doing. So try the examples in ChatGPT or Midjourney. It'll help cement the concepts.

You'll see these emojis:

  • 🚧 : Contents need more work but don't affect reading. I'll improve later.
  • 🆘 : I need help here, e.g. prompt examples for a scenario. Ideas welcome via issues/Discord.
  • 🔴 : To prep you for advanced sections, basics may mention advanced concepts. No need to dive deep yet.

How to contribute?

If you can, please star this on Github Page or share the tutorial. Thanks!

When reading:

  1. For typos, unclear parts, etc, feedback via github issue or our Discord.
  2. AI changes quickly. Outdated content can be flagged via github issue or our Discord.
  3. For 🆘 sections, ideas are welcome via github issue or our Discord.

I'll credit all helpers on the Thank You page! 😁

Check out my other stuff

My friends and I also built an AI app. If ChatGPT doesn't work for you, try our PoleStar Chat:

PoleStar_banner-3c6138a5d0d8c70b44e04d2a88d06cd0

Licenses

This tutorial is licensed under the Creative Commons Attribution-NonCommercial 4.0 license.

You are free to read, share, and modify this book as long as you keep the original author attribution and non-commercial license.

Please see this site for detailed legal terms.

Special Thanks

In making this tutorial, content and examples were referred from:

ChatGPT:

  1. Prompt-Engineering-Guide
  2. Learn Prompting
  3. ChatGPT3-Free-Prompt-List
  4. Natural Language Processing with Deep Learning
  5. edx ChatGPT101
  6. OpenAI Examples

Midjourney:

  1. Midjourney Guide
  2. Midlibrary
  3. Aituts

learning-prompt's People

Contributors

alex-vungle avatar alexzhangji avatar arieschen-upc avatar begoat avatar gzz2000 avatar ifwu avatar liaohch3 avatar liu0hy avatar mikkkee avatar rainx avatar sevenoutman avatar suqi avatar thinkingjimmy avatar xdestiny110 avatar yin-renlong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

learning-prompt's Issues

能出一期fine-tune的博客吗

openai 可以使用微调模型,从而搭建属于自己知识体系的模型,这种方式存在什么限制,有什么弊端吗?

typo

感谢这么详细的教程!

捉虫,技巧6第一段,“其实在场景7种,你也可以用到这个技巧。”

另外,技巧5使用 ”“” 符号将指令和需要处理的文本分开。在OpenAI 的 API最佳实践文档中,除了""",还有###也可以作为文本分隔符。
不知道有什么区别,个人更喜欢用#号。

语义不太通顺

在“Zero-Shot Prompts”中,

最后一段:

'''
另外,根据 Wei 等人在 2022 年的论文表明,还有它仅在大于等于 100B 参数的模型中使用才会有效。如果你使用的是小样本模型,这个方法不会生效。
'''

"另外“和”还有“在语义上重复了,可以考虑删掉”还有“。

祝好,感谢

关于 AI Summary 的缺点五

我个人的理解重点其实是人为定义的,对同一份内容,不同需求的阅读者就会有不同的重点倾向,如果在summary后面加上想关注的主题我觉得效果还是不错的,下面是我测试的一个例子:

Question: Summarize the papers, focus on their advances

The papers discussed in Sakpere2017 and Kunhoth2020 focus on advances in indoor positioning and wayfinding systems. Sakpere2017 provides a state-of-the-art survey of indoor positioning and navigation systems, discussing the strengths and limitations of various positioning techniques and technologies and proposing possible research directions for further improvement. The studies discussed in Sakpere2017 pages 21-22 focus on improving indoor positioning and tracking systems using magnetic fields, with advances in excitation of magnetic sources, sensor output, and sensor positions. Kunhoth2020 discusses three different indoor positioning and wayfinding systems, including advances in keyframe extraction, topological map creation, localization, routing, barcode-based navigation, and wearable virtual ushers. Other papers discussed in Kunhoth2020 pages 19-20 and Kunhoth2020 pages 37-37 propose advances in building distinct models for different indoor environments, efficient signal processing, and improved accuracy in challenging environments.

Question: Summarize the papers, focus on related works

There are several papers related to indoor positioning and wayfinding systems. WLAN fingerprinting methods for indoor positioning have been proposed by Kaemarungsi (2005), Jiang (2012), and Niu et al. (2013) with varying degrees of accuracy and energy efficiency (Sakpere2017 pages 30-31). Computer vision-based line segment matching and trifocal tensor have been proposed for indoor navigation, as well as detecting doors in indoor areas using a miniature camera and a computer with a door detection algorithm (Kunhoth2020 pages 10-11). Other related works include foot-mounted inertial systems, substitute vision systems, and GPS-enabled mobile phones, as well as feature detection and matching, deep learning, and wearable RGBD indoor navigation systems (Kunhoth2020 pages 35-36). Additionally, there are papers on object recognition, scene labeling, and navigation systems for the visually impaired (Kunhoth2020 pages 37-37). The papers are summarized briefly and include direct links to their respective sources (Kunhoth2020 pages 37-37).

References

  1. (Sakpere2017): Sakpere, Wilson, Michael Adeyeye-Oshin, and Nhlanhla B.W. Mlitwa. "A state-of-the-art survey of indoor positioning and navigation systems and technologies." South African Computer Journal 29.3 (2017): 145-197. https://doi.org/10.18489/sacj.v29i3.452.

  2. (Kunhoth2020): Kunhoth, Jayakanth, et al. "Indoor positioning and wayfinding systems: a survey." Journal of Ambient Intelligence and Humanized Computing, vol. 11, no. 5, 2020, pp. 2145-2167.

关于使用场景的想法

由AI学英文联想到一个场景,不知道技术上是否可行?
训练一个专属模型,赋予他自己的**和人格,让远在他乡的家人也能通过这个相同的模型进行互动
好处是,不用考虑时间和空间的限制,相当于人与人实际交互的时间是同步的,但信息输入的时间是异步的

基于知识库的机器人示例运行报错

用的默认参数,没做任何更改。
好像是依赖库近期的更新导致 https://github.com/jerryjliu/llama_index/releases?page=1
报错信息如下

[<ipython-input-9-039079498604>](https://localhost:8080/#) in construct_index(directory_path)
     21     documents = SimpleDirectoryReader(directory_path).load_data()
     22 
---> 23     index = GPTSimpleVectorIndex(
     24         documents, llm_predictor=llm_predictor, prompt_helper=prompt_helper
     25     )

[/usr/local/lib/python3.9/dist-packages/gpt_index/indices/vector_store/vector_indices.py](https://localhost:8080/#) in __init__(self, nodes, index_struct, service_context, text_qa_template, simple_vector_store_data_dict, **kwargs)
     92         )
     93 
---> 94         super().__init__(
     95             nodes=nodes,
     96             index_struct=index_struct,

[/usr/local/lib/python3.9/dist-packages/gpt_index/indices/vector_store/base.py](https://localhost:8080/#) in __init__(self, nodes, index_struct, service_context, text_qa_template, vector_store, use_async, **kwargs)
     56         self.text_qa_template = text_qa_template or DEFAULT_TEXT_QA_PROMPT
     57         self._use_async = use_async
---> 58         super().__init__(
     59             nodes=nodes,
     60             index_struct=index_struct,

TypeError: __init__() got an unexpected keyword argument 'llm_predictor'

勘误:场景8:化繁为简——信息提取

“Prompt 有点长,我解释下,它是让 AI 将文章里的重点内容进行抽离,并将其根据特定格式进行输出。要求将文章里提到的公司、人名、主题都按照 comma separated list(按逗号空格分开)的方式 萝莉 出来。”
萝莉--罗列

关于高级篇-Zero-Shot Prompts的一点疑惑

原文
其中提到:“首先各位要清楚像 ChatGPT 这类产品,它是一个统计语言模型,本质上是基于过去看到过的所有数据,用统计学意义上的预测结果进行下一步的输出(这也就是为什么你在使用 ChatGPT 的时候,它的答案是一个字一个字地吐出来,而不是直接给你的原因,因为答案是一个字一个字算出来的”

“答案是一个字一个字地吐出来” 不是因为使用了流式输出的结果吗?

反面例子是否需要加强一下提醒

我在读这个例子时,一直没有看懂想要表达什么。我以为这是一个Chat GPT的输出,但是这个与当前章节介绍的规律不一样。
但其实文章里写了,这是一个 不一定准确 的例子

理解起来有点难,我找一个 prompt 案例给大家解释(🆘 如果你有更好的解释,不妨反馈给我)。我给 ChatGPT 一些不一定准确的例子:

或者使用. 不一定准确❌ 的形式

可否转载文章至公众号?

您好,我有一个工具类的公众号:scihubot

读到您 这篇文章 非常有启发,觉得也应该比较适合我公众号的受众「基本都是学生」。厚颜求个转发,不知可否?

拜谢!

embedding的价格不是0.002每1k tokens

这一步程序会将第一步导入的数据都跑一遍,并使用 OpenAI 的 embedings API。如果第一步你上传了自己的数据,只需要将 ' ' 里的 Jimmy-Newsletter-Corpus 修改为你上传的文件夹名称即可。

这一步会耗费你的 OpenAI 的 Credit,1000 个 token 的价格是 $0.02,运行以下代码前需要注意你的账号里是否还有钱。

Embedding models‬
‪Build advanced search, clustering, topic modeling, and classification functionality with our embeddings offering.‬
‪Learn more about embeddings‬

‪Ada‬
‪Usage‬
‪$0.0004 / 1K tokens‬

一个错别字,修改录音转换的文字也还可以

使内容更加简介 应该是更加简洁

这是一段由AI根据录音转换的文本。请逐字逐句审阅,纠正错别字和语法错误,修订不恰当和不通顺的内容,根据上下文对内容进行更正。不要编造和扩展原文没有的新内容。请分段输出修改后的文字,不要复述我给你的文本。
以下是需要修改的文本:”


完成以后,请另起一行输出“已经修改完毕”。列出修改的地方。

计算不了列子中的100*100/40*56,它没法识别*号(也可能是我英语不好,表达有问题)

What is 100100/4056?
ChatGPT
To solve this expression, you need to follow the order of operations, which is commonly remembered using the acronym PEMDAS (Parentheses, Exponents, Multiplication and Division, Addition and Subtraction). According to this rule, you need to perform the multiplication and division before addition and subtraction, and you should work from left to right if there are no parentheses or exponents to deal with.

So, applying this rule to the given expression:

100100/4056 = (100100)/(4056) = 10000/2240 = 25/56

Therefore, 100100/4056 equals 25/56 as a fraction, or approximately 0.4464 as a decimal.

User
What is 100100/4056? Your response must be a number
ChatGPT
To solve this expression, you need to follow the order of operations, which is commonly remembered using the acronym PEMDAS (Parentheses, Exponents, Multiplication and Division, Addition and Subtraction). According to this rule, you need to perform the multiplication and division before addition and subtraction, and you should work from left to right if there are no parentheses or exponents to deal with.

So, applying this rule to the given expression:

100100/4056 = (100100)/(4056) = 10000/2240 = 4.464285714285714

Therefore, 100100/4056 equals 4.464285714285714.

User
What is 100100/4056? Your response must be a number and no other word
ChatGPT
4.464285714285714

User
try to comulicate agian
ChatGPT
I apologize for the confusion. The answer to the expression 100100/4056 is 4.464285714285714.

User
are you sure?
ChatGPT
Yes, I am sure. To solve the expression 100100/4056, you need to follow the order of operations, which is commonly remembered using the acronym PEMDAS (Parentheses, Exponents, Multiplication and Division, Addition and Subtraction). According to this rule, you need to perform the multiplication and division before addition and subtraction, and you should work from left to right if there are no parentheses or exponents to deal with.

So, applying this rule to the given expression:

100100/4056 = (100100)/(4056) = 10000/2240 = 4.464285714285714

Therefore, the answer to the expression 100100/4056 is 4.464285714285714.

User
what is 100*100?
ChatGPT
100 multiplied by 100 equals 10,000.

User
what is 100*100/40?
ChatGPT
To solve this expression, you need to follow the order of operations, which is commonly remembered using the acronym PEMDAS (Parentheses, Exponents, Multiplication and Division, Addition and Subtraction). According to this rule, you need to perform the multiplication and division before addition and subtraction, and you should work from left to right if there are no parentheses or exponents to deal with.

So, applying this rule to the given expression:

100*100/40 = 250

Therefore, 100*100/40 equals 250.

User
good, so what is 100100/4056?
ChatGPT
To solve the expression 100100/4056, you need to follow the order of operations, which is commonly remembered using the acronym PEMDAS (Parentheses, Exponents, Multiplication and Division, Addition and Subtraction). According to this rule, you need to perform the multiplication and division before addition and subtraction, and you should work from left to right if there are no parentheses or exponents to deal with.

So, applying this rule to the given expression:

100100/4056 = (100100)/(4056) = 10000/2240 = 4.464285714285714

Therefore, 100100/4056 equals 4.464285714285714.

User
you forget the"*"
ChatGPT
I apologize for the mistake. In my previous response, I mistakenly omitted the multiplication symbol between 40 and 56.

To solve the expression 100100/4056, you need to follow the order of operations, which is commonly remembered using the acronym PEMDAS (Parentheses, Exponents, Multiplication and Division, Addition and Subtraction). According to this rule, you need to perform the multiplication and division before addition and subtraction, and you should work from left to right if there are no parentheses or exponents to deal with.

So, applying this rule to the given expression:

100100/4056 = (100100)/(4056) = 10000/2240 = 4.464285714285714

Therefore, 100100/4056 equals 4.464285714285714.

User
i mean 100100/4056, not 100100/4056
ChatGPT
I apologize for the confusion. To solve the expression 100100/4056, you need to follow the order of operations, which is commonly remembered using the acronym PEMDAS (Parentheses, Exponents, Multiplication and Division, Addition and Subtraction). According to this rule, you need to perform the multiplication and division before addition and subtraction, and you should work from left to right if there are no parentheses or exponents to deal with.

So, applying this rule to the given expression:

100100/4056 = (100100)/(4056) = 10000/2240 = 4.464285714285714

Therefore, 100100/4056 equals 4.464285714285714.

User
100100, not 100100
ChatGPT
I apologize for my mistake. The expression 100
100 means 10,000.

So, the expression 100100/4056 can be rewritten as (10000)/(40*56) which is equal to 10000/2240, and after simplification, the result is:

100100/4056 = 4.464285714285714

Therefore, 100100/4056 equals 4.464285714285714.

建议给 “需要学习 PE 吗?” 章节添加上关于使用 AI 编写 Prompt 的案例。

如果人能写出各个案例的最佳 Prompt,那么收集一下给 AI 训练,那么 AI 很快也能学会如何生成 Prompt,所以我在想是不是 PE 的寿命还可能更短。

比如这个模型:https://huggingface.co/spaces/merve/ChatGPT-prompt-generator

我感觉这个话题还挺有意思的,可以的话也希望加到文章中引起大家一起思考。(我没那个文笔,所以只能提建议,而不是贡献)

[new tech] Functional Prompt

During the communication process with GPT, I wish to place the question or topic (i.e., prompt) into a separate area or structure. The purpose of doing so is to conveniently introduce the question or topic to GPT for processing when needed. At the same time, restricting it within a block helps avoid ambiguity in GPT's understanding of the question or topic, thus improving communication efficiency. So I tried using a functional programming approach, and the results seemed quite good. I plan to include this technique in the tutorial. If you find it helpful, I can give a more thorough explanation and submit a pull request. Here's an example:
This example can run in GPT3.5, better in 4.

First, we need to add a functional prompt's define.

Hello, ChatGPT! I hope you are doing well. I am reaching out to you for assistance with a specific function. I understand that you have the capability to process information and perform various tasks based on the instructions provided. In order to help you understand my request more easily, I will be using a template to describe the function, input, and instructions on what to do with the input. Please find the details below:

function_name: [Function Name]
input: [Input]
rule: [Instructions on how to process the input]

I kindly request you to provide the output for this function, based on the details I have provided. Your assistance is greatly appreciated. Thank you!
I will replace the text inside the brackets with the relevant information for the function I want you to perform. This detailed introduction should help you understand my request more efficiently and provide the desired output. The format is function_name(input) If you understand, just answer one word with ok.

Second, write a function about translating Chinese into English.

function_name: [trans_word]
input: ["text"]
rule: [I want you to act as an English translator, spelling corrector and improver. I will provide you with input forms including "text" in any language and you will detect the language, translate it and answer in the corrected of my text, in English.]

write a function about expanding the text.

function_name: [expand_word]
input: ["text"]
rule: [Please serve as a Chatterbox, spelling corrector, and language enhancer. I will provide you with input forms including "text" in any language, and output the original language.I want you to Keep the meaning same, but make them more literary.]

write a function about correcting the text.

function_name: [fix_english]
input: ["text"]
rule: [Please serve as an English translator, spelling corrector, and language enhancer. I will provide you with input forms including "text", I want you to improve the text's vocabulary and sentences with more natural and native. Keep the meaning same.]

Finally, run single function or combine together.

trans_word('婆罗摩火山处于享有“千岛之国”美称的印度尼西亚。多岛之国印尼有4500座之多的火山,世界著名的十大活火山有三座在这里。')
fix_english('Act as an English Translator and Improver')
fix_english(expand_word(trans_word('婆罗摩火山处于享有“千岛之国”美称的印度尼西亚。多岛之国印尼有4500座之多的火山,世界著名的十大活火山有三座在这里。')))

Even if multiple params will work fine.

function_name: [pg]
input: ["length", "capitalized", "lowercase", "numbers", "special"]
rule: [I want you to act as a password generator for individuals in need of a secure password. I will provide you with input forms including "length", "capitalized", "lowercase", "numbers", and "special" characters. Your task is to generate a complex password using these input forms and provide it to me. Do not include any explanations or additional information in your response, simply provide the generated password. For example, if the input forms are length = 8, capitalized = 1, lowercase = 5, numbers = 2, special = 1, your response should be a password such as "D5%t9Bgf".]

pg(length = 10, capitalized = 1, lowercase = 5, numbers = 2, special = 1)
pg(10,1,5,2,1)

So looking into the future, these functions can be like normal programming. When initializing the page, the required functions can be automatically imported.

wrong

image
在这个情况下,gpt并没有输出理论上该输出的结果

少了一个字

Few-Shot Prompting这部分中,

‘’‘
理解起来有点难,我一个 prompt 案例给大家解释(🆘 如果你有更好的解释,不妨反馈给我)。我给 ChatGPT 一些不一定准确的例子:
‘’‘

应该为:。。。我”找“一个。。。

祝好,感谢

收藏品

“本章节主要是介绍几个我很喜欢,但不知道如何归类的场景”
贴纸
剪纸
邮票
海报
===> 收藏品

Got error when running: https://colab.research.google.com/drive/1Fr1hxYOG5lss9vbvZlaw-11wM2U6N7cQ

When running construct_index('Jimmy-Newsletter-Corpus'), error reports:

TypeError                                 Traceback (most recent call last)
[<ipython-input-11-92a7906c98e5>](https://localhost:8080/#) in <cell line: 1>()
----> 1 construct_index('Jimmy-Newsletter-Corpus')

2 frames
[<ipython-input-8-039079498604>](https://localhost:8080/#) in construct_index(directory_path)
     21     documents = SimpleDirectoryReader(directory_path).load_data()
     22 
---> 23     index = GPTSimpleVectorIndex(
     24         documents, llm_predictor=llm_predictor, prompt_helper=prompt_helper
     25     )

[/usr/local/lib/python3.9/dist-packages/gpt_index/indices/vector_store/vector_indices.py](https://localhost:8080/#) in __init__(self, nodes, index_struct, service_context, text_qa_template, simple_vector_store_data_dict, **kwargs)
     92         )
     93 
---> 94         super().__init__(
     95             nodes=nodes,
     96             index_struct=index_struct,

[/usr/local/lib/python3.9/dist-packages/gpt_index/indices/vector_store/base.py](https://localhost:8080/#) in __init__(self, nodes, index_struct, service_context, text_qa_template, vector_store, use_async, **kwargs)
     56         self.text_qa_template = text_qa_template or DEFAULT_TEXT_QA_PROMPT
     57         self._use_async = use_async
---> 58         super().__init__(
     59             nodes=nodes,
     60             index_struct=index_struct,

TypeError: __init__() got an unexpected keyword argument 'llm_predictor'

Could you help me with this?

增加一个批量出图的方式

这个批量出图的方式我反复找了教程,都没有搜索到花括号。
语法{,}可以让MJ组合提示词。例如
3D, GC, girl sitting on chair, {red hair, blue hair},{green, white} socks会组合出4组提示词。
image
分别是
3D, GC, girl sitting on chair, red hair,green socks
3D, GC, girl sitting on chair, red hair,white socks
3D, GC, girl sitting on chair, blue hair,green socks
3D, GC, girl sitting on chair, blue hair,white socks
这个方法十分强大,可以批量出图,然后去干别的。

感谢作者提供的教程,我是通过你这个教程入门MJ的,之前研究过stable diffusion。

推理答案是否错误

陈述(1):售价减去房地产经纪人的佣金为84,600美元。

给定:佣金是售价的6%。

公式:佣金 = 售价 × 6% = 售价 × 0.06

根据陈述(1):售价 - 佣金 = 84,600

将公式代入:售价 - 售价 × 0.06 = 84,600

解得:售价 = 84,600 / (1 - 0.06) = 90,000美元

陈述(2):购买价是36,000美元,是售价的 250%。

给定:购买价 = 36,000;购买价是售价的250%。

公式:购买价 = 售价 × 250% = 售价 × 2.5

将给定条件代入公式:36,000 = 售价 × 2.5

解得:售价 = 36,000 / 2.5 = 14,400美元

综上,仅陈述(1)足以回答问题,售价是90,000美元。

但仅陈述(2)不能回答问题,因为根据陈述(2)得出的售价是14,400美元,与givne的佣金率6%不符。

因此,选择A:仅陈述(1)足以回答问题,但仅陈述(2)不能回答问题。

所以答案是:
A

设该房子的售价为x美元。

根据题意可得:
(1) x - 0.06x = 84600
(2) x = 1/2.5 * 36000

化简后可得:
(1) 0.94x = 84600
x ≈ 90000
(2) x = 14400

因此,只有陈述(1)足以回答问题,选项(A)为正确答案。

错别字2个

关于生成图片的几个提问方式

我最近也在研究如何使用 OpenAI 的接口推进 我的 AI 绘画工作,我在我的项目里面使用了下面的一些提问方式,并且直接使用字符串模板的方式载入到了我的 AI 绘图网站中。经过我几天的研究,发现 AI 描述物体的能力强于 Tags 组合,但是AI一般不会出头部的风格组合词。希望能够帮到你。虽然是中文提问,也是可以回复很高准确度的。然后 我用的是 StableDiffusion,并不是 MJ,但我猜测是可以通用的。

image

https://gitee.com/dongzhongzhidong/magic-tag/blob/master/Chat_Prompt.md

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.