AI newsletter via ChatGPT prompt for developers and startups.
Building your own custom ChatGPT involves four steps:
- Scrape newsletters data.
- Store embeddings in Postgres with pgvector.
- Perform vector similarity search to find the most relevant content to the question in the scraped newsletters data.
- Use the found content to generate text completion through OpenAI GPT-3.5/4 API and store results in Postgres database.
cp .env.example .env
- Set your
OPENAI_API_HOST
in the newly created.env
file. - Set your
OPENAI_API_KEY
in the newly created.env
file. - Set your
DATABASE_URL
in the newly created.env
file. - Set your
DIRECT_URL
in the newly created.env
file. - Set your
JWT_SECRET_KEY
in the newly created.env
file. - Set your
NOVU_API_SECRET
in the newly created.env
file.
In a new terminal window, run
pnpm dev
- It would not be achievable without OpenAI's ChatGPT.