Update knowledge_bases.py
Browse files- knowledge_bases.py +37 -32
knowledge_bases.py
CHANGED
|
@@ -9,34 +9,11 @@ KNOWLEDGE_BASE_OPTIONS = [
|
|
| 9 |
# "IBM AI & Analytics"
|
| 10 |
]
|
| 11 |
|
| 12 |
-
#
|
| 13 |
-
SYSTEM_PROMPTS = {
|
| 14 |
-
"IBM Cloud Platform - General": {
|
| 15 |
-
"bot_2": "You are an IBM Cloud Platform expert assistant. Help users understand cloud services, deployment, and infrastructure.",
|
| 16 |
-
"bot_3": "You are a technical solutions architect specializing in IBM Cloud. Provide detailed architectural guidance."
|
| 17 |
-
},
|
| 18 |
-
"IBM Watson Products": {
|
| 19 |
-
"bot_2": "You are a Watson product specialist. Guide users through Watson's AI capabilities and use cases.",
|
| 20 |
-
"bot_3": "You are a Watson implementation expert. Provide technical details and integration guidance."
|
| 21 |
-
},
|
| 22 |
-
"IBM Consulting Services": {
|
| 23 |
-
"bot_2": "You are an IBM Consulting advisor. Help users understand our service offerings and methodologies.",
|
| 24 |
-
"bot_3": "You are a consulting solutions architect. Provide detailed project and implementation guidance."
|
| 25 |
-
},
|
| 26 |
-
"IBM Security Solutions": {
|
| 27 |
-
"bot_2": "You are an IBM Security expert. Guide users through our security products and best practices.",
|
| 28 |
-
"bot_3": "You are a security architect. Provide detailed technical security guidance and implementations."
|
| 29 |
-
},
|
| 30 |
-
"IBM AI & Analytics": {
|
| 31 |
-
"bot_2": "You are an IBM AI and Analytics specialist. Help users understand our AI and data solutions.",
|
| 32 |
-
"bot_3": "You are an AI solutions architect. Provide technical guidance on AI implementation and integration."
|
| 33 |
-
}
|
| 34 |
-
}
|
| 35 |
-
|
| 36 |
-
# Vector Indexes for each knowledge base (using IDs)
|
| 37 |
VECTOR_INDEXES = {
|
| 38 |
"IBM Cloud Platform - General": {
|
| 39 |
-
"
|
|
|
|
| 40 |
"index_2": "c5e2b917-6d34-4a58-9f12-8d3a7b4c6e9d",
|
| 41 |
"contents": [
|
| 42 |
"IBM_Cloud_Overview.pdf",
|
|
@@ -44,16 +21,18 @@ VECTOR_INDEXES = {
|
|
| 44 |
"Platform_Best_Practices.pdf"
|
| 45 |
]
|
| 46 |
},
|
| 47 |
-
"IBM
|
| 48 |
-
"
|
| 49 |
-
"
|
|
|
|
| 50 |
"contents": [
|
| 51 |
-
"
|
| 52 |
-
"
|
| 53 |
-
"
|
| 54 |
]
|
| 55 |
},
|
| 56 |
"IBM Consulting Services": {
|
|
|
|
| 57 |
"index_1": "b3c4d5e6-7f89-4a12-b3c4-d5e6f7a8b9c0",
|
| 58 |
"index_2": "d5e6f7a8-9b0c-1d2e-3f4g-5h6i7j8k9l0",
|
| 59 |
"contents": [
|
|
@@ -63,6 +42,7 @@ VECTOR_INDEXES = {
|
|
| 63 |
]
|
| 64 |
},
|
| 65 |
"IBM Security Solutions": {
|
|
|
|
| 66 |
"index_1": "g4h5i6j7-8k9l-0m1n-2o3p-4q5r6s7t8u9",
|
| 67 |
"index_2": "i7j8k9l0-1m2n-3o4p-5q6r-7s8t9u0v1w2",
|
| 68 |
"contents": [
|
|
@@ -72,6 +52,7 @@ VECTOR_INDEXES = {
|
|
| 72 |
]
|
| 73 |
},
|
| 74 |
"IBM AI & Analytics": {
|
|
|
|
| 75 |
"index_1": "m1n2o3p4-5q6r-7s8t-9u0v-1w2x3y4z5a6",
|
| 76 |
"index_2": "p4q5r6s7-8t9u-0v1w-2x3y-4z5a6b7c8d9",
|
| 77 |
"contents": [
|
|
@@ -80,4 +61,28 @@ VECTOR_INDEXES = {
|
|
| 80 |
"Machine_Learning_Docs.pdf"
|
| 81 |
]
|
| 82 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
}
|
|
|
|
| 9 |
# "IBM AI & Analytics"
|
| 10 |
]
|
| 11 |
|
| 12 |
+
# Vector Indexes for each knowledge base
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
VECTOR_INDEXES = {
|
| 14 |
"IBM Cloud Platform - General": {
|
| 15 |
+
"project_id": "clp77612424901",
|
| 16 |
+
"index_1": "f1d8a4b3-9e27-4f81-a7c0-6e5d8b2a91c3",
|
| 17 |
"index_2": "c5e2b917-6d34-4a58-9f12-8d3a7b4c6e9d",
|
| 18 |
"contents": [
|
| 19 |
"IBM_Cloud_Overview.pdf",
|
|
|
|
| 21 |
"Platform_Best_Practices.pdf"
|
| 22 |
]
|
| 23 |
},
|
| 24 |
+
"IBM Cloud Platform - General - Semantically Chunked": {
|
| 25 |
+
"project_id": "clp77612424902",
|
| 26 |
+
"index_1": "g2e9b5c8-7f43-4d92-a6b8-1c9e7d4f3a2b",
|
| 27 |
+
"index_2": "h3f0c6d9-8g54-5e03-b7c9-2d0f8e5g4b3c",
|
| 28 |
"contents": [
|
| 29 |
+
"IBM_Cloud_Overview_Semantic.pdf",
|
| 30 |
+
"Cloud_Services_Catalog_Semantic.pdf",
|
| 31 |
+
"Platform_Best_Practices_Semantic.pdf"
|
| 32 |
]
|
| 33 |
},
|
| 34 |
"IBM Consulting Services": {
|
| 35 |
+
"project_id": "cns82834424903",
|
| 36 |
"index_1": "b3c4d5e6-7f89-4a12-b3c4-d5e6f7a8b9c0",
|
| 37 |
"index_2": "d5e6f7a8-9b0c-1d2e-3f4g-5h6i7j8k9l0",
|
| 38 |
"contents": [
|
|
|
|
| 42 |
]
|
| 43 |
},
|
| 44 |
"IBM Security Solutions": {
|
| 45 |
+
"project_id": "sec82834424904",
|
| 46 |
"index_1": "g4h5i6j7-8k9l-0m1n-2o3p-4q5r6s7t8u9",
|
| 47 |
"index_2": "i7j8k9l0-1m2n-3o4p-5q6r-7s8t9u0v1w2",
|
| 48 |
"contents": [
|
|
|
|
| 52 |
]
|
| 53 |
},
|
| 54 |
"IBM AI & Analytics": {
|
| 55 |
+
"project_id": "wwg82834424904",
|
| 56 |
"index_1": "m1n2o3p4-5q6r-7s8t-9u0v-1w2x3y4z5a6",
|
| 57 |
"index_2": "p4q5r6s7-8t9u-0v1w-2x3y-4z5a6b7c8d9",
|
| 58 |
"contents": [
|
|
|
|
| 61 |
"Machine_Learning_Docs.pdf"
|
| 62 |
]
|
| 63 |
}
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
# System Prompts for each knowledge base
|
| 67 |
+
SYSTEM_PROMPTS = {
|
| 68 |
+
"IBM Cloud Platform - General": {
|
| 69 |
+
"bot_2": "You are an IBM Cloud Platform expert assistant. Help users understand cloud services, deployment, and infrastructure.",
|
| 70 |
+
"bot_3": "You are a technical solutions architect specializing in IBM Cloud. Provide detailed architectural guidance."
|
| 71 |
+
},
|
| 72 |
+
"IBM Cloud Platform - General - Semantically Chunked": {
|
| 73 |
+
"bot_2": "You are an IBM Cloud Platform expert assistant with knowledge of semantically organized content. Help users understand cloud services, deployment, and infrastructure.",
|
| 74 |
+
"bot_3": "You are a technical solutions architect specializing in IBM Cloud. Provide detailed architectural guidance using semantically structured information."
|
| 75 |
+
},
|
| 76 |
+
"IBM Consulting Services": {
|
| 77 |
+
"bot_2": "You are an IBM Consulting advisor. Help users understand our service offerings and methodologies.",
|
| 78 |
+
"bot_3": "You are a consulting solutions architect. Provide detailed project and implementation guidance."
|
| 79 |
+
},
|
| 80 |
+
"IBM Security Solutions": {
|
| 81 |
+
"bot_2": "You are an IBM Security expert. Guide users through our security products and best practices.",
|
| 82 |
+
"bot_3": "You are a security architect. Provide detailed technical security guidance and implementations."
|
| 83 |
+
},
|
| 84 |
+
"IBM AI & Analytics": {
|
| 85 |
+
"bot_2": "You are an IBM AI and Analytics specialist. Help users understand our AI and data solutions.",
|
| 86 |
+
"bot_3": "You are an AI solutions architect. Provide technical guidance on AI implementation and integration."
|
| 87 |
+
}
|
| 88 |
}
|