# Call forms, fixed before the first run

Every form below is run in every applicable cell. Picking forms after seeing
results would make the outcome table mine rather than the libraries'.

Source of each form: the installed library's own declared signature, read with
`inspect.signature` and recorded verbatim in `data/signatures.json`. No form here
was invented by me, and the cross-dialect forms exist precisely because the
libraries disagree about the name.

## Versions pinned 24 November 2026

chromadb 1.5.9 (Rust core) · lancedb 0.41.0 · qdrant-client 1.20.0 (local mode,
emulator, labelled) · langchain 1.5.2 · langchain-community 0.4.2 (sunset) ·
langchain-chroma 1.2.0 · llama-index-core 0.14.26 ·
llama-index-vector-stores-chroma 0.7.0 · llama-index-vector-stores-lancedb 0.7.0
· sentence-transformers 6.3.0 · numpy 2.5.5 · Python 3.12

## The dialect collision, as the libraries declare it

| layer | filter parameter it declares | swallow present |
|---|---|---|
| chroma `Collection.query` | `where`, `where_document` | no |
| lancedb `LanceQueryBuilder.where` | `where`, `prefilter` | no |
| langchain-chroma `similarity_search` | `filter` | `**kwargs` |
| langchain-chroma `max_marginal_relevance_search` | `filter`, `where_document` | `**kwargs` |
| langchain-chroma `as_retriever` | none typed | `**kwargs` only |
| langchain-community Chroma, all three paths | same as above | `**kwargs` |
| llama-index `VectorStoreQuery` | `filters` | no |

Three different names for one concept, and every langchain path carries a
`**kwargs`. So the native Chroma name passed to the langchain wrapper is accepted
and discarded with no error. That is the mechanism under test, not a hypothesis.

## Forms run per cell

**Correct form**: the parameter that layer declares, with the field name and type
as indexed.

**Cross-dialect forms**, each the correct name for a different layer:
`where=` on a langchain path, `filter=` on native chroma, `filters=` on a
langchain path, `filter=` on llama-index.

**Retriever form**: `as_retriever(search_kwargs={...})`, which is untyped, with
both the correct and the cross-dialect key inside.

**Path forms** on each backend: direct similarity search, with-score, MMR, and
retriever. LanceDB additionally `prefilter=True` and `prefilter=False`, because
post-filtering after ANN can return fewer than k and is a prime source of the
`unknown` category.

**Degenerate forms**, which exist only to prove control 4 can fail and must be
caught: a misspelled field (`owner_id` where `owner` was indexed), and an int
where a str was stored. Both must score `unknown`, never `honoured`. If either
scores `honoured`, the harness is broken and the run is void.

## Cells

Real backends: Chroma, LanceDB. Each direct, under langchain-chroma, under
langchain-community, and under llama-index. qdrant local mode appears labelled as
an emulator. langchain `InMemoryVectorStore` appears only to demonstrate the
swallow, never as evidence about a backend.
