https://github.com/alvesvaren/relevantxkcd
https://github.com/alvesvaren/relevantxkcd
drizzle-orm embeddings nextjs openai pg-vector postgres xkcd
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/alvesvaren/relevantxkcd
- Owner: alvesvaren
- Created: 2025-02-28T16:35:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-01-25T12:33:18.000Z (5 months ago)
- Last Synced: 2026-01-29T15:56:28.626Z (5 months ago)
- Topics: drizzle-orm, embeddings, nextjs, openai, pg-vector, postgres, xkcd
- Language: TypeScript
- Homepage: https://relevantxkcd.svaren.dev
- Size: 98.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Relevant XKCD
A simple search engine for XKCD comics, based on openai embeddings.
Might be slow for the first query if tesing out the hosted version because the database goes to sleep if inactive. Subsequent queries will be much faster.
## Indexing
```bash
curl -X POST "http://localhost:3000/api/index-day?day=1&endDay=3056" (protected by randomized key if set up in .dev)
```
## Searching
```bash
curl "http://localhost:3000/api/search?q=xkcd"
```