Documentation
¶
Overview ¶
Package conformance provides a backend-agnostic test suite for the vectorstore.VectorStore interface -- every backend (pgvector, Qdrant) runs the exact same tests, so a behavioral difference between them shows up as a test failure, not a surprise in production. Same pattern as internal/state/conformance and internal/transport/conformance, extracted once a second backend (Qdrant) existed to actually share tests against.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunVectorStoreSuite ¶
func RunVectorStoreSuite(t *testing.T, factory StoreFactory)
RunVectorStoreSuite runs every conformance test against factory.
Types ¶
type StoreFactory ¶
type StoreFactory func(t *testing.T) vectorstore.VectorStore
StoreFactory creates a fresh (or freshly-truncated) VectorStore for each test, fixed at 3 dimensions -- every test below uses simple axis-aligned vectors ({1,0,0} etc.) so results are exact and easy to reason about, not fixed-point-arithmetic-sensitive.