Skip to content

Commit 0208998

Browse files
authored
ChatQnA demo yaml files integration between GMC and Oneclick (#72)
* demo yaml files integration between gmc and oneclick. Signed-off-by: zhlsunshine <huailong.zhang@intel.com> remove bin files * change code based on comments. Signed-off-by: zhlsunshine <huailong.zhang@intel.com> * update redis service name. Signed-off-by: zhlsunshine <huailong.zhang@intel.com> * change yaml files based on comments. Signed-off-by: zhlsunshine <huailong.zhang@intel.com> * change redis vectorDB svc name. Signed-off-by: zhlsunshine <huailong.zhang@intel.com> * integrate with oneclick and complete the test on stag-opea-07. Signed-off-by: zhlsunshine <huailong.zhang@intel.com> --------- Signed-off-by: zhlsunshine <huailong.zhang@intel.com>
1 parent 6f687ef commit 0208998

21 files changed

+151
-1135
lines changed

microservices-connector/templates/MicroChatQnA/gmc-router.yaml microservices-connector/config/gmcrouter/gmc-router.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Copyright (C) 2024 Intel Corporation
22
# SPDX-License-Identifier: Apache-2.0
33

4+
5+
---
46
apiVersion: v1
57
kind: Service
68
metadata:
@@ -27,7 +29,7 @@ spec:
2729
labels:
2830
app: router-service
2931
spec:
30-
serviceAccountName: gmc-service-sa
32+
serviceAccountName: default
3133
containers:
3234
- name: router-server
3335
image: zhlsunshine/gmcrouter:latest

microservices-connector/templates/MicroChatQnA/gmc-manager-rbac.yaml microservices-connector/config/rbac/gmc-manager-rbac.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ rules:
2929
resources:
3030
- services
3131
- secrets
32+
- configmaps
3233
verbs:
3334
- create
3435
- delete

microservices-connector/config/samples/chatQnA.yaml

-106
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Copyright (C) 2024 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
apiVersion: gmc.opea.io/v1alpha3
5+
kind: GMConnector
6+
metadata:
7+
labels:
8+
app.kubernetes.io/name: gmconnector
9+
app.kubernetes.io/managed-by: kustomize
10+
name: chatqa
11+
namespace: chatqa
12+
spec:
13+
routerConfig:
14+
name: router
15+
serviceName: router-service
16+
nodes:
17+
root:
18+
routerType: Sequence
19+
steps:
20+
- name: Embedding
21+
internalService:
22+
serviceName: embedding-svc
23+
config:
24+
endpoint: /v1/embeddings
25+
- name: TeiEmbedding
26+
internalService:
27+
serviceName: tei-embedding-svc
28+
isDownstreamService: true
29+
- name: Retriever
30+
data: $response
31+
internalService:
32+
serviceName: retriever-svc
33+
config:
34+
endpoint: /v1/retrieval
35+
- name: VectorDB
36+
internalService:
37+
serviceName: redis-vector-db
38+
isDownstreamService: true
39+
- name: Reranking
40+
data: $response
41+
internalService:
42+
serviceName: reranking-svc
43+
config:
44+
endpoint: /v1/reranking
45+
- name: TeiReranking
46+
internalService:
47+
serviceName: tei-reranking-svc
48+
config:
49+
endpoint: /rerank
50+
isDownstreamService: true
51+
- name: Llm
52+
data: $response
53+
internalService:
54+
serviceName: llm-svc
55+
config:
56+
endpoint: /v1/chat/completions
57+
- name: Tgi
58+
internalService:
59+
serviceName: tgi-svc
60+
config:
61+
endpoint: /generate
62+
isDownstreamService: true

microservices-connector/config/samples/gmc_v1alpha3_gmconnector.yaml

-82
This file was deleted.

0 commit comments

Comments
 (0)