Skip to content

plugin

AppKit extension plugin (registered name: search) around a sibling aiSearch provider. Native AppKit owns Vector Search query execution; this plugin adds the surfaces that remain useful across native and Lakebase providers:

  • a search / universal_search / (opt-in) add_documents tool set for both Mastra and AppKit agents (autocomplete is a small-limit search);
  • compatibility and extension routes under /api/search (POST / search, POST /universal federated, GET /indexes catalogue, and POST /documents when writes are enabled);
  • a clientConfig() payload so a UI knows the indexes, default, and page size at boot with no round-trip;
  • exports() so app code can appkit.search.search(...) directly.

Vector Search reads delegate to the registered native AppKit aiSearch plugin, preserving its OBO, caching, reranking, and response handling. The alternative lakebaseAiSearch provider supplies the same query contract over PostgreSQL full-text search.