01 / Reproduce
Search four fictional notes
Download the practice ZIP and extract it into a fresh folder. It contains search-notes.py, notes.json, requirements.txt and a README. With Python 3.10 or newer installed, open PowerShell in that folder:
python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements.txt
.\.venv\Scripts\python.exe .\search-notes.py
Installation downloads the pinned packages. The first run also downloads five public model files into model-cache, including 66,465,124 bytes of ONNX weights. No AI API key, GPU or Qdrant server is required. The script runs inference in the local Python process using the CPU provider. We did not audit every dependency's network behavior.
The model identifier is BAAI/bge-small-en-v1.5. This lab explicitly downloads Qdrant's quantized ONNX port at revision aa8f8b060edb00e03bfdd08813a2949946c8ba55 and loads that directory. Our output was:
Python 3.13.15 / FastEmbed 0.9.1 / CPU / 384 dimensions
Query: Can I bring my dog to the office on Friday?
All notes:
P-OLD 0.8485 current=false
P-NOW 0.8041 current=true
VPN 0.5195 current=true
KITCHEN 0.4635 current=true
Current notes only:
P-NOW 0.8041 current=true
VPN 0.5195 current=true
KITCHEN 0.4635 current=true
Read the source text in report.json before deciding whether it answers the query.
Open lab-output/report.json. It retains each candidate's ID, full source text, revision label, current flag and unrounded score. It also records the query, package versions, source-file SHA256, model revision and five model-file hashes. The output folder must be new; an accidental rerun into the same folder stops before downloading or inference.
02 / Inspect
Read the match and its metadata
These are the two deliberately similar policy notes. Both are fictional:
- P-OLD, fictional-v1, current=false: “Office policy: Employees may bring dogs to work on Fridays.”
- P-NOW, fictional-v2, current=true: “Office policy: Employees may not bring dogs to work on Fridays.”
The archived permissive note ranked first in our unfiltered run. The current restrictive note also scored highly. A value of 0.8485 is a cosine similarity between vectors in this run. It is not an 84.85% chance the policy is correct, current or applicable.
The lab uses passage_embed for note text and query_embed for the question. It computes cosine similarity explicitly:
def cosine_scores(passages, query):
return passages @ query / (np.linalg.norm(passages, axis=1) * np.linalg.norm(query))
Here passages is a matrix with one 384-value vector per note, and query is one vector. The script creates a second ranking using only notes whose authored current field is true. Metadata is kept outside the embedded text; the filter can exclude P-OLD because someone supplied that status:
eligible = [i for i, note in enumerate(notes) if note["current"]]
current = sorted(eligible, key=lambda i: (-float(scores[i]), notes[i]["id"]))
This makes the current policy the first eligible candidate in this fixture. Read its actual sentence before using it. The model did not discover which version was authoritative, and a true flag does not prove a note is accurate. In a real assistant, source ownership, revision status and access permissions need a maintained system of record. This toy filter implements only the supplied current flag.
03 / Make it your own
Ask something the collection cannot answer
Try an out-of-scope question without changing the notes. Use a new output directory:
.\.venv\Scripts\python.exe .\search-notes.py --query "Where should I park my bicycle?" --output adapted-output
Our first current candidate was VPN at 0.4447. Its source says: “Remote access: Use the company VPN when connecting from home.” None of the four notes gives a bicycle parking location. Sorting candidates still produces a first result when the collection lacks an answer.
Compare the two reports and read the source text next to every score. For your own small synthetic collection, include one current answer, an archived contradiction and a question with no answer. Decide what a reviewer must inspect before a candidate enters the answer prompt. Check source applicability and permission before exposing it to a user or downstream model.
04 / Boundaries
Keep the evidence in scope
We ran both queries with the pinned model revision, verified 384-dimensional finite vectors, inspected the rankings and full text, checked current-only exclusion, preserved input bytes, and exercised the new-output-directory guard. The downloadable kit was also rerun from an extracted archive. The recorded package set includes NumPy 2.5.5 and ONNX Runtime 1.32.0. Printed scores are rounded to four decimals; other systems may differ slightly.
These are observed results for four authored short English notes. They do not measure retrieval accuracy on a real collection, establish a safe threshold, test a generative model or prove an end-to-end RAG assistant works. We did not benchmark speed, test multilingual text, implement authorization, or audit network isolation. The model registry lists 512-token input truncation; large-document chunking needs its own design and checks.
Optional AI review prompt, not run: “Review these fictional retrieved candidates and their current flags. Identify contradictions and whether any candidate explicitly answers the question. Quote the relevant supplied sentence, preserve its source ID, and say when the collection has no answer. Do not treat a similarity score as proof.”
05 / Primary sources
Read the primary sources
- Qdrant: FastEmbed and its model registry — local embedding generation, model names, dimensions and input limits.
- BAAI's model card and similarity FAQ — score interpretation and task-specific threshold guidance.
- Qdrant's quantized ONNX model — the port used for this exercise.
- Hugging Face Hub: downloading a pinned revision — snapshot downloads and selected files.
- FastEmbed 0.9.1 on PyPI — the release installed here.
Sources checked November 22, 2026. This is a practical walkthrough of established tools, not a claim that semantic search or this model was released today.
06 / Keep it handy
Get the practice and posting files
The practice ZIP contains the script, fictional notes, pinned requirements and README. Model files download separately when the script runs. The posting ZIP contains the original portrait, teaser caption, alt text and full article URL. Social content is prepared for manual posting; it has not been scheduled or published.
Browse more AI Anonymous field notes or talk with JABSystems about your workflow.

