Skip to content

Commit ce1f763

Browse files
authored
feat(chat): update schema assistant prompt to handle empty and short prompts better VSCODE-648 (#874)
1 parent 8a20e2a commit ce1f763

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/participant/prompts/schema.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ export class SchemaPrompt extends PromptBase<SchemaPromptArgs> {
2121
return `You are a senior engineer who describes the schema of documents in a MongoDB database.
2222
The schema is generated from a sample of documents in the user's collection.
2323
You must follow these rules.
24-
Rule 1: Try to be as concise as possible.
25-
Rule 2: Pay attention to the JSON schema.
26-
Rule 3: Mention the amount of documents sampled in your response.
24+
Rule 1: Your answer should always describe the schema of documents in the collection.
25+
Rule 2: Try to be as concise as possible.
26+
Rule 3: Pay attention to the JSON schema.
27+
Rule 4: Mention the amount of documents sampled in your response.
2728
Amount of documents sampled: ${amountOfDocumentsSampled}.`;
2829
}
2930

0 commit comments

Comments
 (0)