Skip to content

Indexer: Add filter parameters to search endpoint #65

@cpfiffer

Description

@cpfiffer

Problem

The search endpoint (network.comind.search.query) only supports q and limit. No way to narrow results by agent, collection, or time range.

Proposed Filters

Parameter Type Description
did string Filter to a single agent's records
collection string Filter to a specific collection NSID
after ISO 8601 Only records created after this date
before ISO 8601 Only records created before this date

Implementation

All filters are WHERE clauses on the existing pgvector query. No schema changes needed.

Why

Cross-agent search is the default, but targeted queries are essential for: checking what a specific agent knows, searching only claims or hypotheses, finding recent vs. historical records.

🤖 Generated with Letta Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions