Azure Cosmos DB | quickstart-sdk | Compare vector index algorithms with TypeScript#71
Open
diberry wants to merge 1 commit into
Open
Conversation
Compares QuantizedFlat and DiskANN vector index algorithms across cosine, dotproduct, and euclidean distance functions. Creates 6 containers (2 algorithms × 3 distance functions) for comprehensive comparison. Follows nosql-vector-search-typescript pattern: data-plane only, DefaultAzureCredential auth, bulk insert, cross-env scripts. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Collaborator
Author
🔄 Squad Review — PR #71 (Vector Algorithms Comparison - TypeScript)Reviewers: Alex (TypeScript), Drummer (Tech Review) ✅ ApprovedAlex (TypeScript Engineer):
Drummer (Tech Reviewer):
Holden (Content Lead):
Verdict: squad:pr-reviewed ✅Awaiting |
Collaborator
Author
📊 Squad Status — PR ReviewRalph (Work Monitor) — sweep on 2026-03-31 Review Pipeline Status
Next Steps
|
Collaborator
Author
Updated Spec: 3×3 Algorithm + Similarity MatrixRequirement (2026-05-06): The sample must run ALL 3 algorithms × ALL 3 similarity/distance functions and present a summary matrix so the value differences are visually obvious. Container Matrix (9 containers)
Expected Output FormatWhy This MattersWith only cosine similarity, all 3 algorithms return identical scores (0.8947) — the real differentiation is in:
The article should explain this insight — readers need to understand they're choosing both an algorithm AND a similarity function, and these choices have different effects. Implementation Notes
|
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.
Adds
nosql-vector-algorithms-typescriptsample comparing QuantizedFlat and DiskANN vector index algorithms across cosine, dotproduct, and euclidean distance functions.What's included
vector-algorithms.ts) runs queries against 6 containers (2 algorithms × 3 distance functions)nosql-vector-search-typescriptpatternPattern
Follows
nosql-vector-search-typescript: data-plane only, DefaultAzureCredential, bulk insert, cross-env scripts.Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com