Strange spike in Sanity traffic

A weird thing happened yesterday, Sanity got this surge of traffic from the US:

Google is the only referrer listed but that only explains 20 visitors and is consistent with the traffic Sanity usually gets:

It's almost entirely from users on Mac and Windows devices, all desktop.

I wonder what it could be, any ideas?

My money is on bot traffic, because it looks like multiple pages were each visited once, as opposite to a single page going viral.

I've also sent out a few CVs the other day so maybe it's a company checking out my work?

building in publicsanityseoindie hackerstraffic surge
reply

How to implement AI vector search and related posts with pgvector

At the end of this tutorial, you should be able to set up your own vector search with text embeddings in a Next.js app. This is a tutorial that mostly consists of coding samples taken directly from the Sanity codebase.

You can see the results right here on Sanity. The related posts section underneath each post is generated with pgvector. So is the search.

The stack I used:

  • Open AI's text-embedding-ada-002 model
  • Next.js
  • Prisma
  • PostgreSQL

Start by setting up the Prisma client:

This step is needed to get Prisma to cooperate with Next.js.

// Setting up prisma
programmingpgvectoraibuilding in publicsql
reply
feedback