Quoordinates (Quote Coordinates)
- Readwise
- OpenAI Embeddings
- Nomic
- PSQL (PostgreSQL)
- fetch highlights from readwise
- (optional) start at date
- upsert data in database
- embed highlights with openai
- place embeddings into nomic visualization
embed-into-supabase.js
is a node script that embeds highlights into supabase
nomic-viz.py
is a python script that visualizes highlights in nomic
readwise-highlights.py
is a python script that fetches highlights from readwise
Setup
- Create a
.env
file with the following variables:
READWISE_ACCESS_TOKEN=
SUPABASE_URL=
SUPABASE_KEY=
OPENAI_API_KEY=
OPENAI_ORG=
DAY_LAST_FETCHED=
LOG_PATH=
- Install dependencies
poetry init
poetry shell
poetry install
and
npm install
- Run the script to get readwise highlights
python readwise-highlights.py
- Run the script to embed highlights
node embed-into-supabase.js
- Run the script to visualize highlights
python nomic-viz.py