4 ms·
Not sure if it's a Node limitation, but the Supabase blog post about creating their "Clippy" search interface has streaming results, and its backend is built on
by gorbypark 4y ago
Not sure if it's a Node limitation, but the Supabase blog post about creating their "Clippy" search interface has streaming results, and its backend is built on Deno. Their edge function seems to be using the bog standard OpenAI bindings. https://github.com/supabase/supabase/blob/bd83e9ba2f7263440888228e3b29007604d94841/supabase/functions/clippy-search/index.ts https://github.com/supabase/supabase/blob/bd83e9ba2f72634408...
*edit*
I spoke too soon, they are actually doing the final request via a fetch call, so technically they aren't using the OpenAI bindings. Seems pretty straight forward, though.
- kiwicopple 4y agoYou can see here how we are handling streaming: https://supabase.com/blog/openai-embeddings-postgres-vector#streaming-results https://supabase.com/blog/openai-embeddings-postgres-vector#... If you want to build this yourself, we just released a video guide: https://www.youtube.com/watch?v=29p8kIqyU_Y https://www.youtube.com/watch?v=29p8kIqyU_Y The Clippy post has some more details of how it all works together: https://supabase.com/blog/chatgpt-supabase-docs https://supabase.com/blog/chatgpt-supabase-docs