-
Notifications
You must be signed in to change notification settings - Fork 4
[task] Add retriever deterministic tests #16
Copy link
Copy link
Closed
Labels
area: testsAutomated tests and test infrastructure.Automated tests and test infrastructure.kind: maintenanceRepository maintenance or infrastructure work.Repository maintenance or infrastructure work.status: in-progressClaimed by a contributor and actively being worked.Claimed by a contributor and actively being worked.
Metadata
Metadata
Assignees
Labels
area: testsAutomated tests and test infrastructure.Automated tests and test infrastructure.kind: maintenanceRepository maintenance or infrastructure work.Repository maintenance or infrastructure work.status: in-progressClaimed by a contributor and actively being worked.Claimed by a contributor and actively being worked.
Checks
Area
Tests
Goal
Add deterministic contract tests for
Retriever.retrieve()insrc/anchor/retriever.py.The retriever is a small adapter between the embedding function and the memory store, but it defines an important contract:
Suggested starting points
src/anchor/retriever.pysrc/anchor/memory.pydocs/roadmap.mdtests/unit/test_anchor_config.pySuggested file locations
tests/unit/test_retriever.pyOut of scope
Definition of done
embed_fnand fakememory_store.embed_fn.memory_store.query(..., top_k=...).embed_fnraisesRuntimeError.