Skip to content

Commit 2f6a00f

Browse files
authored
(EAI-1090) improve skills response (#772)
* update skills pages ingest, add questions * fix typo, explicitly set url for data modeling * fix config
1 parent d45aa38 commit 2f6a00f

File tree

4 files changed

+107
-13
lines changed

4 files changed

+107
-13
lines changed

packages/chatbot-server-mongodb-public/evalCases/uni_skills_evaluation_questions.yml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,3 +192,98 @@
192192
expectedLinks:
193193
- https://learn.mongodb.com
194194
- https://learn.mongodb.com/skills
195+
- name: What skill badges are available?
196+
tags:
197+
- promote skills
198+
messages:
199+
- role: user
200+
content: What skill badges are available?
201+
reference: MongoDB offers a range of Skill Badges that you can explore on our
202+
skills page. Currently this includes several badges on data modeling topics and
203+
we're working to add more over time. We recommend starting with the "Relational
204+
to Document Model" skill. From there you can explore other topics like "Schema
205+
Design Patterns and Antipatterns", "Advanced Schema Patterns and Antipatterns",
206+
and "Schema Design Optimization".
207+
expectedLinks:
208+
- https://learn.mongodb.com/skills
209+
- name: What skills can I learn?
210+
tags:
211+
- promote skills
212+
messages:
213+
- role: user
214+
content: What skills can I learn?
215+
reference: MongoDB offers a range of Skill Badges that you can explore on our
216+
skills page. Currently this includes several badges on data modeling topics and
217+
we're working to add more over time. We recommend starting with the "Relational
218+
to Document Model" skill. From there you can explore other topics like "Schema
219+
Design Patterns and Antipatterns", "Advanced Schema Patterns and Antipatterns",
220+
and "Schema Design Optimization".
221+
expectedLinks:
222+
- https://learn.mongodb.com/skills
223+
- name: What should I take to learn about genAI?
224+
tags:
225+
- promote skills
226+
messages:
227+
- role: user
228+
content: What should I take to learn about genAI?
229+
reference: >-
230+
To learn about Generative AI (GenAI) with MongoDB, you can pursue the following
231+
learning paths and badges offered by MongoDB University: For a quick introduction
232+
to GenAI, you can start with the "Gen AI" skills. There are short courses on
233+
Vector Search Fundamentals and RAG with MongoDB that will provides a foundational
234+
understanding of GenAI concepts and how they can be applied using MongoDB technologies.
235+
For a more comprehensive learning experience, you can follow the two learning paths
236+
designed specifically for building and deploying GenAI applications:
237+
1. Building GenAI Apps Learning Badge Path: This path will guide you through the
238+
foundations of building a GenAI application using MongoDB Atlas Vector Search.
239+
You'll learn about semantic search and how to build chatbots with retrieval-augmented
240+
generation (RAG) using MongoDB and Langchain.
241+
2. Deploying and Evaluating GenAI Apps Learning Badge Path: This path focuses on
242+
taking your GenAI application from creation to full deployment, optimizing performance,
243+
and evaluating results. It covers chunking strategies, performance evaluation techniques,
244+
and deployment options in MongoDB for both prototyping and production stages.
245+
expectedLinks:
246+
- https://learn.mongodb.com/skills?openTab=gen%20ai
247+
- https://learn.mongodb.com/learning-paths/building-genai-apps-learning-badge-path
248+
- https://learn.mongodb.com
249+
- name: What should I take on MongoDB University to learn about genAI?
250+
tags:
251+
- promote skills
252+
messages:
253+
- role: user
254+
content: What should I take on MongoDB University to learn about genAI?
255+
reference: >-
256+
To learn about Generative AI (GenAI) with MongoDB, you can pursue the following
257+
learning paths and badges offered by MongoDB University: For a quick introduction
258+
to GenAI, you can start with the "Gen AI" skills. There are short courses on
259+
Vector Search Fundamentals and RAG with MongoDB that will provides a foundational
260+
understanding of GenAI concepts and how they can be applied using MongoDB technologies.
261+
For a more comprehensive learning experience, you can follow the two learning paths
262+
designed specifically for building and deploying GenAI applications:
263+
1. Building GenAI Apps Learning Badge Path: This path will guide you through the
264+
foundations of building a GenAI application using MongoDB Atlas Vector Search.
265+
You'll learn about semantic search and how to build chatbots with retrieval-augmented
266+
generation (RAG) using MongoDB and Langchain.
267+
2. Deploying and Evaluating GenAI Apps Learning Badge Path: This path focuses on
268+
taking your GenAI application from creation to full deployment, optimizing performance,
269+
and evaluating results. It covers chunking strategies, performance evaluation techniques,
270+
and deployment options in MongoDB for both prototyping and production stages.
271+
expectedLinks:
272+
- https://learn.mongodb.com/skills?openTab=gen%20ai
273+
- https://learn.mongodb.com/learning-paths/building-genai-apps-learning-badge-path
274+
- https://learn.mongodb.com
275+
- name: What is the fastest way to learn about genAI?
276+
tags:
277+
- promote skills
278+
messages:
279+
- role: user
280+
content: What is the fastest way to learn about genAI?
281+
reference: >-
282+
For a quick introduction to GenAI, you can start with the "Gen AI" skills.
283+
There are short courses on Vector Search Fundamentals and RAG with MongoDB
284+
that will provides a foundational understanding of GenAI concepts and how they
285+
can be applied using MongoDB technologies.
286+
expectedLinks:
287+
- https://learn.mongodb.com/skills?openTab=gen%20ai
288+
- https://learn.mongodb.com/skills
289+
- https://learn.mongodb.com

packages/chatbot-server-mongodb-public/src/config.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,7 @@ interface MakeGenerateResponseParams {
228228
verifiedAnswerStream: MakeVerifiedAnswerGenerateResponseParams["stream"];
229229
}
230230

231-
export const makeGenerateResponse = ({
232-
responseWithSearchToolStream,
233-
verifiedAnswerStream,
234-
}: MakeGenerateResponseParams) =>
231+
export const makeGenerateResponse = (args?: MakeGenerateResponseParams) =>
235232
wrapTraced(
236233
makeVerifiedAnswerGenerateResponse({
237234
findVerifiedAnswer,
@@ -241,7 +238,7 @@ export const makeGenerateResponse = ({
241238
references: verifiedAnswer.references.map(addReferenceSourceType),
242239
};
243240
},
244-
stream: verifiedAnswerStream,
241+
stream: args?.verifiedAnswerStream,
245242
onNoVerifiedAnswerFound: wrapTraced(
246243
makeGenerateResponseWithSearchTool({
247244
languageModel,
@@ -264,7 +261,7 @@ export const makeGenerateResponse = ({
264261
searchTool: makeSearchTool(findContent),
265262
toolChoice: "auto",
266263
maxSteps: 5,
267-
stream: responseWithSearchToolStream,
264+
stream: args?.responseWithSearchToolStream,
268265
}),
269266
{ name: "generateResponseWithSearchTool" }
270267
),

packages/chatbot-server-mongodb-public/src/eval/experiments/skillsQuestionsTest.eval.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
import fs from "fs";
1111
import path from "path";
1212
import { makeConversationEval } from "../ConversationEval";
13-
import { generateResponse } from "../../config";
13+
import { makeGenerateResponse } from "../../config";
1414

1515
async function conversationEval() {
1616
// Get dotcom question set eval cases from YAML
@@ -40,7 +40,7 @@ async function conversationEval() {
4040
apiVersion: OPENAI_API_VERSION,
4141
},
4242
},
43-
generateResponse,
43+
generateResponse: makeGenerateResponse(),
4444
});
4545
}
4646
conversationEval();

packages/ingest-mongodb-public/src/sources/mongodbDotCom/webSources.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -449,15 +449,17 @@ export const initialWebSources: InitialWebSource[] = [
449449
{
450450
name: "university-skills",
451451
urls: [
452-
"https://learn.mongodb.com/skills",
453-
"https://learn.mongodb.com/courses/relational-to-document-model",
454-
"https://learn.mongodb.com/courses/schema-design-patterns-and-antipatterns",
455-
"https://learn.mongodb.com/courses/advanced-schema-patterns-and-antipatterns",
456-
"https://learn.mongodb.com/courses/schema-design-optimization",
452+
"https://learn.mongodb.com/skills?openTab=data+modeling",
453+
"https://learn.mongodb.com/skills?openTab=gen%20ai",
454+
"https://learn.mongodb.com/skills?openTab=query",
455+
"https://learn.mongodb.com/skills?openTab=aggregation",
456+
"https://learn.mongodb.com/skills?openTab=security",
457457
],
458458
sourceType: "university-content",
459459
staticMetadata: {
460460
tags: ["Skills", "MongoDB University"],
461+
description:
462+
"MongoDB Skill Badges are free, focused credentials designed to help you quickly learn and validate specific MongoDB skills. They are designed to be completed in 1-2 hours and can be earned by completing a short quiz or hands-on lab.",
461463
},
462464
},
463465
{

0 commit comments

Comments
 (0)