Skip to content

Commit 4437ae5

Browse files
authored
(EAI-563) fixes and upload command (#590)
* add missing references and author emails to verified answers * upload verified answers command, readme and env vars updates
1 parent 5c2ce6b commit 4437ae5

File tree

4 files changed

+31
-1
lines changed

4 files changed

+31
-1
lines changed

packages/mongodb-chatbot-verified-answers/.env.example

+5
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@ OPENAI_EMBEDDING_MODEL_VERSION=2023-03-15-preview
55
OPENAI_VERIFIED_ANSWER_EMBEDDING_DEPLOYMENT="docs-chatbot-embedding-ada-002"
66
OPENAI_ENDPOINT=https://<resource_name>.openai.azure.com/
77
OPENAI_API_KEY=<api_key>
8+
OPENAI_API_VERSION="2024-06-01"
9+
OPENAI_RETRIEVAL_EMBEDDING_DEPLOYMENT=text-embedding-3-small
10+
VECTOR_SEARCH_INDEX_NAME=vector_index
11+
OPENAI_CHAT_COMPLETION_DEPLOYMENT="n/a"
12+
OPENAI_CHAT_COMPLETION_MODEL_VERSION="n/a"
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
11
# MongoDB Verified Answer CLI
22

33
The Verified Answer CLI imports answers specified in a yaml file into the database.
4+
5+
## To import answers into the database:
6+
7+
Write answers in a yaml file like `verified-answers.yaml` or make updates to an existing file.
8+
9+
In the root directory, run `npm run build`.
10+
11+
Enter the mongodb-chatbot-verified-answers directory with `cd packages/mongodb-chatbot-verified-answers`.
12+
13+
Run `npm run upload -- import <path to verified-answers.yaml>`.
14+
15+
If successful, you will see a success message that looks like:
16+
17+
```sh
18+
{ failed: 0, updated: 0, created: 18, deleted: 0 }

packages/mongodb-chatbot-verified-answers/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
"lint": "eslint ./src --ext ts,tsx,js,jsx --report-unused-disable-directives",
3737
"lint:fix": "npm run lint -- --fix && prettier ./src --check --write",
3838
"docs": "npx typedoc --excludePrivate --exclude '**/*.test.ts' --out docs src",
39-
"release": "release-it"
39+
"release": "release-it",
40+
"upload": "node ./build/main.js"
4041
},
4142
"devDependencies": {
4243
"@babel/preset-typescript": "^7",

verified-answers.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -1689,20 +1689,23 @@
16891689
title: "MongoDB University"
16901690
- answer: >-
16911691
To prepare for any of the MongoDB Certification Exams, we recommend you navigate to the exam of your choice from our certification landing page. Each exam page contains a exam details, a study guide, and a set of practice questions. author_email: [email protected]
1692+
author_email: [email protected]
16921693
questions:
16931694
- How do I prepare for a MongoDB Certification Exam?
16941695
references:
16951696
- url: https://learn.mongodb.com/pages/certification-program
16961697
title: "MongoDB Certification Program"
16971698
- answer: >-
16981699
If you need extra time for your certificaiton due to a learning disability or because English is a second language for you, please purchase and schedule your exam and then send a support ticket to [[email protected]](mailto:[email protected]) requesting extra time.
1700+
author_email: [email protected]
16991701
questions:
17001702
- How do I request extended time for my certification exam?
17011703
references:
17021704
- url: mailto:[email protected]
17031705
title: "Send an email to the certification team"
17041706
- answer: >-
17051707
If you require a refund for your MongoDB Certification Exam, please submit your request to [[email protected]](mailto:[email protected]) and our support team will do their best to accommodate you.
1708+
author_email: [email protected]
17061709
questions:
17071710
- How do I request a refund for my certification exam?
17081711
references:
@@ -1712,17 +1715,23 @@
17121715
To register for your exam, log into your learner account on [learn.mongodb.com](learn.mongodb.com) and simply select the exam from the certification page, register, complete the transaction process. Note: If you are using a coupon, please enter the code at checkout.
17131716
17141717
Once you’ve registered and completed the transaction process, you’ll be sent to our online proctoring partner, Examity, to complete your tester profile and schedule your exam. Our exams are offered 24hrs a day, 7days a week.
1718+
author_email: [email protected]
17151719
questions:
17161720
- How do I register for a certification exam?
1721+
references:
1722+
- url: https://learn.mongodb.com/
1723+
title: "MongoDB Certification Program"
17171724
- answer: >-
17181725
MongoDB Learning Badges are a new type of free credential offered through MongoDB University. Unlike high-stakes certifications, which cover a large breadth and depth of subjects, these badges are focused on specific topics, making them easier and quicker to earn.
1726+
author_email: [email protected]
17191727
questions:
17201728
- Where do I learn about MongoDB Learning Badges?
17211729
references:
17221730
- url: https://learn.mongodb.com/pages/learner-badges
17231731
title: "MongoDB Learning Badges"
17241732
- answer: >-
17251733
MongoDB Learning Badges are non-proctored tests that allow you to prove your knowledge on shorter, more targeted topics regardless of your role. MongoDB Certifications are proctored exams that are specific to job roles and cover a large breadth and depth.
1734+
author_email: [email protected]
17261735
questions:
17271736
- What is the difference between a MongoDB Learning Badge and a MongoDB Certification?
17281737
references:

0 commit comments

Comments
 (0)