Skip to content

Commit

Permalink
DOCSP-45448-compass-constants (#699)
Browse files Browse the repository at this point in the history
* DOCSP-45448-compass-constants

* revert connect pages

* revert pages from connect - install

* *

* *

* *
  • Loading branch information
ajhuh-mdb authored Nov 26, 2024
1 parent 66a648b commit b1c8016
Show file tree
Hide file tree
Showing 23 changed files with 80 additions and 81 deletions.
6 changes: 3 additions & 3 deletions source/collections.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.. _compass-collection-tab:
.. _compass-collections:

=============================
Manage Collections in Compass
=============================
=====================================
Manage Collections in |compass-short|
=====================================

.. default-domain:: mongodb

Expand Down
6 changes: 3 additions & 3 deletions source/databases.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.. _compass-database-tab:
.. _compass-dbs:

===========================
Manage Databases in Compass
===========================
===================================
Manage Databases in |compass-short|
===================================

.. default-domain:: mongodb

Expand Down
8 changes: 4 additions & 4 deletions source/documents.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.. _compass-documents:
.. _compass-docs:

===========================
Manage Documents in Compass
===========================
===================================
Manage Documents in |compass-short|
===================================

.. default-domain:: mongodb

Expand All @@ -25,7 +25,7 @@ documents in your selected collection or view.

.. note::

For query result sets larger than 20 documents, Compass shows
For query result sets larger than 20 documents, |compass-short| shows
paginated results. By default, pages display 20 documents at a time.

.. END-COMPASS-ONLY
Expand Down
8 changes: 4 additions & 4 deletions source/documents/delete-multiple.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Delete Multiple Documents
:depth: 1
:class: singlecol

You can perform bulk delete operations on multiple documents in Compass
You can perform bulk delete operations on multiple documents in |compass-short|
by using the :guilabel:`Delete Documents` modal. This helps you visualize
deletes before applying them.

Expand All @@ -32,8 +32,8 @@ Before you Begin
----------------

The :guilabel:`Delete Documents` modal is available starting
in Compass version ``1.42.0``. For instructions on updating or installing
the latest Compass version, see :ref:`download-install`.
in |compass-short| version ``1.42.0``. For instructions on updating or installing
the latest |compass-short| version, see :ref:`download-install`.

.. END-COMPASS-ONLY

Expand Down Expand Up @@ -108,7 +108,7 @@ Steps
#. Click the red :guilabel:`Delete Documents` button to confirm
the operation.

Compass deletes the documents that match the filter
|compass-short| deletes the documents that match the filter
expression.

Example
Expand Down
4 changes: 2 additions & 2 deletions source/documents/delete.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ documents in List, JSON, or Table view:
|compass-short| asks for confirmation that you want to remove the
document.

Once you confirm, Compass deletes the document from the collection.
Once you confirm, |compass-short| deletes the document from the collection.

Delete Multiple Documents
-------------------------

You can use the bulk delete operations workflow to delete multiple
documents in Compass. For details, see :ref:`compass-bulk-delete`.
documents in |compass-short|. For details, see :ref:`compass-bulk-delete`.

.. BEGIN-COMPASS-ONLY
.. note::
Expand Down
10 changes: 5 additions & 5 deletions source/documents/modify-multiple.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Modify Multiple Documents
:depth: 1
:class: singlecol

You can perform bulk update operations on multiple documents in Compass
You can perform bulk update operations on multiple documents in |compass-short|
by using the :guilabel:`Update Documents` modal. Performing updates with
the :guilabel:`Update Documents` modal helps you visualize updates
to your data before you apply them.
Expand All @@ -38,8 +38,8 @@ Before you Begin
----------------

The :guilabel:`Update Documents` modal is available starting
in Compass version ``1.42.0``. For instructions on updating or installing
the latest Compass version, see :ref:`download-install`.
in |compass-short| version ``1.42.0``. For instructions on updating or installing
the latest |compass-short| version, see :ref:`download-install`.

.. END-COMPASS-ONLY

Expand Down Expand Up @@ -120,7 +120,7 @@ Steps

Click :guilabel:`Update Documents`.

Compass applies the :guilabel:`Update` to the documents
|compass-short| applies the :guilabel:`Update` to the documents
within the :guilabel:`Filter` expression.

Example
Expand All @@ -130,7 +130,7 @@ The following example uses the
:ref:`sample_mflix dataset <sample-data>`.

This example updates the ``tomatoes.viewer.numReviews`` and
``tomatoes.viewer.meter`` fields with the Compass
``tomatoes.viewer.meter`` fields with the |compass-short|
:guilabel:`Update Documents` modal.

Apply a filter in the :guilabel:`Query Bar` to filter movies which
Expand Down
2 changes: 1 addition & 1 deletion source/documents/modify.txt
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ Modify Multiple Documents
-------------------------

You can use the bulk update operations workflow to update multiple
documents in Compass. For details, see :ref:`compass-bulk-update`.
documents in |compass-short|. For details, see :ref:`compass-bulk-update`.

.. BEGIN-COMPASS-ONLY

Expand Down
4 changes: 2 additions & 2 deletions source/includes/extracts-query-bar.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ref: query-bar-results
content: |
For query result sets larger than 1000 documents, Compass shows a
subset of the results. Otherwise, Compass shows the entire result
For query result sets larger than 1000 documents, |compass-short| shows a
subset of the results. Otherwise, |compass-short| shows the entire result
set.
For details on sampling, see :ref:`Sampling <compass-sampling>`.
Expand Down
4 changes: 2 additions & 2 deletions source/indexes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ collection on the left hand pane and select the :guilabel:`Indexes` tab.
:figwidth: 816px
:alt: Indexes view

For each index, Compass displays the following information:
For each index, |compass-short| displays the following information:

.. list-table::

Expand Down Expand Up @@ -178,7 +178,7 @@ Limitations
- The :guilabel:`Indexes` tab is not available if you are connected
to a :atlas:`Data Lake </data-lake>`.

- You can manage Atlas Search indexes in Compass if your deployment is
- You can manage Atlas Search indexes in |compass-short| if your deployment is
local, has an Atlas cluster tier of M10 or larger, and runs MongoDB 7.0
or higher.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ AI and Data Usage Information
:backlinks: none
:depth: 1

Querying with natural language in Compass is powered by Generative AI
Querying with natural language in |compass-short| is powered by Generative AI
(Gen AI), and may give inaccurate responses. See our `Generative AI FAQ
<https://dochub.mongodb.org/core/faq-ai-features>`__
for more information about Gen AI in MongoDB products.

Third Party Providers
---------------------

Querying with natural language in Compass currently uses the `Azure OpenAI Service
<https://azure.microsoft.com/en-us/products/ai-services/openai-service>`__
Querying with natural language in |compass-short| currently uses the
`Azure OpenAI Service <https://azure.microsoft.com/en-us/products/ai-services/openai-service>`__
hosted by Microsoft. This is subject to change in the future.

How Your Data is Used
---------------------

When you query with natural language in Compass, the following
When you query with natural language in |compass-short|, the following
information is sent to MongoDB's backend and/or the third party
AI provider:

Expand All @@ -51,7 +51,7 @@ connection strings, credentials, or rows/documents from your databases.
Disable Natural Language Querying
---------------------------------

- Natural language querying in Compass is available if you have
- Natural language querying in |compass-short| is available if you have
enabled the :ref:`Generative AI setting
<compass-enable-natural-language-querying>` and logged into Atlas.
- If you no longer want to use the feature, uncheck
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@ Enable Natural Language Querying
:backlinks: none
:depth: 1

You can enable Compass natural language querying by toggling the
You can enable |compass-short| natural language querying by toggling the
:guilabel:`Use Generative AI` setting. Natural language queries can
be a helpful starting point and assist you in learning to write MongoDB
queries.

About this Task
---------------

To enable natural language querying in Compass, follow the steps below.
To enable natural language querying in |compass-short|, follow the steps below.
Alternatively, you can enable natural language querying by clicking the
:guilabel:`Log in to Atlas to enable` button within the
:guilabel:`Use natural language to generate queries and pipelines` modal.
You can display this modal on Compass versions 1.40.0 or later when
You can display this modal on |compass-short| versions 1.40.0 or later when
you click the :guilabel:`Generate query` or
:guilabel:`Generate aggregation` button on the query bar.

Before you Begin
----------------

To enable the generation of queries and aggregations in Compass,
To enable the generation of queries and aggregations in |compass-short|,
you must:

- Sign into Atlas. For details on how to get a free Atlas
Expand Down Expand Up @@ -94,8 +94,7 @@ Steps

.. step:: (Optional) Read MongoDB's GenAI FAQs

For more information about generative AI usage with MongoDB
Compass, see:
For more information about generative AI usage with |compass|, see:

- :ref:`compass-ai-data-usage`
- `FAQ For MongoDB Generative AI Features <https://www.mongodb.com/docs/generative-ai-faq/>`__
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Prompt a Natural Language Aggregation
:backlinks: none
:depth: 1

You can use MongoDB Compass to generate aggregation queries using natural
language. Compass uses AI to generate aggregations based on prompts
You can use |compass| to generate aggregation queries using natural
language. |compass-short| uses AI to generate aggregations based on prompts
you provide. Querying with natural language can be a helpful starting
point and assist you in learning to write MongoDB queries.

Expand All @@ -34,7 +34,7 @@ About this Task
Before you Begin
----------------

You must :ref:`enable natural language querying in Compass<compass-enable-natural-language-querying>`.
You must :ref:`enable natural language querying in Compass <compass-enable-natural-language-querying>`.

Steps
-----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Prompt a Natural Language Query
:backlinks: none
:depth: 1

You can use MongoDB Compass to generate queries using natural
language. Compass uses AI to generate queries based on prompts
You can use |compass| to generate queries using natural
language. |compass-short| uses AI to generate queries based on prompts
you provide. Querying with natural language can be a helpful starting
point and assist you in learning to write MongoDB queries.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ Query with Natural Language
:backlinks: none
:depth: 2

You can use MongoDB Compass to ask natural language questions about your
data. Compass uses AI to generate filter queries and aggregations based
You can use |compass| to ask natural language questions about your
data. |compass-short| uses AI to generate filter queries and aggregations based
on the prompts you provide.

Use Cases
---------

You may want to use natural language to query in Compass to:
You may want to use natural language to query in |compass-short| to:

- Ask plain text questions about your data.
- Create an initial query or aggregation pipeline that you can
Expand All @@ -28,15 +28,15 @@ You may want to use natural language to query in Compass to:
Behavior
--------

- Compass natural language querying is available starting in version
- |compass-short| natural language querying is available starting in version
``1.40.x``.

- Natural language querying utilizes `Azure Open AI
<https://azure.microsoft.com/en-us/products/ai-services/openai-service>`__
as its current provider. This provider may be subject to change in
the future.

- The MongoDB Compass natural language querying feature is on a rolling
- The |compass| natural language querying feature is on a rolling
release schedule. As a result, some users may temporarily have functionality
that other users do not.

Expand All @@ -50,7 +50,7 @@ Get Started
Details
-------

When you query your data using natural language in Compass, the text of
When you query your data using natural language in |compass-short|, the text of
your prompts and details about your MongoDB schemas are sent to
Microsoft and OpenAI for processing. Your data is not stored on any
third party storage systems or used to train AI models.
Expand Down
12 changes: 6 additions & 6 deletions source/query/filter.txt
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ in the MongoDB manual.
Supported Data Types in the Query Bar
-------------------------------------

The Compass :guilabel:`Filter` supports using the
The |compass-short| :guilabel:`Filter` supports using the
:binary:`~bin.mongosh` representation of the MongoDB
Extended JSON :manual:`BSON data types </reference/mongodb-extended-json#bson-data-types-and-associated-representations>`.

Expand All @@ -437,11 +437,11 @@ Extended JSON :manual:`BSON data types </reference/mongodb-extended-json#bson-da
{ "start_date": {$gt: new Date('2017-05-01')} }

By specifying the ``Date`` type in both ``start_date`` and the
``$gt`` comparison operator, Compass performs the ``greater
``$gt`` comparison operator, |compass-short| performs the ``greater
than`` comparison chronologically, returning documents with
``start_date`` later than ``2017-05-01``.

Without the ``Date`` type specification, Compass compares the
Without the ``Date`` type specification, |compass-short| compares the
``start_dates`` as strings
`lexicographically <https://en.wikipedia.org/wiki/Lexicographical_order>`_,
instead of comparing the values chronologically.
Expand All @@ -461,8 +461,8 @@ Query Collections with Invalid UTF8 Data

.. END-COMPASS-ONLY

How Does the Compass Query Compare to MongoDB and SQL Queries?
--------------------------------------------------------------
How Does the |compass-short| Query Compare to MongoDB and SQL Queries?
----------------------------------------------------------------------

:expression:`$filter` corresponds to the ``WHERE`` clause in a
|sql| ``SELECT`` statement.
Expand All @@ -472,7 +472,7 @@ How Does the Compass Query Compare to MongoDB and SQL Queries?
You have 3,235 articles. You would like to see all articles
that Joe Bloggs wrote.

Compass Filter Option
|compass-short| Filter Option
.. code-block:: javascript

{ author : { $eq : "Joe Bloggs" } }
Expand Down
6 changes: 3 additions & 3 deletions source/query/limit.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ Clear the Query

.. include:: /includes/clear-query.rst

How Does the Compass Query Compare to MongoDB and SQL Queries?
--------------------------------------------------------------
How Does the |compass-short| Query Compare to MongoDB and SQL Queries?
----------------------------------------------------------------------

:pipeline:`$skip` corresponds to the ``LIMIT ...`` clause
in a |sql| ``SELECT`` statement.
Expand All @@ -55,7 +55,7 @@ in a |sql| ``SELECT`` statement.
{ $limit : 10 }
);

Compass Limit Option
|compass-short| Limit Option
.. code-block:: javascript

$limit : 10
Expand Down
Loading

0 comments on commit b1c8016

Please sign in to comment.