-
Notifications
You must be signed in to change notification settings - Fork 25
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 <[email protected]>
- Loading branch information
Showing
27 changed files
with
614 additions
and
196 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
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
63 changes: 63 additions & 0 deletions
63
config/samples/app_retrievalqachain_knowledgebase_pgvector.yaml
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,63 @@ | ||
apiVersion: arcadia.kubeagi.k8s.com.cn/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: base-chat-with-knowledgebase-pgvector | ||
namespace: arcadia | ||
spec: | ||
displayName: "知识库应用" | ||
description: "最简单的和知识库对话的应用" | ||
prologue: "Welcome to talk to the KnowledgeBase!🤖" | ||
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-knowledgebase | ||
nextNodeName: ["chain-node"] | ||
- name: llm-node | ||
displayName: "zhipu大模型服务" | ||
description: "设定大模型的访问信息" | ||
ref: | ||
apiGroup: arcadia.kubeagi.k8s.com.cn | ||
kind: LLM | ||
name: app-shared-llm-service | ||
nextNodeName: ["chain-node"] | ||
- name: knowledgebase-node | ||
displayName: "使用的知识库" | ||
description: "要用哪个知识库" | ||
ref: | ||
apiGroup: arcadia.kubeagi.k8s.com.cn | ||
kind: KnowledgeBase | ||
name: knowledgebase-sample-pgvector | ||
nextNodeName: ["retriever-node"] | ||
- name: retriever-node | ||
displayName: "从知识库提取信息的retriever" | ||
description: "连接应用和知识库" | ||
ref: | ||
apiGroup: retriever.arcadia.kubeagi.k8s.com.cn | ||
kind: KnowledgeBaseRetriever | ||
name: base-chat-with-knowledgebase | ||
nextNodeName: ["chain-node"] | ||
- name: chain-node | ||
displayName: "RetrievalQA chain" | ||
description: "chain是langchain的核心概念,RetrievalQAChain用于从 retriever 中提取信息,供llm调用" | ||
ref: | ||
apiGroup: chain.arcadia.kubeagi.k8s.com.cn | ||
kind: RetrievalQAChain | ||
name: base-chat-with-knowledgebase | ||
nextNodeName: ["Output"] | ||
- name: Output | ||
displayName: "最终输出" | ||
description: "最终输出节点,必须" | ||
ref: | ||
kind: Output | ||
name: Output |
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
23 changes: 23 additions & 0 deletions
23
config/samples/arcadia_v1alpha1_knowledgebase_pgvector.yaml
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,23 @@ | ||
apiVersion: arcadia.kubeagi.k8s.com.cn/v1alpha1 | ||
kind: KnowledgeBase | ||
metadata: | ||
name: knowledgebase-sample-pgvector | ||
namespace: arcadia | ||
spec: | ||
displayName: "测试 KnowledgeBase" | ||
description: "测试 KnowledgeBase" | ||
embedder: | ||
kind: Embedders | ||
name: zhipuai-embedders-sample | ||
namespace: arcadia | ||
vectorStore: | ||
kind: VectorStores | ||
name: pgvector-sample | ||
namespace: arcadia | ||
fileGroups: | ||
- source: | ||
kind: VersionedDataset | ||
name: dataset-playground-v1 | ||
namespace: arcadia | ||
paths: | ||
- qa.csv |
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,14 @@ | ||
apiVersion: arcadia.kubeagi.k8s.com.cn/v1alpha1 | ||
kind: VectorStore | ||
metadata: | ||
name: pgvector-sample | ||
namespace: arcadia | ||
spec: | ||
displayName: "测试 PGVector VectorStore" | ||
description: "测试 PGvector VectorStore" | ||
pgvector: | ||
dataSourceRef: | ||
apiGroup: arcadia.kubeagi.k8s.com.cn | ||
kind: Datasource | ||
name: arcadia-postgresql | ||
namespace: arcadia |
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
Oops, something went wrong.