-
Notifications
You must be signed in to change notification settings - Fork 64
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(participant): add disambiguation examples to answer MongoDB queries in Copilot #911
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seem to be nice examples! Do you know if they're looking to add a way where we can also differentiate between different commands, i.e. query? Could be great.
"How to convert this MongoDB query to Node.js?", | ||
"How to convert this MongoDB query to Go?", | ||
"How to convert this MongoDB query to php?", | ||
"How do I update documents in MongoDB?", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more complicated so doesn't need to be included necessarily but I often ask about a query like "How do I find all documents with name "Bob" in my MongoDB collection?"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if that wiill be frowned upon, but we could consider dropping the MongoDB there - How do I find all documents in my collection
- the terms document and collection are quite often associated with MongoDB and if they have the extension installed, it's very likely that they're interfacing on some level with a mongodb database.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I must say GitHub Copilot has been doing this automatic inference thing with other things and it always ends inferring something I did not want it to (I was looking to disable it completely) so my worry is that it'll be too permissive with the word "documents" in general. We can try this and test it out though, collections + documents is reasonable if it stays strict to it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It also might be a more common use case without the "How to" prefix, e.g. find all documents with name "bob" in my "test" collection
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed with y'all, I added "find all documents in my collection" example
"How do I stream data using MongoDB?", | ||
"How do I monitor change streams in MongoDB?", | ||
"How do I set up a MongoDB replica set for local development?" | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add some examlers about schema?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some more examples about schema!
Merging, thanks ya'll |
Description
Based on VS Code extension documentation for implementing chat participant detection (see: https://code.visualstudio.com/api/extension-guides/chat#implement-participant-detection), I've added some examples to detect prompts related to MongoDB that our Copilot extension can help answer.
We need more dedicated time to ensure the examples are stronger and cover more cases, however, I believe this should be a good starting point until then.
Checklist
Motivation and Context
Open Questions
Dependents
Types of changes