Hotel records and embeddings are not vendored in this repository. Fetch the exact upstream inputs deliberately before a run, from the repository root.
| Local file | Pinned upstream source | SHA-256 |
|---|---|---|
Hotels_Vector.json |
Source | 60c08c2cdd439444ba8601d94a1f3487f4a9ee56cd48ba201d983c96722de6e4 |
$target = '.\data\Hotels_Vector.json'
if (Test-Path -LiteralPath $target) { throw 'Hotels_Vector.json already exists; review it before replacing it.' }
Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/Azure-Samples/documentdb-samples/f5a2675bbf349737234d0391e3ebee24b260e06f/ai/data/Hotels_Vector.json' -OutFile $target
if ((Get-FileHash -LiteralPath $target -Algorithm SHA256).Hash -ne '60c08c2cdd439444ba8601d94a1f3487f4a9ee56cd48ba201d983c96722de6e4') { throw 'Data checksum mismatch; do not run the sample with this file.' }The commands refuse to overwrite existing data and verify the downloaded bytes. They do not connect to Azure or invoke a model. This downstream sample does not generate embeddings. Its explicit live gate requires the pinned upstream vector checksum.
Precomputed vectors use the source model/dimensions documented upstream. The .NET vector-search project has a different vector-file blob from the shared comparison dataset; its original input is preserved by its own pinned URL.
Upstream data notes and license remain authoritative. These hashes identify inputs; they are not a separate dataset-rights grant. Retain applicable upstream notices when using the data.
From the repository root after installing runtime dependencies:
.venv/bin/python src/fixture.py download
.venv/bin/python src/fixture.py extractThe first command fetches only Hotels_Vector.json; the second extracts its first 1536-dimensional vector to data/query-vector.json. Both reject overwrites/symlinks; the downloader rejects redirects and validates SHA-256/schema before opening output. Neither reads or writes environment secrets or contacts Azure. See --help for explicit input/output paths.