gptea-github-news
gptea-github-news copied to clipboard
Get AI newsletter recommendations tailored to developers and startups using ChatGPT prompt.
ChatGPT Newsletter
AI newsletter via ChatGPT prompt for developers and startups.
Technical Details
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.
Local Development
Configuration
-
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.
Start the Next.js App
In a new terminal window, run
pnpm dev
Deploy
Credits
- It would not be achievable without OpenAI's ChatGPT.