Skip to content

Commit 2b18a80

Browse files
authoredNov 1, 2023
📝 docs: Add topics usage
1 parent 1e1b21b commit 2b18a80

10 files changed

+101
-35
lines changed
 

‎CODE_OF_CONDUCT.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
1717
Examples of behavior that contributes to a positive environment for our
1818
community includes:
1919

20-
* Demonstrating empathy and kindness toward other people
21-
* Being respectful of differing opinions, viewpoints, and experiences
22-
* Giving and gracefully accepting constructive feedback
23-
* Accepting responsibility and apologizing to those affected by our mistakes,
20+
- Demonstrating empathy and kindness toward other people
21+
- Being respectful of differing opinions, viewpoints, and experiences
22+
- Giving and gracefully accepting constructive feedback
23+
- Accepting responsibility and apologizing to those affected by our mistakes,
2424
and learning from the experience
25-
* Focusing on what is best not just for us as individuals, but for the
25+
- Focusing on what is best not just for us as individuals, but for the
2626
overall community
2727

2828
## Examples of unacceptable behavior include:
2929

30-
* The use of sexualized language or imagery, and sexual attention or
30+
- The use of sexualized language or imagery, and sexual attention or
3131
advances of any kind
32-
* Trolling, insulting or derogatory comments, and personal or political attacks
33-
* Public or private harassment
34-
* Publishing others' private information, such as a physical or email
32+
- Trolling, insulting or derogatory comments, and personal or political attacks
33+
- Public or private harassment
34+
- Publishing others' private information, such as a physical or email
3535
address, without their explicit permission
36-
* Other conduct that could reasonably be considered inappropriate in a
36+
- Other conduct that could reasonably be considered inappropriate in a
3737
professional setting
3838

3939
## Enforcement Responsibilities
@@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
106106
### 4. Permanent Ban
107107

108108
**Community Impact**: Demonstrating a pattern of violation of community
109-
standards, including sustained inappropriate behavior, harassment of an
109+
standards, including sustained inappropriate behavior, harassment of an
110110
individual, or aggression toward or disparagement of classes of individuals.
111111

112112
**Consequence**: A permanent ban from any sort of public interaction within
@@ -116,13 +116,13 @@ the community.
116116

117117
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118118
version 2.0, available at
119-
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
119+
<https://www.contributor-covenant.org/version/2/0/code_of_conduct.html>.
120120

