Skip to content

Commit 16da500

Browse files
DOCSP-41673 nlc ga updates (#678)
* nlc ga updates
1 parent dd9238c commit 16da500

File tree

8 files changed

+143
-36
lines changed

8 files changed

+143
-36
lines changed

snooty.toml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ toc_landing_pages = ["/installation",
3737
"/embedding-charts-sdk",
3838
"/manage-data-sources",
3939
"/bin-data", "/encoding-channels",
40-
"/experimental-features"]
40+
"/experimental-features",
41+
"/faq"]
4142

4243
[constants]
4344
version = "v0.10.0"
@@ -76,16 +77,3 @@ css = ":abbr:`CSS (Cascading Style Sheets)`"
7677
pdf = ":abbr:`PDF (Portable Document Format)`"
7778
png = ":abbr:`PNG (Portable Network Graphic)`"
7879
iot = ":abbr:`IoT (Internet of Things)`"
79-
80-
[[banners]]
81-
# NLC in public preview
82-
targets = [
83-
"index.txt",
84-
"chart-types.txt",
85-
"chart-type-reference/*.txt"
86-
]
87-
88-
variant = "warning"
89-
value = """
90-
Natural Language Charts is available as a Preview feature. The feature and the corresponding documentation might change at any time during the Preview period.
91-
"""

source/ai-and-data-usage-information.txt

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,7 @@ hosted by Microsoft. This is subject to change in the future.
2424
How Your Data is Used
2525
---------------------
2626

27-
When you use Natural Language Charts, |charts| sends the following information
28-
to MongoDB's backend and/or the third-party AI provider:
29-
30-
- The full text of your natural language prompt.
31-
- The schema of the collection used to generate the chart,
32-
including collection names, field names, and field data types.
33-
- Sample field values to improve the quality of chart recommendations.
34-
35-
The information sent will not be shared with any other third parties
36-
or stored by the AI provider. We do not share database connection
37-
strings or credentials from your databases. By default, your original
38-
query text will be stored by MongoDB for up to one year to help us
39-
provide support to customers and improve the service.
27+
.. include:: /includes/nlc-how-your-data-is-used.rst
4028

4129
Disable Natural Language Charts
4230
-------------------------------

source/chart-type-reference/natural-language-charts.txt

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Natural Language Charts
1212
:depth: 1
1313
:class: singlecol
1414

