Does Vector Index for 'CososDB for mongo DB Vcore' seamlessly reflect content changes and does this carry over to Azure Open Ai Studio?

Junheok Cheon 120 Reputation points
2025-01-08T09:01:05.9433333+00:00

Hello,

I am currently developing a chatbot that uses vector index from Cosmos DB for Mongo DB Vcore.

I have mainly two questions:

  1. Does vector index in the Cosmos DB for Mongo DB Vcore seamlessly reflect changes made in the content of the data base? (For instance, would it reflect deletion of some entries, addition of new entries?)
  2. If I am adding Vector Index from Cosmos DB for Mongo DB V core as a knowledge source (Azure Open AI Studio), would I need to redeploy the chatbot whenever there is changes made to vector index or does this automatically happen?

These questions are crucial for me as I am trying to automate the process of chatbot and I would need to know how these things work for me to further progress.

Thanks!!

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,902 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,082 questions
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 48,906 Reputation points Microsoft Employee Moderator
    2025-01-08T10:17:40.98+00:00

    @Junheok Cheon AI studio primarily is used as an integration point for all sources of AI applications within Azure. For your question about using this data source with Azure OpenAI:

    Does vector index in the Cosmos DB for Mongo DB Vcore seamlessly reflect changes made in the content of the data base? (For instance, would it reflect deletion of some entries, addition of new entries?)

    I think there are three categories to this generating vector, searching vectors and generating completions. Vectors should be generated when data is inserted into each of the collections in Azure Cosmos DB for MongoDB vCore, and then stored in a property which can be used for vector searches. When users ask questions, the prompts are vectorized and used to perform the vector search in a collection. So, whenever changes are made to DB you will have to ingest and vectorize the data which will be further available for OpenAI. This solution and repo primarily uses this scenario. You can try to replicate this or use the repo as-is to test the same.

    If I am adding Vector Index from Cosmos DB for Mongo DB V core as a knowledge source (Azure Open AI Studio), would I need to redeploy the chatbot whenever there is changes made to vector index or does this automatically happen?

    If your vector index is updated the search should automatically feed the chatbot. I don't think you need to redeploy your chat endpoint unless you need to use a new source. I think you can test this with a simple change in your DB after your first integration to confirm.

    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.

    0 comments No comments

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.