mirror of
https://github.com/bitbaum/botsmann.git
synced 2026-12-04 22:19:13 +01:00
Create searchUserDocuments() that encapsulates the common pattern: embed query → match_documents RPC → filter → build context + sources. Used by both chat/route.ts and professional-chat/route.ts, removing ~50 duplicated lines across the two routes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>