-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update documentation and improve site configuration
- Update model platform configuration guides for New Bing, Google Gemini, and Faiss - Add general vector database introduction and configuration guide - Improve site-wide links and navigation - Update homepage features description - Refactor some code structures for better maintainability
- Loading branch information
1 parent
3b64973
commit ef5be08
Showing
17 changed files
with
3,002 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,4 @@ node_modules/ | |
.vercel | ||
package-lock.json | ||
docs/.vitepress/cache | ||
docs/.vitepress/dist | ||
yarn.lock | ||
docs/.vitepress/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"cSpell.words": ["newbing", "onappear", "vectorstore"], | ||
"cSpell.words": ["newbing", "Ollama", "onappear", "vectorstore"], | ||
"typescript.tsdk": "node_modules/typescript/lib" | ||
} |
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,8 @@ | |
vertical-align: middle; | ||
} | ||
|
||
|
||
|
||
/* 背景模糊 */ | ||
:root { | ||
--vp-nav-bg-color: var(--vp-c-bg); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,23 @@ | ||
# 向量数据库 | ||
|
||
## 介绍 | ||
向量数据库是一种专门用于存储、检索和管理高维向量数据的数据库。目前在 ChatLuna 中用于存储长期记忆。 | ||
|
||
向量数据库是一种专门用于存储、检索和管理高维向量数据的数据库。在 ChatLuna 中用于存储长期记忆。 | ||
## 安装 | ||
|
||
前往 Koishi 插件市场,搜索 `chatluna-vector-database-service`,并安装。 | ||
|
||
此插件还需要配置后才能使用,你可以在安装后阅读插件的使用说明,按照其介绍进行配置相应的数据库。 | ||
|
||
## 支持的数据库 | ||
|
||
我们目前支持接入(使用)以下向量数据库: | ||
|
||
- [Faiss](./faiss.md) | ||
- [Redis](./redis.md) | ||
- [LanceDB](./lancedb.md) | ||
- [LanceDB](./lancedb.md) | ||
|
||
## 使用 | ||
|
||
配置好任一向量数据库后,即可在主插件的配置项中[选择](../useful-configurations#defaultvectorstore)配置好了的向量数据库。 | ||
|
||
也可使用指令设置默认向量数据库,详见[嵌入模型和向量数据库管理](../useful-commands.md#嵌入模型和向量数据库管理)。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,29 @@ | ||
# 插件介绍 | ||
# 介绍 | ||
|
||
[ChatLuna](https://github.com/ChatLunaLab/chatluna) 是一款基于 [LangChain](https://github.com/hwchase17/langchainjs) 的语言模型聊天服务插件,运行在 [Koishi](https://koishi.chat/zh-CN/) 上。 | ||
[ChatLuna](https://github.com/ChatLunaLab/chatluna) 是一款强大的语言模型聊天服务插件,基于 [LangChain](https://github.com/langchain-ai/langchainjs) 开发,目前作为 [Koishi](https://koishi.chat/zh-CN/) 上的插件存在。ChatLuna 支持与多种主流大语言模型进行交互,如 OpenAI、Google Gemini 和 Claude 等。 | ||
|
||
它可以让用户与目前流行的语言模型或平台进行聊天互动,如 OpenAI(API)、New Bing、ChatGLM 等。项目底层和语言模型交互的模块基于 LangChain,其他 Koishi 插件开发者也可以使用此项目提供的 [LangChain Model](https://js.langchain.com/docs/modules/models/chat/) 和大语言模型进行交互。 | ||
ChatLuna 不仅为用户提供了模型聊天功能,还为其他 Koishi 插件开发者提供了便捷的 [LangChain Model](https://js.langchain.com/docs/concepts/#chat-models) 接口,方便他们与大语言模型进行交互和扩展开发。 | ||
|
||
## 特性 | ||
|
||
- 高扩展性:利用 LangChain 和 Koishi 提供的扩展 API,第三方插件开发者可以轻松地扩展或调用此项目的服务,如添加新的语言模型、调用语言模型等。 | ||
- 预设系统:支持设置会话预设,调整模型的行为和风格。 | ||
- 黑名单系统:支持全局冷却时间和模型并发请求限制,以及按小时的模型调用额度限制,方便管理模型的调用限额等。 | ||
- 多媒体回复:支持语音/文字/图片/图文混合回复,也支持解析生成的 Markdown,实现自然地分割成多条消息来发送。 | ||
- 上下文对话:支持长期记忆功能(需要适配器支持),让模型能够记住用户的信息和偏好。 | ||
- 三种聊天模式:`chat`、`browsing`、`plugin`,后两种模式可以让模型调用外部提供的某些工具,使得模型能够获取到外部信息。 | ||
- 内容安全过滤:基于 Koishi 的 [censor](https://censor.koishi.chat/) 服务,防止模型返回不良内容。 | ||
- 🔌 高度可扩展:轻松添加新的语言模型或调用现有服务。 | ||
- 🎭 灵活的预设系统:自定义会话预设,精确调整模型行为。 | ||
- 🔒 智能资源管理:支持全局冷却、并发限制和调用额度控制。 | ||
- 🖼️ 多媒体交互:支持语音、文字、图片及混合形式的回复。 | ||
- 🧠 上下文感知:支持聊天记录保存与长期记忆,提供个性化体验。 | ||
- 🔀 多种聊天模式:提供 chat、browsing 和 plugin 三种模式。browsing 可以联网感知消息,plugin 则可以让模型调用各种工具。 | ||
- 🛡️ 内容安全:集成 Koishi 的 censor 服务,过滤不良内容。 | ||
|
||
## 下一步 | ||
|
||
- 快速上手:参考 [快速上手](/guide/getting-started) 来入门 ChatLuna。 | ||
- 指令列表:参考 [指令列表](/guide/useful-commands) 来了解 ChatLuna 可用的指令或某个指令的用法。 | ||
- 配置项:参考 [配置项](/guide/useful-configurations.html) 来了解 ChatLuna 主插件的所有配置项。 | ||
- 配置模型平台:参考 [配置模型平台](/guide/configure-model-platform/introduction.html) 来了解如何配置某个语言模型平台。 | ||
- 开发指南:如果您是第三方插件开发者,请参考 [开发指南](/development/introduction) 来了解如何接入或使用 ChatLuna 提供的相关 API。 | ||
- 帮助和贡献:如果您想要帮助我们完善或翻译文档,请在 Github 上 Fork 文档项目后提交 PR。[项目地址](https://github.com/ChatLunaLab/doc) | ||
想要使用 ChatLuna,请阅读[快速上手](/guide/getting-started)指南。 | ||
|
||
要了解 ChatLuna 的所有可用指令及其用法,请参考[指令列表](/guide/useful-commands)。 | ||
|
||
如需深入了解 ChatLuna 的配置选项,请查看[配置说明](/guide/useful-configurations.html)。 | ||
|
||
要学习如何配置特定的语言模型平台,请参阅[模型配置](/guide/configure-model-platform/introduction.html)指南。 | ||
|
||
对于第三方插件开发者,我们提供了详细的[开发文档](/development/introduction),帮助您集成和使用 ChatLuna 的 API。 | ||
|
||
如果您希望为 ChatLuna 的文档做出贡献,欢迎查看我们的[贡献指南](https://github.com/ChatLunaLab/doc)并提交 PR。 |
Oops, something went wrong.