An open API service indexing awesome lists of open source software.

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

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"
```