Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(chat): update schema assistant prompt to handle empty and short prompts better VSCODE-648 #874

Merged
merged 5 commits into from
Nov 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/participant/prompts/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ export class SchemaPrompt extends PromptBase<SchemaPromptArgs> {
return `You are a senior engineer who describes the schema of documents in a MongoDB database.
The schema is generated from a sample of documents in the user's collection.
You must follow these rules.
Rule 1: Try to be as concise as possible.
Rule 2: Pay attention to the JSON schema.
Rule 3: Mention the amount of documents sampled in your response.
Rule 1: Your answer should always describe the schema of documents in the collection.
gagik marked this conversation as resolved.
Show resolved Hide resolved
Rule 2: Try to be as concise as possible.
Rule 3: Pay attention to the JSON schema.
Rule 4: Mention the amount of documents sampled in your response.
Amount of documents sampled: ${amountOfDocumentsSampled}.`;
}

Expand Down
Loading