The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
docs: Updated index definition and reference to LangChain-MongoDB (#19047)
Prakul4c53e31377fc
diff --git a/docs/docs/integrations/vectorstores/mongodb_atlas.ipynb b/docs/docs/integrations/vectorstores/mongodb_atlas.ipynbindex 2bf3a137c4..57c2ebf336 100644--- a/docs/docs/integrations/vectorstores/mongodb_atlas.ipynb+++ b/docs/docs/integrations/vectorstores/mongodb_atlas.ipynb@@ -23,10 +23,10 @@"metadata": {},"source": ["> Note: \n",- ">\n",+ "> \n",+ ">* More documentation can be found at [LangChain-MongoDB site](https://www.mongodb.com/docs/atlas/atlas-vector-search/ai-integrations/langchain/)\n",">* This feature is Generally Available and ready for production deployments.\n",">* The langchain version 0.0.305 ([release notes](https://github.com/langchain-ai/langchain/releases/tag/v0.0.305)) introduces the support for $vectorSearch MQL stage, which is available with MongoDB Atlas 6.0.11 and 7.0.2. Users utilizing earlier versions of MongoDB Atlas need to pin their LangChain version to <=0.0.304\n",- "> \n","> "]},@@ -121,13 +121,12 @@"id": "1f3ecc42","metadata": {},"source": [- "Now, let's create a vector search index on your cluster. In the below example, `embedding` is the name of the field that contains the embedding vector. Please refer to the [documentation](https://www.mongodb.com/docs/atlas/atlas-vector-search/create-index/) to get more details on how to define an Atlas Vector Search index.\n",+ "Now, let's create a vector search index on your cluster. More detailed steps can be found at [Create Vector Search Index for LangChain](https://www.mongodb.com/docs/atlas/atlas-vector-search/ai-integrations/langchain/#create-the-atlas-vector-search-index) section.\n",+ "In the below example, `embedding` is the name of the field that contains the embedding vector. Please refer to the [documentation](https://www.mongodb.com/docs/atlas/atlas-vector-search/create-index/) to get more details on how to define an Atlas Vector Search index.\n","You can name the index `{ATLAS_VECTOR_SEARCH_INDEX_NAME}` and create the index on the namespace `{DB_NAME}.{COLLECTION_NAME}`. Finally, write the following definition in the JSON editor on MongoDB Atlas:\n","\n","```json\n","{\n",- " \"name\": \"index_name\",\n",- " \"type\": \"vectorSearch\",\n"," \"fields\":[\n"," {\n"," \"type\": \"vector\",\n",@@ -277,8 +276,6 @@"source": ["```json\n","{\n",- " \"name\": \"index_name\",\n",- " \"type\": \"vectorSearch\",\n"," \"fields\":[\n"," {\n"," \"type\": \"vector\",\n",