🤫husshhussh
  • Wiki
Reserve
🤫husshhusshOneOne Puppy
The 🤫 magazine
EmbeddingSearchOpen Source

You (Probably) Don’t Need an Embedding Database

Vector Databases are in vogue, but do you really need one to support your AI powered Search?

Justin Donaldson·January 30, 2024·5 min read
You (Probably) Don’t Need an Embedding Database

Vector Databases are in vogue, but do you really need one to support your AI powered Search?

If you’ve been paying attention to the recent advances in Large Language Models (LLM), you’ve noticed that a whole new crop of startups emerged to provide search over embeddings.

vectoDatabaseBrands

Vector libraries and databases source

Search over embeddings is a very different process than search over a database of documents. Embedding search uses a vector space representation of an image or document that has been created by a corresponding model, rather than an inverted index of terms and documents. Search in a vector space is typically handled with nearest neighbor search, which returns the embeddings of the closest records to the target record. This technique is much more intensive to calculate than a simple inverted index lookup, and accordingly databases need to make trade offs for precision/recall in order to provide reasonable performance over large sets of data.

Embedding Databases for Smaller Datasets

Here at hussh we were suprised to realize that there wasn’t a good option for smaller/portable embeddings for databases. Many modeling tasks rely on smaller and more domain-specific datasets to perform domain-specific tasks. For instance, image recognition models might need to index the products of a given storefront. There may be many thousand products, but often not the millions of products that would necessitate a standalone database. Furthermore, a standalone database would need to be running at all times, incurring a large one-time cost for any sort of embedding search functionality.

If one doesn’t have a lot of data, and doesn’t want to pay the maintenance fee on hosted embedding search, using an embedding search database is costly overkill, but what are the options?

Many embedding databases and models use python, so accordingly, the embeddings can be exported in the python pickle format. However, the pickle format is unsafe, making it a risky bet for production systems.

JSON formats can also be used for pickling data, but JSON requires all of the embedding data to be decoded and loaded into memory. This process can take a significant amount of time, making it costly to load/unload embedding datasets on the fly.

Messagepack is another solid option, optimized for speed and portability. Originally, this was the format that we were likely to use. However, in the back of our minds we wondered, can we make it even faster?

Introducing The hussh Catalog Format

We introduce the hussh Catalog Format (HCF), a file format that is optimized for speedy (and lazy) loading of embeddings from disk.

To understand the performance benefits of the HCF format, we’ll use this fashion dataset comprising ~44K product images, representative of the fashion offerings of a mid-to-large size department store.

We’ll also take figures and data from this data science notebook that contains the result of the analysis.

React, developed by Facebook (now Meta), is a flexible library for building user interfaces. It focuses on the view layer, providing a simple and efficient way to create interactive components.

Comparisons

For the purposes of comparison, we’ll generate embedding vectors in three different formats:

  • JSON: A popular option for web development due to it being human-readable
  • Msgpack: A schema-less binary format that is a good option for smaller/faster serialization
  • hussh Catalog Format: A format with a schema designed especially for storing product information and metadata.

File Size

Image

File Size Comparison

File sizes for smaller/embedded databases can add a lot of overhead for search. In our first comparison we look at the file size from our example dataset and see that HCF is half the size of messagepack, and a less than 25% the size of a comparable json format.

File size matters a lot for databases, particularly since files like messagepack and json need to be loaded fully into memory. If you have a bigger file format, your program will use more memory to store it internally, which adds overhead for resource usage and time.

Loading Time Comparison

Interestingly enough, the file size difference becomes even more pronounced when the loading time is compared. The HCF format is a whopping 20,000 times faster at loading the embedding data than JSON, and also beats msgpack by over an order of magnitude.

How is this possible?

The answer is that the hussh Catalog Format reader doesn’t read in the data all at once. Instead, it streams it in as necessary directly from disk without needing to parse the entire file. This technique of lazy loading enables the hussh Catalog Format to all but eliminate a startup delay when loading embedding data.

