supabase-community / nextjs-openai-doc-search

Template for building your own custom ChatGPT style doc search powered by Next.js, OpenAI, and Supabase.
https://supabase.com/blog/chatgpt-supabase-docs
Apache License 2.0
1.59k stars 284 forks source link

Feature: use yargs #25

Closed sd0xdev closed 1 year ago

sd0xdev commented 1 year ago

What kind of change does this PR introduce?

Implement yargs based on TODO

What is the current behavior?

What is the new behavior?

Manage command parameters using yargs

Additional context

https://github.com/sd0-tech/nextjs-openai-doc-search/blob/8683ae1d8926e1b4bcc9a67aad7e7e6d4fa12999/lib/generate-embeddings.ts#L268-L275

Use pnpm run embeddings:r show this:

CleanShot 2023-05-29 at 17 49 16@2x