Skip to content

feat: add metadata filters for context retrieval#60

Merged
beinan merged 6 commits into
lance-format:mainfrom
dcfocus:feat/metadata-filters
Jun 9, 2026
Merged

feat: add metadata filters for context retrieval#60
beinan merged 6 commits into
lance-format:mainfrom
dcfocus:feat/metadata-filters

Conversation

@dcfocus

@dcfocus dcfocus commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add structured JSON metadata support for context records.
  • Add list/search filters for built-in fields, timestamp ranges, and metadata equality/contains.
  • Expose Python metadata and filters APIs with docs and tests.

Testing

  • cargo fmt --all -- --check
  • cargo check -p lance-context-core
  • cargo check -p lance-context-python
  • cargo test -p lance-context-core
  • cargo clippy -p lance-context-core -p lance-context-python --all-targets -- -D warnings
  • ruff format --check
  • ruff check
  • pyright
  • python/.venv/bin/pytest python/tests/test_search.py python/tests/test_persistence.py::test_metadata_and_filters_round_trip python/tests/test_persistence.py::test_search_applies_filters_before_limit

Closes #53

dcfocus added 2 commits June 9, 2026 21:04
# Conflicts:
#	crates/lance-context-core/src/store.rs
#	python/tests/test_search.py
# Conflicts:
#	python/python/lance_context/api.py
@beinan beinan merged commit e6bfeaa into lance-format:main Jun 9, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose structured metadata and scoped filters for list/search

2 participants