121121
Community Impact Guidelines were inspired by [Mozilla's code of conduct
122122
enforcement ladder](https://github.com/mozilla/diversity).
123123

124-
[homepage]: https://www.contributor-covenant.org
125-
126124
For answers to common questions about this code of conduct, see the FAQ at
127-
https://www.contributor-covenant.org/faq. Translations are available at
128-
https://www.contributor-covenant.org/translations.
125+
<https://www.contributor-covenant.org/faq>. Translations are available at
126+
<https://www.contributor-covenant.org/translations>.
127+
128+
[homepage]: https://www.contributor-covenant.org

‎CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@ This ensures you're working on the most current version of Lobe Chat. Stay fresh
8585

8686
Thank you for making Lobe Chat even more magical. We can't wait to see what you create! 🌠
8787

88-
Happy Coding! 🚀🦄
88+
Happy Coding! 🚀🦄

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ Please be aware that LobeChat is currently under active development, and feedbac
109109
![](https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/268670883-33c43a5c-a512-467e-855c-fa299548cce5.png)
110110

111111
#### `1` Function Calling Plugin System
112-
By establishing a versatile plugin system, ChatGPT becomes capable of delivering real-time news updates and enhancing your ability to interact with documents and e-commerce data more effectively. This extended functionality positions ChatGPT as a valuable resource across diverse domains. If you have an interest in creating plugins, we offer comprehensive component development documentation, software development kits (SDKs), and pre-made templates in the [🧩 Plugin System](#-Plugin-System) section below. Join us in our collective efforts to empower ChatGPT, making it both more potent and user-friendly.
113112

113+
By establishing a versatile plugin system, ChatGPT becomes capable of delivering real-time news updates and enhancing your ability to interact with documents and e-commerce data more effectively. This extended functionality positions ChatGPT as a valuable resource across diverse domains. If you have an interest in creating plugins, we offer comprehensive component development documentation, software development kits (SDKs), and pre-made templates in the [🧩 Plugin System](#-Plugin-System) section below. Join us in our collective efforts to empower ChatGPT, making it both more potent and user-friendly.
114114

115115
<br/>
116116

‎docs/Deploy-with-Azure-OpenAI.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ After completing the above field configuration, click on "Check". If the prompt
3737

3838
If you want the deployed version to be directly configured with Azure OpenAI for end users to use immediately, you need to configure the following environment variables at deployment:
3939

40-
| Environment Variable | Required | Description | Default Value | Example |
41-
| -------------------- | -------- | --------------------------------------------------------------------------------- | ------------------ | ------------------------------------------------------------- |
42-
| `USE_AZURE_OPENAI` | Yes | Set this value to `1` to enable Azure OpenAI configuration | - | `1` |
43-
| `AZURE_API_KEY` | Yes | This is the API key you applied for on the Azure OpenAI account page | - | `c55168be3874490ef0565d9779ecd5a6` |
44-
| `OPENAI_PROXY_URL` | Yes | Azure API address, can be found in the "Keys and Endpoints" section | - | `https://docs-test-001.openai.azure.com` |
40+
| Environment Variable | Required | Description | Default Value | Example |
41+
| -------------------- | -------- | --------------------------------------------------------------------------------- | ------------------ | -------------------------------------------------------------- |
42+
| `USE_AZURE_OPENAI` | Yes | Set this value to `1` to enable Azure OpenAI configuration | - | `1` |
43+
| `AZURE_API_KEY` | Yes | This is the API key you applied for on the Azure OpenAI account page | - | `c55168be3874490ef0565d9779ecd5a6` |
44+
| `OPENAI_PROXY_URL` | Yes | Azure API address, can be found in the "Keys and Endpoints" section | - | `https://docs-test-001.openai.azure.com` |
4545
| `AZURE_API_VERSION` | No | Azure's API version, follows the YYYY-MM-DD format | 2023-08-01-preview | `2023-05-15`, refer to [latest version][azure-api-version-url] |
46-
| `ACCESS_CODE` | No | Add a password to access this service, the password should be 6 digits or letters | - | `awCT74` or `e3@09!` |
46+
| `ACCESS_CODE` | No | Add a password to access this service, the password should be 6 digits or letters | - | `awCT74` or `e3@09!` |
4747

4848
> **Note**\
4949
> When you enable `USE_AZURE_OPENAI` on the server side, users will not be able to modify and use the OpenAI key in the front-end configuration.

‎docs/Home.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ LobeChat is a open-source, extensible ([Function Calling][fc-url]), high-perform
1414

1515
### 🤯 LobeChat Usage
1616

17-
- [Custom Agents Guide](Agents) | [自定义助手指南](Agents.zh-CN)
17+
- [Custom Agents Guide](Usage-Agents) | [助手自定义](Usage-Agents.zh-CN)
18+
- [Topics Guide](Usage-Topics) | [指南话题](Usage-Topics.zh-CN)
1819

1920
---
2021

@@ -45,6 +46,8 @@ LobeChat is a open-source, extensible ([Function Calling][fc-url]), high-perform
4546

4647
- [Lighthouse Report](Lighthouse) | [性能测试](Lighthouse.zh-CN)
4748

49+
---
50+
4851
<details><summary><h4>📝 License</h4></summary>
4952

5053
[![][fossa-license-shield]][fossa-license-url]

‎docs/Agents.md ‎docs/Usage-Agents.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
#### TOC
44

55
- [Adding Custom Agents](#adding-custom-agents)
6-
- [A. Add through the Agent Marketplace](#a-add-through-the-agent-marketplace)
7-
- [B. Create a Custom Agent](#b-create-a-custom-agent)
6+
- [`A` Add through the Agent Marketplace](#a-add-through-the-agent-marketplace)
7+
- [`B` Create a Custom Agent](#b-create-a-custom-agent)
88
- [Basic Concepts of Prompts](#basic-concepts-of-prompts)
99
- [How to write a structured prompt](#how-to-write-a-structured-prompt)
1010
- [How to improve quality and effectiveness](#how-to-improve-quality-and-effectiveness)
@@ -55,7 +55,7 @@ Generative AI is very useful, but it requires human guidance. In most cases, gen
5555
5656
Let's look at a basic example of a discussion question:
5757

58-
> *"What are the most urgent environmental issues our planet faces, and what can individuals do to help address these problems?"*
58+
> _"What are the most urgent environmental issues our planet faces, and what can individuals do to help address these problems?"_
5959
6060
We can turn this into a simple prompt by answering the following question upfront.
6161

@@ -88,7 +88,7 @@ After formulating effective prompts for discussion questions, you now need to re
8888

8989
A simple iteration method is to generate multiple outputs and examine them to understand the concepts and structure used by agent. Once the outputs have been evaluated, you can select the most suitable ones and combine them into a coherent answer. Another iterative approach is to start gradually and then expand step by step. This requires more than one prompt: an initial prompt for writing the first one or two paragraphs, followed by additional prompts to expand on the content already written. Here's a potential philosophical discussion prompt:
9090

91-
> *"Is mathematics invented or discovered? Explain your answer with careful reasoning."*
91+
> _"Is mathematics invented or discovered? Explain your answer with careful reasoning."_
9292
9393
Add it to a simple prompt like this:
9494

@@ -184,11 +184,11 @@ The presence penalty parameter can be seen as a punishment for repetitive conten
184184

185185
Frequency penalty is a mechanism that penalizes frequent occurrences of new vocabulary in the generated text, reducing the likelihood of the model repeating the same words. The higher the value, the more likely it is to reduce repeated words.
186186

187-
- `-2.0` When the morning news starts playing, I noticed that my TV now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now *(The most frequent word is "now" with a percentage of 44.79%)*
188-
- `-1.0` He always watches the news in the morning, watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching *(The most frequent word is "watching" with a percentage of 57.69%)*
189-
- `0.0` When the morning sun shines into the small restaurant, a tired mailman appears at the door, holding a bag of mail in his hand. The owner warmly prepares breakfast for him, and he starts sorting the mail while enjoying his breakfast. ***(The most frequent word is "the" with a percentage of 8.45%)***
190-
- `1.0` A deep sleep girl is awakened by a warm sunbeam. She sees the first ray of sunlight in the morning, surrounded by the sounds of birds and the fragrance of flowers, everything is full of vitality. *(The most frequent word is "the" with a percentage of 5.45%)*
191-
- `2.0` Every morning, he sits on the balcony to have breakfast. In the gentle sunset, everything looks very peaceful. However, one day, as he was about to pick up his breakfast, an optimistic little bird flew by, bringing him a good mood for the day. *(The most frequent word is "the" with a percentage of 4.94%)*
187+
- `-2.0` When the morning news starts playing, I noticed that my TV now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now now _(The most frequent word is "now" with a percentage of 44.79%)_
188+
- `-1.0` He always watches the news in the morning, watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching watching _(The most frequent word is "watching" with a percentage of 57.69%)_
189+
- `0.0` When the morning sun shines into the small restaurant, a tired mailman appears at the door, holding a bag of mail in his hand. The owner warmly prepares breakfast for him, and he starts sorting the mail while enjoying his breakfast. **_(The most frequent word is "the" with a percentage of 8.45%)_**
190+
- `1.0` A deep sleep girl is awakened by a warm sunbeam. She sees the first ray of sunlight in the morning, surrounded by the sounds of birds and the fragrance of flowers, everything is full of vitality. _(The most frequent word is "the" with a percentage of 5.45%)_
191+
- `2.0` Every morning, he sits on the balcony to have breakfast. In the gentle sunset, everything looks very peaceful. However, one day, as he was about to pick up his breakfast, an optimistic little bird flew by, bringing him a good mood for the day. _(The most frequent word is "the" with a percentage of 4.94%)_
192192

193193
## Further Reading
194194

File renamed without changes.

‎docs/Usage-Topics.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Topic Guide
2+
3+
#### TOC
4+
5+
- [Explanation of Agent and Topic Concepts](#explanation-of-agent-and-topic-concepts)
6+
- [User Guide](#user-guide)
7+
8+
## Explanation of Agent and Topic Concepts
9+
10+
In the official ChatGPT app, there is only the concept of topics, as shown in the figure, the sidebar contains the user's historical conversation topic list.
11+
12+
> **Note**
13+
>
14+
> However, in our use, we actually find that this mode has many problems, such as the information indexing of historical conversations is too scattered, and when dealing with some repetitive tasks, it is difficult to have a stable entrance. For example, I hope there is a stable entrance to allow ChatGPT to help me translate documents. In this mode, I need to constantly create new topics and then set the translation Prompt I created before. When there are high-frequency tasks, this will be a very low-efficiency interaction form.
15+
16+
![](https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/279602474-fe7cb3f3-8eb7-40d3-a69f-6615393bbd4e.png)
17+
18+
Therefore, in LobeChat, we introduced the concept of `Agent`. The agent is a complete functional module, and each agent has its own responsibilities and tasks. The agent can help you handle various tasks and provide professional advice and guidance.
19+
20+
At the same time, we index the topic into each agent. The advantage of this is that each agent has an independent topic list, you can choose the corresponding agent according to the current task, and quickly switch historical conversation records. This way is more in line with the user's use habits of common chat software, and improves the interaction efficiency.
21+
22+
![](https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/279602489-89893e61-2791-4083-9b57-ed80884ad58b.png)
23+
24+
<br/>
25+
26+
## User Guide
27+
28+
![](https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/279602496-fd72037a-735e-4cc2-aa56-2994bceaba81.png)
29+
30+
- **Save Topic:** During the chat, if you want to save the current context and start a new topic, you can click the save button next to the send button.
31+
- **Topic List:** Clicking on the topic in the list can quickly switch historical conversation records and continue the conversation. You can also click the star icon <kbd>⭐️</kbd> to bookmark the topic to the top, or rename and delete the topic through the more button on the right.

‎docs/Usage-Topics.zh-CN.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# 话题指南
2+
3+
#### TOC
4+
5+
- [助手与话题概念解析](#助手与话题概念解析)
6+
- [使用指南](#使用指南)
7+
8+
## 助手与话题概念解析
9+
10+
在 ChatGPT 官方应用中,只存在话题的概念,如图所示,在侧边栏中是用户的历史对话话题列表。
11+
12+
> **Note**
13+
>
14+
> 但在我们的使用过程中其实会发现这种模式存在很多问题,比如历史对话的信息索引过于分散问题,同时当处理一些重复任务时很难有一个稳定的入口,比如我希望有一个稳定的入口可以让 ChatGPT 帮助我翻译文档,在这个模式下,我需要不断新建新的话题同时再设置我之前创建好的翻译 Prompt 设定,当有高频任务存在时,这将是一个效率很低的交互形式。
15+
16+
![](https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/279602474-fe7cb3f3-8eb7-40d3-a69f-6615393bbd4e.png)
17+
18+
因此在 LobeChat 中,我们引入了 **助手** 的概念。助手是一个完整的功能模块,每个助手都有自己的职责和任务。助手可以帮助你处理各种任务,并提供专业的建议和指导。
19+
20+
与此同时,我们将话题索引到每个助手内部。这样做的好处是,每个助手都有一个独立的话题列表,你可以根据当前任务选择对应的助手,并快速切换历史对话记录。这种方式更符合用户对常见聊天软件的使用习惯,提高了交互的效率。
21+
22+
![](https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/279602489-89893e61-2791-4083-9b57-ed80884ad58b.png)
23+
24+
<br/>
25+
26+
## 使用指南
27+
28+
![](https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/279602496-fd72037a-735e-4cc2-aa56-2994bceaba81.png)
29+
30+
- \*\* 保存话题:\*\* 在聊天过程中,如果想要保存当前上下文并开启新的话题,可以点击发送按钮旁边的保存按钮。
31+
- 话题列表:点击列表中的话题可以快速切换历史对话记录,并继续对话。你还可以通过点击星标图标 <kbd>⭐️</kbd> 将话题收藏置顶,或者通过右侧更多按钮对话题进行重命名和删除操作。

‎docs/_Sidebar.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
#### 🤯 LobeChat Usage
88

9-
- [Custom Agents Guide](Agents) | [中文](Agents.zh-CN)
9+
- [Custom Agents Guide](Usage-Agents) | [中文](Usage-Agents.zh-CN)
10+
- [Topics Guide](Usage-Topics) | [中文](Usage-Topics.zh-CN)
1011

1112
#### 🛳 Self Hosting
1213

0 commit comments

Comments
 (0)
Please sign in to comment.