15+
.. _nlc-supported-charts:
16+
1517
Natural language charts simplifies the chart creation process.
1618
It supports the following chart types, which are built with :ref:`series
1719
<charts-series-encoding>` and :ref:`aggregation
@@ -93,15 +95,7 @@ Procedure
9395
In the :guilabel:`Prompt` box, specify the chart you want |charts|
9496
to create.
9597

96-
We recommend that you write clear prompts and tag the fields from
97-
your collection with ``@``. The following list provides examples
98-
of clear prompts:
99-
100-
- Use a line chart to display trends in quarterly sales data.
101-
- Display monthly sales revenue for the last year.
102-
- Visualize weekly sales data in year 2022 using a discrete line chart.
103-
- Show the age distribution of our customers.
104-
- Show me the top 3 property_type and all other properties grouped together with the highest price.
98+
.. include:: /includes/nlc-prompt-writing-tips.rst
10599

106100
.. note::
107101

source/faq.txt

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
:noprevnext:
2+
3+
.. _faq:
4+
5+
==========================
6+
Frequently Asked Questions
7+
==========================
8+
9+
.. default-domain:: mongodb
10+
11+
.. facet::
12+
:name: genre
13+
:values: reference
14+
15+
.. contents:: On this page
16+
:local:
17+
:backlinks: none
18+
:depth: 1
19+
:class: singlecol
20+
21+
.. _nlc-error-messages:
22+
23+
What should I do if the chart generated looks incorrect, or |charts-short| doesn't generate a chart from the prompt?
24+
--------------------------------------------------------------------------------------------------------------------
25+
26+
We are improving :guilabel:`Natural Language` mode to reduce the
27+
occurrence of incorrect responses. In the meantime, we provide a message
28+
that helps you understand how to improve the response.
29+
30+
The following table lists the possible messages you can receive and the
31+
underlying cause of each.
32+
33+
.. list-table::
34+
:header-rows: 1
35+
:stub-columns: 1
36+
:widths: 35 65
37+
38+
* - Message
39+
- Further Explanation
40+
41+
* - Some chart types are currently not supported in the Natural
42+
Language mode. Grouped Bar chart has been selected. Switch to the
43+
Classic mode to change this.
44+
- We currently do not supoort the chart type you requested in the
45+
prompt. When you write a prompt, leave the chart type selection to
46+
|charts-short|, or specify another :ref:`supported chart type
47+
<nlc-supported-charts>`.
48+
49+
* - Customization options are currently not supported in the Natural
50+
Language mode. Switch to the Classic mode to continue.
51+
- We currently do not support customization options in the
52+
:guilabel:`Customize` section of the :guilabel:`Classic` mode for
53+
chart generation.
54+
55+
* - The prompt is not specific enough. Edit the prompt and try again.
56+
- There is not enough information in the prompt to generate a
57+
chart.
58+
59+
.. include:: /includes/nlc-prompt-writing-tips.rst
60+
61+
* - Couldn't find 'field_name' in the data source. Edit the prompt
62+
and try again.
63+
- You entered a field that doesn't exist in the data schema. To see
64+
the exisiting fields you can tag from the data source, press the
65+
``@`` key when writing the prompt.
66+
67+
In the bottom-left corner of your generated chart, please give us
68+
feedback to help improve the response.
69+
70+
What functionality in :guilabel:`Classic` mode are currently not supported in :guilabel:`Natural Language` mode?
71+
----------------------------------------------------------------------------------------------------------------
72+
73+
- :ref:`Count by value <count-by-value-agg>` aggregation option
74+
- :ref:`Customizations options <customize-charts>`
75+
- Chart types:
76+
77+
- :ref:`Candlestick Chart <candlestick-chart-ref>`
78+
- :ref:`Heatmap <heatmap-chart-ref>`
79+
- :ref:`Scatter Chart <scatter-chart-ref>`
80+
- :ref:`Top Item Chart <top-item-ref>`
81+
- :ref:`Geospatial Charts <geo-spatial-charts>`
82+
- :ref:`Continuous Line and Continuous Area <continuous-charts>`
83+
- :ref:`Gauge <gauge-chart-ref>`
84+
- :ref:`Word Cloud <word-cloud-ref>`
85+
- :ref:`Colored Bar and Colored Column <column-bar-chart-ref>`
86+
87+
- :ref:`Lookup Fields <add-lookup-field>`
88+
- :ref:`Calculated fields <calculated-fields>`
89+
- :ref:`Missed Fields <missing-fields>`
90+
91+
Does Natural Language Charts rely on a service?
92+
-----------------------------------------------
93+
94+
Yes, Natural Language Charts currently uses the `Azure OpenAI Service
95+
<https://azure.microsoft.com/en-us/products/ai-services/openai-service>`__
96+
hosted by Microsoft. This is subject to change in the future.
97+
98+
To learn more, see `What Services Do MongoDB's GenAI Features Rely On
99+
<https://www.mongodb.com/docs/generative-ai-faq/#what-services-do-these-genai-features-rely-on->`__.
100+
101+
What data does |charts-short| send to the model?
102+
------------------------------------------------
103+
104+
.. include:: /includes/nlc-how-your-data-is-used.rst
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
When you use Natural Language Charts, |charts| sends the following information
2+
to MongoDB's backend and/or the third-party AI provider:
3+
4+
- The full text of your natural language prompt.
5+
- The schema of the collection used to generate the chart,
6+
including collection names, field names, and field data types.
7+
- Sample field values to improve the quality of chart recommendations.
8+
9+
The information sent will not be shared with any other third parties
10+
or stored by the AI provider. We do not share database connection
11+
strings or database credentials. By default, your original
12+
query text will be stored by MongoDB for up to one year to help us
13+
provide support to customers and improve the service.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
We recommend that you write clear prompts and tag the fields from
2+
your collection with ``@``. The following list provides examples
3+
of clear prompts:
4+
5+
- Use a line chart to display trends in quarterly sales data.
6+
- Display monthly sales revenue for the last year.
7+
- Visualize weekly sales data in year 2022 using a discrete line chart.
8+
- Show the age distribution of our customers.
9+
- Show me the top 3 property_type and all other properties grouped
10+
together with the highest price.

source/index.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ data and explore key features offered by |charts|:
120120
Embedding </embed-charts-and-dashboards>
121121
/admin-settings
122122
/pricing
123+
/faq
123124
/release-notes
124125
/third-party-licenses
125126
/ai-and-data-usage-information

source/release-notes.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ Atlas Charts Release Notes
1010
:depth: 1
1111
:class: twocols
1212

13+
|charts| v1.45.3
14+
----------------
15+
16+
*Released July 30th, 2024*
17+
18+
Improvements in this release:
19+
20+
- :ref:`Natural Language Charts <nlc>` is generally available.
21+
1322
|charts| v1.45.0
1423
----------------
1524

0 commit comments

Comments
 (0)