Back to Journal
ExperimentMarch 26, 2025Updated March 28, 20258 min read

Shipping Semantic Search

How I implemented vector search in Esy using embeddings and learned about the challenges of semantic similarity.

Jordan Lee
Jordan Lee
Software Engineer
4823 views42 comments156 shares
Shipping Semantic Search
Data visualization showing vector relationships and semantic similarity clusters

Shipping semantic search in Esy was a journey through the world of embeddings, vector databases, and the subtle art of measuring similarity between ideas.

Why Semantic Search?

Traditional search falls short when users phrase things differently. Embeddings let us compare meaning, not just words.

The Implementation

I used OpenAI's embedding API and a vector database to store and search document vectors. The biggest challenge? Making sure similar queries actually returned relevant results.

Embedding a Query
const embedding = await openai.embeddings.create({
input: query,
model: 'text-embedding-3-small'
});

Lessons Learned

  • Not all embeddings are created equal
  • Preprocessing text is crucial
  • Vector search is only as good as your similarity metric
"The hardest part was tuning the system to return results that felt right—not just mathematically close."
Jordan Lee
Software Engineer
Next Article
Emergent Tool Use in GPT-4
How language models learn to use tools with minimal prompting
#semantic-search#embeddings#vector-db
Jordan Lee

About Jordan Lee

Full-stack engineer passionate about search technology and machine learning. Building better ways to find information.

Related Experiments

Training Style LoRAs on Architectural Drawings
experiment

Training Style LoRAs on Architectural Drawings

15 min read
How DALL-E Understands Space and Form
research

How DALL-E Understands Space and Form

20 min read
Building an AI Art Gallery in Esy
build

Building an AI Art Gallery in Esy

8 min read

Comments (42)

Join the discussion about this experiment