Post
First you need to understand embeddings. Embeddings turns words into lists of numbers, a vector, that represent how closely related they are, semantically. Spelling doesn't matter, for example "cat" and "dog" are closely linked, but "cat" and "car" are not.
1 repost3 likes
Every time a document is created, you can use a tool like @cohere.com to create embeddings, which helps your system understand the document's meaning and context, and not just its keywords. Whole chunks of text are given an embedding, so that their context can be fully understood.
To save embeddings, you should use a vector database like @turbopuffer.bsky.social, which is specially optimised for handling numerical data of this type. When its queried, search text is converted into an embedding, passed to the DB, and semantically related data is scored & returned.