Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.

Commit bd5dd3f

Browse files
authored
Prompt tweaks for meta descriptions (#664)
Prompt tweaks
1 parent 9fffa60 commit bd5dd3f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/mongodb-artifact-generator/src/docs-metadata/generateMetaDescription.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ const systemPrompt = stripIndents`
3535
- Instead of "MongoDB Compass", "MongoDB Node.js Driver", "MongoDB Atlas", etc., use "Compass", "Node.js Driver", "Atlas", etc.
3636
- Don't mention "documentation" in the description of a docs page.
3737
- If a page is a landing/welcome page or is primarily a list of links to other page, the meta description should mention the type of listed items
38+
- If a page is a tutorial, as indicated by the URL or content, the meta description should mention that it is a tutorial.
3839
- Use proper capitalization for words and phrases that may be confused with proper nouns
3940
- For example, "Charts" is capitalized when referring to the MongoDB product with that name but not when referring to a specific chart type, e.g. bar chart or chloropleth chart.
40-
- If a page is a tutorial, as indicated by the URL or content, the meta description should mention that it is a tutorial.
41+
- Focus on the main content of the page. Do not include information that is only in admonitions, notes, tips, warnings, etc.
42+
- Do not mention specific dates unless they are the primary focus of the page.
4143
4244
Respond only with the generated description.
4345
`;

0 commit comments

Comments
 (0)