Softwr

Databases · head to head

Milvus vs Optuna

Milvus logo

Milvus

Databases

Open-source vector database for scalable similarity search

From
Free
Free plan
Yes
Optuna logo

Optuna

Databases

Open-source Python framework for automated hyperparameter optimisation

From
Free
Free plan
Yes

The short version

  • Milvus is an open-source vector database; Optuna is an MIT-licensed hyperparameter optimisation framework.
  • Both are free.
  • Only Milvus lists billion-scale vectors; only Optuna lists pruning of unpromising trials.
  • Where Milvus falls short: vector dimensions are capped at 32,768.
  • Where Optuna falls short: searches are only as good as the objective and search space defined.

How do Milvus and Optuna differ?

Milvus and Optuna differ on pricing model (Freemium against Open-source) and platforms. Only the attributes on which Milvus and Optuna actually diverge.

Attributes where Milvus and Optuna differ
AttributeMilvusOptuna
Pricing modelFreemiumOpen-source
PlatformsLinux, macOS, Windows, WebWeb

Identical on both: starting price (Free), free tier (Yes).

Not yet recorded: category for Optuna, founded for Optuna.

Which features does each one have?

They share no listed features; 14 appear only for Milvus and 7 only for Optuna. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Milvus

  • Billion-scale vectors
  • Multiple index types
  • GPU acceleration
  • Hybrid search
  • Data partitioning
  • PyTorch
  • TensorFlow
  • Hugging Face

Only in Optuna

  • Define-by-run search spaces
  • Pruning of unpromising trials
  • Parallel and distributed search
  • Framework-agnostic integrations
  • Optuna Dashboard
  • OptunaHub feature sharing
  • Multiple search algorithms

What is each one used for?

Milvus is most often brought in for self hosting a vector database for semantic search; Optuna for tuning deep learning models. The jobs each tool is most often brought in to do.

Milvus

  • Self hosting a vector database for semantic searchnot Optuna
  • Storing and querying embeddings for retrieval augmented generationnot Optuna
  • Similarity search over images, audio or text at scalenot Optuna

Optuna

  • Tuning deep learning modelsnot Milvus
  • Tuning gradient-boosted treesnot Milvus
  • Pruning slow experiments earlynot Milvus
  • Parallel searches across machinesnot Milvus

Where do Milvus and Optuna fall short?

Milvus's most cited limit: vector dimensions are capped at 32,768. Optuna's: searches are only as good as the objective and search space defined. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Milvus

  • Vector dimensions are capped at 32,768
  • A collection is limited to 64 fields, 1,024 partitions and 16 shards
  • Only 1 index is allowed per field
  • Search returns at most 16,384 vectors as top-k, and nq is capped at 16,384
  • Input and output per RPC is capped at 64 MB for insert, search and query
  • VARCHAR values are limited to 65,535 characters
  • Data loaded into query nodes cannot exceed 90% of available memory
  • An instance supports at most 65,536 collections

Optuna

  • Searches are only as good as the objective and search space defined
  • Distributed runs need a shared storage backend set up by the user
  • Works only with Python code, so non-Python teams cannot use it
  • Tuning only; no experiment tracking or deployment features

How much do Milvus and Optuna cost?

Milvus is free to use; Optuna is free to use. Plan by plan below, from each vendor's own pricing page.

Milvus

Free
  • Open SourceFree
    • Full features
    • Self-hosted
    • Community support
  • Zilliz CloudFree
    • Managed service
    • Free tier available

Optuna

Free

No published plan breakdown. See the Optuna review.

Which should you pick?

Choose Milvus if

  • You need billion-scale vectors.
  • You want to start without paying.
  • You work on Linux, macOS, Windows, Web.
  • You also want multiple index types.

Choose Optuna if

  • You need define-by-run search spaces.
  • You want to start without paying.
  • You also want pruning of unpromising trials.

Questions people ask

Is Milvus or Optuna better?
It depends on the job. Milvus fits self hosting a vector database for semantic search; Optuna fits tuning deep learning models. Milvus starts at Free and Optuna at Free.
Which is cheaper, Milvus or Optuna?
Milvus starts at Free and Optuna at Free.
Does Milvus or Optuna run on more platforms?
Milvus runs on Linux, macOS, Windows, Web. Optuna runs on Web.
Can I use Milvus for free?
Both have a free tier, so you can try either at no cost before committing.
What is Milvus best used for?
Milvus is most often used for self hosting a vector database for semantic search, storing and querying embeddings for retrieval augmented generation, similarity search over images, audio or text at scale. Of those, self hosting a vector database for semantic search and storing and querying embeddings for retrieval augmented generation are not what Optuna is typically brought in for.
What can Milvus do that Optuna cannot?
Milvus covers Billion-scale vectors, Multiple index types, GPU acceleration, Hybrid search. Optuna covers Define-by-run search spaces, Pruning of unpromising trials, Parallel and distributed search, Framework-agnostic integrations.

Answered from the vendors’ own pages

Milvus: How much does Milvus cost?

Milvus is open-source and free to use and modify. The self-hosted version has no licensing cost. Zilliz Cloud (the managed SaaS version) does not publish pricing on the website.

Source
Optuna: What licence does Optuna use?

The MIT License.

Source
Milvus: Is there a free or open-source version of Milvus?

Yes, Milvus is fully open-source and available for free. Milvus Lite is a lightweight option for learning and prototyping that can be installed via pip.

Source
Optuna: Who develops Optuna?

Preferred Networks, which first introduced it in 2018.

Source
Milvus: Does Milvus offer a managed cloud service?

Yes, Zilliz Cloud is a fully managed Milvus cloud offering with serverless and dedicated cluster options. Pricing must be requested from the company as it is not listed on the public website.

Source
Optuna: What Python version is needed?

Python 3.10 or newer.

Source
Share

Related pages

Other head to heads