Search Guide
Search across AUVY resources with two primary modes:grepfor keyword or browse-style lookupsearchfor semantic similarity
POST /v1/search/memories.
Setup
See Authentication Guide for client setup. Brain-scoped search requiresX-Brain-Id, so the easiest client setup is getBrainId.
Grep (Keyword/Browse)
POST /v1/grep — Keyword search or browse. Query format: type or type/pattern. Browse: neurons/. Keyword: neurons/support.
Semantic Search (Sync)
POST /v1/search — Semantic similarity. Query: type/pattern (pattern required). Returns results immediately.
Multi-Type Search (Async)
Search across receptors, pathways, neurons, and reflexes using semantic similarity (for neurons) and keyword search (for other types). Multi-type search is asynchronous and returns a job ID that you must poll.Basic Search
Search Specific Types
Polling for Results
Multi-type search is asynchronous. Poll job status:Memory Search
Search memory chunks by semantic similarity. Memory search is synchronous and returns results immediately.Basic Memory Search
Filtered Memory Search
Memory Search Helper Function
Create a small helper if you call this endpoint often:Grep (Synchronous Cross-Type Search)
For synchronous search across memories, artifacts, receptors, pathways, neurons, and reflexes, usePOST /v1/grep with a single query in path format: type/pattern. Requires X-Brain-Id; grep always searches within brain scope.
- Browse:
neurons/orneurons— list resources - Search:
neurons/support,memories/how do invoices work— search by text (semantic for memories)
Search Types
Semantic Search (Neurons)
Neurons use semantic similarity search based on embeddings:- How it works: Converts query and neuron content to embeddings, compares similarity
- Best for: Finding conceptually similar neurons
- Threshold: Use 0.7+ for high-quality results
Keyword Search (Receptors, Pathways, Reflexes)
Other resource types use keyword search:- How it works: Matches query against names, descriptions, and metadata
- Best for: Finding resources by name or description
- Case-insensitive: Searches are case-insensitive
Best Practices
- Specify
typesarray to search only relevant resources - Set
thresholdto 0.7+ for high-quality results - Use memory search for content, multi-type search for resources
- Poll job status with exponential backoff
- Handle errors gracefully
Related
- Grep API - Synchronous search with query format
- Search API - Endpoint details and memory-search request shape
- Search API - Async multi-type search
- Jobs API - Job status polling
- Memories API - Memory management
- Integration patterns - Error handling patterns
- SDK Documentation - Full SDK reference