What was used to build the hussh Catalog Format?

The hussh Catalog Format is built on top of flatbuffers. Flatbuffers is similar to protobuffers, except it’s designed for larger amounts of data that can be streamed lazily. Flatbuffers excel at loading densely packed numeric and textual data in a structured format. The structured format requires a schema, and here’s the current schema for hussh Catalog Format

Using the schema, we can use flatbuffers to generate python runtime classes that stream the file into memory, along with some helper constructor methods. There’s runtime classes for Swift available as well, with more to come.

What can you do with the hussh Catalog Format?

For now, the format is geared towards providing catalog search services. Accordingly, information pertaining to products are supported. As we expand the scope of the format, we will enable more fine-tuned schemas for a growing number of open source personal data formats.

Vibe Search

We’re using the HCF format as a way of providing portable embedding indexes that are available from the phone or from a web server. Our Vibe search service will use it under the hood, making state of the art embedding search more easily available to everyone!

Related Reading

If you’re interested in optimized file protocols specifically for machine learning artifacts, check this overview of GGUF by Vicki Boykis.

The 🤫 hussh magazine

Written by Justin Donaldson, and built to read beautifully here — and to travel to 🤫 One on your phone, your glasses, and visionOS, as one immersive magazine you own.

More from the magazine →Back to top ↑

Keep reading

More stories from the magazine

July 10, 2023

Search and Discovery for Luxury Fashion

Search and discovery go hand in hand when finding the frontiers for personal taste

July 16, 2026

Through the Wall of Worry

An honest, optimistic essay about the anxiety of the AI transition, jobs, privacy, control, and trust, and a credible path through it: ownership, consent, transparency, and keeping the human at the center. Confident, not naive.

July 12, 2026

The Future Is Yours

A research paper from Manish Sainani and the 🤫 Core Product and Technology Team on 🤫 Private Agent One: a private agent that answers only to its owner and works quietly for them, 24/7/365, with their trusted circle of people, AI agents, and machines — so they can live more fully. With gratitude to Thinking Machines Lab's essay on a human future, cited as inspiration. Consent-first, owned, human at the center.

Agent One

  • Overview
  • The 🤫 One app
  • Everything you already use
  • Your life, coordinated
  • A free 🤫 One for every human
  • First-time user guide
  • Watch — see it in a minute
  • Moments — when it connects the dots
  • Pricing
  • Tag One
  • Claim your One

Puppy One

  • Get One
  • The Puppy 100
  • Why Puppy
  • How it works
  • The catalog
  • Brochure, lineup & specs
  • User guide
  • The AI Factory

Solutions

  • Industry solutions
  • For business
  • Enterprise
  • Federal government & agencies
  • 🇺🇸 For service members & veterans
  • 🤫 for America's builders
  • Open letter to the Top 20
  • 🇦🇪 UAE university partnerships
  • For advisors (RIAs)
  • Developers

Ecosystem

  • Partner Portal
  • Partners & GTM hub
  • 🤫 Partner Alignment
  • Build with us
  • The network
  • Day 0 Trusted Circle
  • One for Sellers
  • The pitch - by firm
  • Customers
  • See One live
  • Media - reels & social assets

Resources

  • 🗺️ Visual site map
  • Explore - the whole site, mapped
  • Search every page
  • Sitemap
  • Browse (developer view)
  • The Heartbeat
  • Research & papers
  • Blogs
  • Listen - the podcasts
  • Guides - by topic
  • Wiki

Company

  • About
  • Team
  • Investors
  • Fund A
  • Building in the open
  • Newsroom & press
  • Release notes
  • Careers
  • Rewards
  • Contact
  • Accessibility

Gratitude

  • Gratitude - people we admire
  • Community - the Apple Champions
  • The 1024 - humans of the world
  • Humans we celebrate
🤫husshhusshKirkland, WAPrivacyTerms

© 2026 Hushh Technologies Corporation - an independent company.