Skip to main content

Search Brain Results

Benchmarked against: Anthropic — Search results Tools: search_brain, search_by_category, get_entry Architecture: Cloud UB hybrid search (FTS5 keyword + Vectorize semantic)

search_brain is the primary knowledge retrieval tool. It combines keyword matching with semantic similarity to find relevant UB entries, returning ranked results with metadata.


How search works​

Hybrid search combines two approaches:​

MethodStrengthWeakness
FTS5 (keyword)Exact term matches, fastMisses synonyms and related concepts
Vectorize (semantic)Understands meaning, finds related contentMay miss exact terms
Hybrid (combined)Best of both — precision + recallSlightly more processing

Using search_brain​

search_brain("Cloud UB architecture")

Response format​

[
{
"entry_id": "ub-396f44b70763",
"title": "Cloud UB Architecture Specification",
"content": "Cloud UB is the fleet's shared knowledge...",
"category": "knowledge",
"tags": ["spec", "cloud-ub", "architecture"],
"source_ship": "SS1",
"created_at": "2026-03-01T10:00:00Z",
"score": 0.95
}
]
FieldDescription
entry_idUnique identifier for get_entry()
titleEntry title (searchable)
contentContent preview (may be truncated)
categoryknowledge, project_doc, session_record, etc.
tagsCategorization tags
source_shipWhich ship ingested this
scoreCombined relevance score (0-1)

Search strategies​

By query type​

NeedQuery approach
Find a specific entryUse exact title or entry_id
Explore a topicBroad topic keywords
Find decisions"decision [topic]"
Find corrections"correction [topic]"
Find session handoffs"session-handoff [agent]"

By category​

# Browse entries by category
search_by_category(category="knowledge")
search_by_category(category="project_doc", subcategory="architecture")

Available categories: knowledge, project_doc, session_record, source_code, config_script, trading, media.


Search language​

All UB entries are in English (Captain decision, 2026-02-28). Search queries should also be in English for best results.

Query languageResult quality
English query → English entriesBest match
Chinese query → English entriesSemantic may work, keyword won't

The search-first flow​

Before any external search, always check UB:

1. search_brain("topic")          → Check existing knowledge
2. If found → Use it → Free, instant
3. If empty → intel_search/search_web → Delegate to low-cost engine
4. Results → ingest_fragment() → Becomes UB asset for next time

PageRelationship
Cloud UB MCPServer architecture
UB Source TrackingMetadata and tags
EmbeddingsVector search details
UB GovernanceIngestion rules