feat: Add select-algorithm samples for DocumentDB vector index selection (5 languages)#74
Open
diberry wants to merge 2 commits into
Open
feat: Add select-algorithm samples for DocumentDB vector index selection (5 languages)#74diberry wants to merge 2 commits into
diberry wants to merge 2 commits into
Conversation
45387bd to
5114591
Compare
This was referenced Apr 30, 2026
This was referenced May 6, 2026
ed818fa to
d0e7e60
Compare
2ec45b0 to
ce6ff95
Compare
Add DocumentDB vector index algorithm selection samples demonstrating HNSW, IVF, and DiskANN index types across TypeScript, Python, Go, Java, and .NET. Each sample creates indexes with documented defaults, performs vector searches, and compares results. CI updated to validate all new samples in the existing workflow matrix. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
ce6ff95 to
5e0eec4
Compare
- Rename MONGO_CLUSTER_NAME to DOCUMENTDB_CLUSTER_NAME in all 5 language samples - Add DOCUMENTDB_CLUSTER_NAME dual-output in Bicep (preserves backward compat) - Replace Data Explorer cleanup guidance with VS Code extension - Strengthen algorithm guidance: DiskANN recommended for enterprise (16K dims, disk-based) - Remove python-dotenv from pip install (repo rule Azure-Samples#10) - Fix Python filename refs (select_algorithm.py -> compare_all.py) - Revert out-of-scope vector-search-* changes to origin/main Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds select-algorithm samples demonstrating how to choose the optimal vector index algorithm (HNSW, IVF, DiskANN) for Azure Cosmos DB for MongoDB (vCore) / DocumentDB, in 5 languages: TypeScript, Python, Go, Java, and .NET.
What's included
ai/select-algorithm-typescript/ai/select-algorithm-python/ai/select-algorithm-go/ai/select-algorithm-java/ai/select-algorithm-dotnet/Each sample includes:
CI
validate-samples.yml— Builds all 5 language samples on PR and pushKey parameters (from docs)
Documentation references