Clone this repo:
[email protected]:mandarini/ai-ng-docs-starter.git
Read the info
section below, it contains useful links, and what you need to get started.
Then, go to the Tutorial page to start the workshop!
- OpenAI API (embeddings and chat completions)
- Supabase (database and vector search)
- Nx
Inspired by: supabase-community/nextjs-openai-doc-search
Most code adjusted from Nx, specifically from:
You need API keys for OpenAI and Supabase. So, you need to fill in the following env vars:
- OPENAI_KEY
- SUPABASE_SERVICE_ROLE_KEY
- PUBLIC_SUPABASE_URL
You can find a complete version of the code in this repo: https://github.com/mandarini/ai-ng-docs
- Nx Docs AI assistant
- OpenAI - GPT Guide
- OpenAI - What are embeddings
- OpenAI - Chat reference
- OpenAI API Node lib GitHub
- OpenAI API Node lib reference
- Supabase vector search guide
- Assistants API blog post
Here is the Nx AI Assistant which this repo replicates (the functionality of).