You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-services/openai/concepts/use-your-data.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -312,6 +312,8 @@ Along with using Elasticsearch databases in Azure OpenAI Studio, you can also us
312
312
### Prerequisites
313
313
314
314
* A [MongoDB Atlas account](https://account.mongodb.com/account/register)
315
+
* An Azure OpenAI ada002 [embedding model](./models.md#embeddings)
316
+
* To achieve good retrieval quality, make sure your vector index is created with Azure OpenAI ada002 embedding model.
315
317
316
318
We recommend using one of the following models for MongoDB Atlas
317
319
* gpt-4 (0613)
@@ -326,22 +328,28 @@ Only public network access is supported. Please make sure the database allows pu
326
328
327
329
### Data preparation
328
330
329
-
Use the [available script on Github](https://github.com/microsoft/sample-app-aoai-chatGPT/blob/rawan/mongodbdataprep/scripts/mongo_vector_db_data_preparation.py) to prepare your Data for use with Azure OpenAI On Your Data.
331
+
If you want to create a new vector search index with your documents, you can use the [available script on Github](https://github.com/microsoft/sample-app-aoai-chatGPT/blob/rawan/mongodbdataprep/scripts/mongo_vector_db_data_preparation.py) to prepare your data for use with Azure OpenAI On Your Data.
332
+
333
+
### Connection to MongoDB account
334
+
335
+
To add your data source, you first need to create a connection to MongoDB Atlas. This connection includes information such as authentication (username and password).
336
+
337
+
:::image type="content" source="../media/use-your-data/mongo-db-atlas-connection.png" alt-text="A screenshot showing the connection screen for Mongo DB" lightbox="../media/use-your-data/mongo-db-atlas-connection.png":::
330
338
331
339
### Source index
332
340
333
-
To add your data source, you first need to provide information about your index, and create a connection. This connection includes information such as authentication (username and password), your connection string, and database and colection name.
341
+
Once you have created a connection or chosen an existing connection, you can enter the information to connect to a specific vector index within this connected account. You need to input the name of your database, collection and vector index. Make sure you have entered the information correctly to successfully build the connection.
334
342
335
343
:::image type="content" source="../media/use-your-data/mongo-db-atlas-source-index.png" alt-text="A screenshot showing the field mapping options for Mongo DB Atlas" lightbox="../media/use-your-data/mongo-db-atlas-source-index.png":::
336
344
337
-
To use MongoDB Atlas, you'll need an embedding model. This model will be created for you if you don't already have one, wich will incur [usage](https://go.microsoft.com/fwlink/?linkid=2264246) on your account.
345
+
To use MongoDB Atlas, you'll need an Azure OpenAI ada002 embedding model. This model will be created for you if you don't already have one, wich will incur [usage](https://go.microsoft.com/fwlink/?linkid=2264246) on your account.
338
346
339
347
### Index field mapping
340
348
341
349
When you add your MongoDB Atlas data source, you can specify data fields to properly map your data for retrieval.
342
350
343
351
* Content data (required): This is the main text content of each document. For multiple fields, separate the values with commas, with no spaces.
344
-
**Vector field (required): The field name in your MongoDB Atlas search index that contains the vectors.
352
+
* Vector field (required): The field name in your MongoDB Atlas search index that contains the vectors.
345
353
* File name/title/URL: Used to display more information when a document is referenced in the chat.
346
354
347
355
:::image type="content" source="../media/use-your-data/mongo-db-atlas-field-mapping.png" alt-text="A screenshot showing the field mapping options for Mongo DB Atlas" lightbox="../media/use-your-data/mongo-db-atlas-field-mapping.png":::
0 commit comments