Hello Ahmad Shafiq,
Thank you for posting your question in the Microsoft Q&A forum.
The intermittent responses from your Azure Cosmos DB for MongoDB vCore vector index where queries sometimes return "no information" despite indexed data typically stem from query consistency issues or indexing latency. First, verify that the vector index is fully built and synchronized by checking the index status via db.collection.getIndexes(). If the index is still initializing, queries may miss recent updates.
Next, review your query embedding logic: Ensure the vector search parameters (e.g., cosmosSearch command’s vectorEmbeddingPolicy) match the data format. Small deviations in embedding dimensions or similarity thresholds (k) can yield empty results.
For reliability, enable diagnostic logs to capture failed queries and cross-check with Azure Monitor metrics for indexing delays. If using RAG (Retrieval-Augmented Generation), validate that the retrieved documents align with the LLM’s prompt context.
Some reference documentation - https://learn.microsoft.com/en-us/azure/cosmos-db/mongodb/vcore/vector-search?tabs=diskann
If the above answer helped, please do not forget to "Accept Answer" as this may help other community members to refer the info if facing a similar issue. Your contribution to the Microsoft Q&A community is highly appreciated.