Requires the
ai-search bundle. Semantic search and the AI ask endpoint are only available when the ai-search bundle is installed on your project. See Bundles to add it.Semantic search and AI features require embeddings to be enabled for your project. Configure this in the Sublay dashboard under Settings → Semantic Search / AI.
Search
Search returns the most semantically similar records to a given query. Results include asimilarity score alongside the matched record.
AI Q&A
useAskContent lets users ask natural language questions and receive synthesized answers generated from your project’s content. The response streams token by token via SSE (Server-Sent Events) and includes source citations.
In This Section
Semantic Search
Search entities, comments, messages, users, and spaces by natural language query
Ask
Ask a question and stream a generated answer with source links
Hooks
useSearchContent
Search entities, comments, and messages by natural language
useSearchUsers
Find users by name, bio, or other profile text
useSearchSpaces
Find spaces by name, description, or topic
useAskContent
Ask a question and receive a streamed, cited answer

