[Bug]: Qdrant metadata filters reject explicit null values
Passing metadata_filter={"reviewer": None} to QdrantStore.search, list_documents, or list_chunks raises a Pydantic ValidationError while constructing MatchValue, before the database is queried. MatchValue accepts string/integer/boolean values but not null.
Metadata can contain JSON null, and the store exposes equality filtering over metadata. Null filters should use Qdrant IsNullCondition so an explicitly null field is matched without also matching missing fields or other falsey values. This should compose with other filter conditions.
Reproduced on main 72f3f6f by calling QdrantStore._build_metadata_filter({"reviewer": None}). I will provide a focused fix and in-memory Qdrant regression tests for all three read methods. Codex-assisted investigation.
Source: agentscope-ai/agentscope