Skip to content

Design: where should semantic context evaluation live? #73

@bokelley

Description

@bokelley

The current reference/context-agent is scoped to property-registry lookup + bitmap-based property targeting. Six semantic evaluation concerns are unbuilt on main:

  1. EmbeddingMatch — cosine similarity between query embedding and content embedding
  2. KeywordMatch — set intersection of required/blocked keywords
  3. BrandSafety — category blocklist
  4. GeoFilter — allow/block lists
  5. DaypartFilter — day-of-week + hour ranges
  6. CatalogMatch — product catalog to content topics

Prior design lived in closed PR #10. Before rebuilding, decide the home.

Options

  • (A) Expand context-agent to carry a pluggable evaluator registry alongside the property registry
  • (B) New reference/semantic-agent as a separate reference service
  • (C) Move these into targeting/ as configurable predicates

Deciding factors

  • Whether context-agent stays a lightweight registry lookup or grows into an evaluator
  • Whether semantic matching is latency-critical (argues for colocating with targeting)
  • Whether these need to be independently versioned and deployed

Decision needed before any implementation. Suggested owner: @bokelley.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions