Skip to content

Commit

Permalink
feat(chat): update schema assistant prompt to handle empty and short …
Browse files Browse the repository at this point in the history
…prompts better VSCODE-648 (#874)
  • Loading branch information
gagik authored Nov 20, 2024
1 parent 8a20e2a commit ce1f763
Showing 1 changed file with 4 additions and 3 deletions.
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.
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

0 comments on commit ce1f763

Please sign in to comment.