This is an example Wasp app that supports:
- scraping whole link hierarchies (great for docs)
- scraping a single link
- generating embeddings for page content
- semantic search using PG Vector
- chatting with the documents using OpenAI's ChatGPT
First, makes sure you have Wasp installed.
curl -sSL https://get.wasp-lang.dev/installer.sh | shThen, close this repo and start the database with:
./custom-db/run_db.shFollow the instructions in the script.
Fill the env variables in .env.server:
OPENAI_API_KEY=<your_key>
DATABASE_URL=postgresql://postgres:devpass@localhost:5432/postgres
Migrate the database with:
wasp db migrate-devThen, start the server with:
wasp start