Vector Search in Azure Cosmos DB for NoSQL

Guillaume Dupont 0 Reputation points
2024-10-30T10:40:46.4766667+00:00

Hello,

I would like to create a container for building a RAG solution with Azure Cosmos NoSQL: https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/vector-search

This works if i create the BD via python, but i cannot find any reference in the API https://learn.microsoft.com/en-us/azure/templates/microsoft.documentdb/2024-05-15-preview/databaseaccounts/sqldatabases/containers?pivots=deployment-language-terraform

on how to create it via arm/azapi, to industrialize it via Terraform. It is currently possible ?

Thanks !

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,681 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Mahesh Kurva 975 Reputation points Microsoft Vendor
    2024-11-13T19:17:56.91+00:00

    Hi @Guillaume Dupont,

    Greetings & Welcome to Microsoft Q&A forum! Thanks for posting your query!

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer.

    Issue:

    I would like to create a container for building a RAG solution with Azure Cosmos NoSQL: https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/vector-search

    This works if i create the BD via python, but i cannot find any reference in the API https://learn.microsoft.com/en-us/azure/templates/microsoft.documentdb/2024-05-15-preview/databaseaccounts/sqldatabases/containers?pivots=deployment-language-terraform

    on how to create it via arm/azapi, to industrialize it via Terraform. It is currently possible ?

    Solution:

    I’ve checked with the PG engineer, and they’ve confirmed that creating a collection with vector embedding via ARM, AzAPI, or Terraform is not yet supported, but it will be available soon.

    The exact ETA is still to be determined. In the meantime, you can define collections with vector embedding using the data SDKs."

    If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information.

    Hope this helps. Do let us know if you have any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.