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.58k stars 280 forks source link

[Improvement] Add instruction for custom documentation, regenerate embeddings #29

Closed cbtham closed 1 year ago

cbtham commented 1 year ago

What kind of change does this PR introduce?

Documentation update

What is the current behavior?

No instruction on how to supply custom mdx documentation.

What is the new behavior?

Documentation detailing how to add custom mdx and re-process the embeddings

cbtham commented 1 year ago

Thanks @gregnr for reviewing! I have taken your suggestions and made a few corrections.

On a separate note, the localhost QnA page doesn't seem to render code blocks correctly (eg. ``` sql SELECT * FROM EMP JOIN DEPT ``` ).

Is this by design in this template?

gregnr commented 1 year ago

Hey @cbtham, thanks for the update. Would you mind pointing me to which QnA page you are referring to?

Code blocks should have this format:

```sql
SELECT * FROM EMP;