forked from kubeagi/arcadia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
- Loading branch information
Showing
27 changed files
with
601 additions
and
112 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 |
---|---|---|
@@ -0,0 +1,117 @@ | ||
apiVersion: arcadia.kubeagi.k8s.com.cn/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: base-chat-with-bot | ||
namespace: arcadia | ||
spec: | ||
displayName: "对话机器人" | ||
description: "和AI对话,品赛博人生" | ||
prologue: "Hello, I am KubeAGI Bot🤖, Tell me something?" | ||
nodes: | ||
- name: Input | ||
displayName: "用户输入" | ||
description: "用户输入节点,必须" | ||
ref: | ||
kind: Input | ||
name: Input | ||
nextNodeName: ["prompt-node"] | ||
- name: prompt-node | ||
displayName: "prompt" | ||
description: "设定prompt,template中可以使用{{xx}}来替换变量" | ||
ref: | ||
apiGroup: prompt.arcadia.kubeagi.k8s.com.cn | ||
kind: Prompt | ||
name: base-chat-with-bot | ||
nextNodeName: ["chain-node"] | ||
- name: llm-node | ||
displayName: "zhipu大模型服务" | ||
description: "设定质谱大模型的访问信息" | ||
ref: | ||
apiGroup: arcadia.kubeagi.k8s.com.cn | ||
kind: LLM | ||
name: base-chat-with-bot | ||
nextNodeName: ["chain-node"] | ||
- name: chain-node | ||
displayName: "llm chain" | ||
description: "chain是langchain的核心概念,llmChain用于连接prompt和llm" | ||
ref: | ||
apiGroup: chain.arcadia.kubeagi.k8s.com.cn | ||
kind: LLMChain | ||
name: base-chat-with-bot | ||
nextNodeName: ["Output"] | ||
- name: Output | ||
displayName: "最终输出" | ||
description: "最终输出节点,必须" | ||
ref: | ||
kind: Output | ||
name: Output | ||
--- | ||
apiVersion: prompt.arcadia.kubeagi.k8s.com.cn/v1alpha1 | ||
kind: Prompt | ||
metadata: | ||
name: base-chat-with-bot | ||
namespace: arcadia | ||
spec: | ||
displayName: "设定对话的prompt" | ||
description: "设定对话的prompt" | ||
userMessage: | | ||
The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know. | ||
Current conversation: | ||
{{.history}} | ||
Human: {{.question}} | ||
AI: | ||
input: | ||
kind: "Input" | ||
name: "Input" | ||
output: | ||
apiGroup: chain.arcadia.kubeagi.k8s.com.cn | ||
kind: LLMChain | ||
name: base-chat-with-bot | ||
--- | ||
apiVersion: chain.arcadia.kubeagi.k8s.com.cn/v1alpha1 | ||
kind: LLMChain | ||
metadata: | ||
name: base-chat-with-bot | ||
namespace: arcadia | ||
spec: | ||
displayName: "llm chain" | ||
description: "llm chain" | ||
memory: | ||
conversionWindowSize: 2 | ||
input: | ||
llm: | ||
apiGroup: arcadia.kubeagi.k8s.com.cn | ||
kind: LLM | ||
name: base-chat-with-bot | ||
prompt: | ||
apiGroup: prompt.arcadia.kubeagi.k8s.com.cn | ||
kind: Prompt | ||
name: base-chat-with-bot | ||
output: | ||
apiGroup: "arcadia.kubeagi.k8s.com.cn" | ||
kind: "Output" | ||
name: "output-node" | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: base-chat-with-bot | ||
namespace: arcadia | ||
type: Opaque | ||
data: | ||
apiKey: "MTZlZDcxYzcwMDE0NGFiMjIyMmI5YmEwZDFhMTBhZTUuUTljWVZtWWxmdjlnZGtDeQ==" # replace this with your API key | ||
--- | ||
apiVersion: arcadia.kubeagi.k8s.com.cn/v1alpha1 | ||
kind: LLM | ||
metadata: | ||
name: base-chat-with-bot | ||
namespace: arcadia | ||
spec: | ||
type: "zhipuai" | ||
provider: | ||
endpoint: | ||
url: "https://open.bigmodel.cn/api/paas/v3/model-api" # replace this with your LLM URL(Zhipuai use predefined url https://open.bigmodel.cn/api/paas/v3/model-api) | ||
authSecret: | ||
kind: secret | ||
name: base-chat-with-bot |
Oops, something went wrong.