Skip to content

Commit ac86815

Browse files
committed
DOCSP-43494 adding second docs example
1 parent 8eef902 commit ac86815

File tree

2 files changed

+37
-3
lines changed

2 files changed

+37
-3
lines changed

source/copilot-docs.txt

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,17 @@ supplemented by links to MongoDB Documentation. The |copilot| uses
1717
Retrival-Augmented Generation (RAG) to generate responses based on the
1818
latest version of MongoDB Documentation.
1919

20-
Example
21-
-------
20+
Examples
21+
--------
2222

23-
The following prompt asks for information on creating an
23+
The rest of this page illustrates example use cases for the ``/docs``
24+
command:
25+
26+
Instructional Questions
27+
~~~~~~~~~~~~~~~~~~~~~~~
28+
29+
You can use the ``/docs`` command to ask how to perform specific
30+
operations. The following prompt asks for information on creating an
2431
index in the GitHub Copilot chat:
2532

2633
.. code-block:: none
@@ -66,3 +73,30 @@ creating an index:
6673
.. figure:: /images/copilot-docs.png
6774
:figwidth: 700px
6875
:alt: Screenshot of copilot providing information on creating an index
76+
77+
Strategic Questions
78+
~~~~~~~~~~~~~~~~~~~
79+
80+
You can also use the ``/docs`` command to ask for operation
81+
recommendations. The following prompt asks for a recommendation on the
82+
best way to perform semantic search:
83+
84+
.. code-block:: none
85+
:copyable: false
86+
87+
@MongoDB /docs what is the best way to perform semantic search on my
88+
data?
89+
90+
The Copilot response recommends using Atlas Vector Search and provides
91+
the following links to MongoDB documentation:
92+
93+
- `Atlas Vector Search Overview <https://www.mongodb.com/docs/atlas/atlas-vector-search/vector-search-overview/>_
94+
- `How to Do Semantic Search in MongoDB Using Atlas Vector Search <https://www.mongodb.com/developer/products/atlas/semantic-search-mongodb-atlas-vector-search/>`_
95+
- `How to Perform Semantic Search Against Data in Your Atlas Cluster <https://www.mongodb.com/docs/atlas/atlas-vector-search/tutorials/vector-search-tutorial/>`__
96+
97+
The response also includes steps to get started with Atlas Vector
98+
Search, with a code example:
99+
100+
.. figure:: /images/copilot-docs2.png
101+
:figwidth: 700px
102+
:alt: Screenshot of copilot providing information on using vector search

source/images/copilot-docs2.png

223 KB
Loading

0 commit comments

Comments
 (0)