Semantic Search
semantic_searchSearch journal entries by semantic meaning using AI embeddings, with filters for tags, type, and date range, or find entries related to a specific entry ID.
Instructions
Perform semantic/vector search on journal entries using AI embeddings. Supports find-related-by-ID (entry_id) and metadata filters (tags, entry_type, date range). Threshold default is 0.25 (try 0.15-0.2 for broader matches, 0.4+ for strict matches). Entries are auto-indexed on creation. If index drifts, use rebuild_vector_index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Filter results by tags | |
| limit | No | ||
| query | No | The search query string (use `query`, not `q`) | |
| end_date | No | Filter results until this date (YYYY-MM-DD) | |
| entry_id | No | Find entries related to this entry ID (uses existing embedding, skips re-embedding) | |
| pr_number | No | Filter results by GitHub PR number | |
| entry_type | No | Filter results by entry type | |
| start_date | No | Filter results from this date (YYYY-MM-DD) | |
| is_personal | No | ||
| include_team | No | Include team entries in the search results | |
| issue_number | No | Filter results by GitHub issue number | |
| workspace_id | No | Optional workspace isolation identifier (e.g. "alpha"). Do not use numeric project IDs or "workspace" as the key. | |
| hint_on_empty | No | Include hint when no results found (default: true) | |
| project_number | No | Filter results by project number | |
| workflow_run_id | No | Filter results by GitHub Actions workflow run ID | |
| include_archived | No | ||
| similarity_threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Error code (e.g. VALIDATION_ERROR, INTERNAL_ERROR) | |
| hint | No | ||
| count | No | ||
| error | No | Human-readable error message | |
| query | No | ||
| details | No | Additional error context | |
| entries | No | ||
| entryId | No | ||
| success | No | ||
| category | No | Error category (validation, query, connection, internal) | |
| suggestion | No | Suggested fix for the error | |
| recoverable | No | Whether the error is recoverable | |
| aggregated_errors | No | Details of individual errors in a multi-step operation |