Files
botsmann/lib
g-butandClaude Opus 4.6 318d0f7a65 refactor(chat): extract shared document search into lib/chat/search.ts
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>
2026-03-03 10:04:16 +01:00
..
…
…
…
…
…
…
…
…
…
…