Skip to content

components llm_rag_update_cosmos_mongo_vcore_index

github-actions[bot] edited this page Dec 31, 2024 · 30 revisions

LLM - Update Azure Cosmos Mongo vCore Index

llm_rag_update_cosmos_mongo_vcore_index

Overview

Uploads embeddings into Azure Cosmos Mongo vCore collection/index specified in azure_cosmos_mongo_vcore_config. The collection/index will be created if it doesn't exist.

The collection/index will have the following fields populated:

  • "_id", String, key=True
  • "content", String
  • "contentVector", Collection(Single)
  • "url", String
  • "filepath", String
  • "title", String
  • "metadata_json_string", String

"metadata_json_string" contains all metadata for a document serialized as a JSON string.

Version: 0.0.31

Tags

Preview

View in Studio: https://ml.azure.com/registries/azureml/components/llm_rag_update_cosmos_mongo_vcore_index/version/0.0.31

Inputs

Name Description Type Default Optional Enum
embeddings Embeddings output produced from parallel_create_embeddings. uri_folder
azure_cosmos_mongo_vcore_config JSON string containing the Azure Cosmos Mongo vCore configuration. e.g. {"database_name": "my-db", "collection_name": "my-collection", "index_name": "my-index"} string
connection_id The connection id of the Azure Cosmos Mongo vCore provider to use. string True

Outputs

Name Description Type
index Uri folder containing the MLIndex yaml describing the newly created/updated Azure Cosmos Mongo vCore collection/index. uri_folder

Environment

azureml:llm-rag-embeddings@latest

Clone this wiki locally