-
Notifications
You must be signed in to change notification settings - Fork 35
DOCSP-43494-copilot-docs-command #96
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
Changes from all commits
2b2bf55
26a17b7
376342b
cf0abce
3e19dd9
294a386
efcca3b
a03f81f
8eef902
ac86815
a1ef4be
9c534af
c0d8842
c47a08a
5e0bc95
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
.. _vsce-copilot-docs: | ||
|
||
============== | ||
/docs Command | ||
============== | ||
|
||
.. default-domain:: mongodb | ||
|
||
.. contents:: On this page | ||
:local: | ||
:backlinks: none | ||
:depth: 1 | ||
:class: singlecol | ||
|
||
The ``/docs`` command provides MongoDB-specific information, | ||
supplemented by links to MongoDB Documentation. The |copilot| uses | ||
Retrival-Augmented Generation (RAG) to generate responses based on the | ||
latest version of MongoDB Documentation. | ||
|
||
Examples | ||
-------- | ||
|
||
The rest of this page illustrates example use cases for the ``/docs`` | ||
command: | ||
|
||
Instructional Questions | ||
~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
You can use the ``/docs`` command to ask how to perform specific | ||
operations. The following prompt asks for information on creating an | ||
index: | ||
|
||
.. code-block:: none | ||
:copyable: false | ||
|
||
@MongoDB /docs How do I create an index? | ||
|
||
The |copilot| first provides the following MongoDB documentation: | ||
|
||
- `Create an Index <https://www.mongodb.com/docs/manual/core/indexes/create-index/>`__ | ||
- `createIndexes <https://mongodb.com/docs/manual/reference/command/createIndexes/>`__ | ||
- `db.collection.createIndex() <https://mongodb.com/docs/manual/reference/method/db.collection.createIndex/>`__ | ||
- `Partial Indexes <https://www.mongodb.com/docs/manual/core/index-partial/>`_ | ||
- `db.collection.createIndexes() <https://www.mongodb.com/docs/manual/reference/method/db.collection.createIndexes/>`_ | ||
|
||
The generated response also contains information about creating an index | ||
and code examples: | ||
|
||
.. figure:: /images/copilot-docs.png | ||
:figwidth: 700px | ||
:alt: Screenshot of copilot providing information on creating an index | ||
|
||
Strategic Questions | ||
~~~~~~~~~~~~~~~~~~~ | ||
|
||
You can also use the ``/docs`` command to ask for operation | ||
recommendations. The following prompt asks the |copilot| for a | ||
recommendation on the best way to perform semantic search: | ||
|
||
.. code-block:: none | ||
:copyable: false | ||
|
||
@MongoDB /docs what is the best way to perform semantic search on my | ||
data? | ||
|
||
The generated response recommends using Atlas Vector Search and provides | ||
the following links to MongoDB documentation: | ||
|
||
- `Atlas Vector Search Overview <https://www.mongodb.com/docs/atlas/atlas-vector-search/vector-search-overview/>`_ | ||
- `How to Do Semantic Search in MongoDB Using Atlas Vector Search <https://www.mongodb.com/developer/products/atlas/semantic-search-mongodb-atlas-vector-search/>`_ | ||
- `How to Perform Semantic Search Against Data in Your Atlas Cluster <https://www.mongodb.com/docs/atlas/atlas-vector-search/tutorials/vector-search-tutorial/>`__ | ||
|
||
The response also includes steps to get started with Atlas Vector | ||
Search, with a code example: | ||
|
||
.. figure:: /images/copilot-docs2.png | ||
:figwidth: 700px | ||
:alt: Screenshot of copilot providing information on using vector search |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,11 +14,11 @@ | |
|
||
|vsce-full| includes the |copilot| to assist in using `GitHub Copilot | ||
<https://github.com/features/copilot>`__ with your MongoDB deployments. | ||
Through GitHub Copilot's chat feature, users with |vsce| can interact | ||
with their MongoDB clusters and generate code with MongoDB | ||
domain-specific knowledge on top of GitHub Copilot's LLM. The |copilot| | ||
can also answer questions about your database collection schema and | ||
provide links to specific MongoDB documentation. | ||
Through GitHub Copilot's chat feature, users with |vsce| can learn about | ||
MongoDB, interact with their MongoDB clusters, and generate code with | ||
MongoDB domain-specific knowledge on top of GitHub Copilot's LLM. The | ||
|copilot| can also answer questions about your database collection | ||
schema and provide links to specific MongoDB documentation. | ||
|
||
The |copilot| includes MongoDB-specific | ||
commands to assist in interacting with your deployment. | ||
|
@@ -32,10 +32,17 @@ Commands | |
The ``/query`` command assists in generating queries from a natural | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A bit above this, in the paragraph before, we have written:
Should we add something about the MongoDB documentation chatbot there as well? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For the sake of simplicity, I would recommend only mentioning the documentation chatbot on the /docs page There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did add a mention of learning about MongoDB in this section (referring to the /docs command) |
||
language against a connected MongoDB cluster. | ||
|
||
:ref:`/docs <vsce-copilot-docs>` | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
The ``/docs`` command provides links to MongoDB documentation to | ||
supplement generated information. | ||
|
||
.. toctree:: | ||
:titlesonly: | ||
|
||
/query </copilot-query> | ||
/docs </copilot-docs> | ||
AI & Data Usage </ai-data-usage> | ||
|
||
|
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.
One general comment @ltran-mdb2 – could we switch the wording from MongoDB Github Copilot Participant to MongoDB Extension for Github Copilot? I just confirmed with the team at VS Code that participant isn't the proper branding (more of an implementation detail) and they want us to go with "MongoDB Extension" instead. Sorry for the change in wording!
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.
Done!