Skip to content

fix(cli): add retrieve tag filtering#77

Open
wananing wants to merge 1 commit into
ob-labs:mainfrom
wananing:fix/retrieve-tags-filter
Open

fix(cli): add retrieve tag filtering#77
wananing wants to merge 1 commit into
ob-labs:mainfrom
wananing:fix/retrieve-tags-filter

Conversation

@wananing

Copy link
Copy Markdown
Contributor

Summary

Expose tag filtering on the contextseek retrieve CLI command.

This PR adds --tags support so CLI users can constrain retrieve results to items that contain all requested tags.

Fixes #47.

Solution Description

Add a --tags flag to contextseek retrieve that accepts comma-separated tags, trims empty values, and passes the
resulting list into ContextSeek.retrieve(tags=...).

The existing retrieval path already supports all-tags filtering in the client/orchestrator layer, so this change wires
that behavior into the CLI and documents the semantics in both English and Chinese CLI guides.

Added regression tests for:

  • parser support for retrieve --tags
  • CLI JSON output returning only items matching all requested tags
  • direct SDK retrieval preserving all-tags filtering and untagged behavior

Expose the existing all-tags retrieve filter through the CLI with a --tags flag and pass comma-separated tags into ContextSeek.retrieve().

Document the CLI all-tags semantics and add regression tests for the parser, CLI JSON output, and direct SDK retrieval behavior.

Fixes ob-labs#47.
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.

Tag filtering on retrieve

1 participant