█

AI/TLDR

Buy me a coffee
Buy me a coffee

Marqo

Vector search over text and images with embeddings built in

Vector DatabasesOpen source
Language
Python
License
Apache-2.0
$docker rm -f marqo
IN SHORT

What is Marqo?

Marqo is an open-source vector search engine. It sits in the Vector Databases category of the Retrieval & Knowledge (RAG) tools and is open-source, written in Python and licensed Apache-2.0. To get started: start the Marqo server with Docker.

Overview

Marqo is an open-source vector search engine. Unlike a plain vector database, it handles the embedding step for you: you send raw text or images, and Marqo generates the vectors, stores them, and serves semantic search over them. This means you don't have to run a separate model to turn your documents into vectors before indexing.

It runs as a Docker container with an HTTP API and a Python client. You create an index, add documents, and search with a natural-language query. Marqo decides which documents are the closest match by meaning rather than by exact keyword overlap, which makes it a fit for the vector-database category where retrieval quality depends on good embeddings.

Note: the Marqo open-source project is marked as deprecated in its README and no longer receives updates. The company now points new users to its hosted product at marqo.ai. The open-source code remains usable for self-hosted projects, but plan around the lack of ongoing maintenance.

What it does

  • Generates embeddings from text and images at index time, so no separate embedding pipeline is needed
  • Runs as a single Docker container that exposes an HTTP API
  • Official Python client for creating indexes, adding documents, and searching
  • Tensor fields let you choose which document fields are embedded for semantic search
  • Returns ranked results by semantic similarity to a natural-language query

Getting started

Marqo runs as a Docker container and is driven from Python. Start the server, install the client, then index and search a few documents.

Start the Marqo server with Docker

Pull and run the Marqo image. It listens on port 8882.

bashbash
docker rm -f marqo
docker pull marqoai/marqo:latest
docker run --name marqo -p 8882:8882 marqoai/marqo:latest

Install the Python client

Install the marqo package from PyPI.

bashbash
pip install marqo

Index documents and search

Connect to the local server, create an index, add documents with tensor_fields set to the field you want embedded, then run a natural-language query.

pythonpython
import marqo

mq = marqo.Client(url='http://localhost:8882')

mq.create_index("my-first-index")

mq.index("my-first-index").add_documents([
    {
        "Title": "The Travels of Marco Polo",
        "Description": "A 13th-century travelogue describing Polo's travels"
    },
    {
        "Title": "Extravehicular Mobility Unit (EMU)",
        "Description": "The EMU is a spacesuit that provides environmental protection, "
                       "mobility, life support, and communications for astronauts",
        "_id": "article_591"
    }],
    tensor_fields=["Description"]
)

results = mq.index("my-first-index").search(
    q="What is the best outfit to wear on the moon?"
)

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Semantic search over a document collection without building a separate embedding pipeline
  • Image search where queries and stored images are matched by meaning rather than tags
  • Adding natural-language retrieval to an app prototype using a single self-hosted container
  • Backing a retrieval step for question-answering over your own text data

How Marqo compares

Marqo alongside other open-source vector databases tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
Supabase★ 116kManaged Postgres backend whose Vector toolkit (pgvector) stores, indexes, and queries embeddings next to transactional data.
Redis Cloud★ 77.8kFully-managed Redis with built-in vector search, offering low-latency similarity and hybrid queries over any embeddings.
Milvus★ 46.8kA distributed vector database for storing and searching billions of embeddings at scale, with multiple index types and Kubernetes-native deployment.
FAISS★ 42kA library from Meta for efficient similarity search and clustering of dense vectors, with both exact and approximate indexes.
Qdrant★ 35.8kA Rust-based vector search engine that stores embeddings with rich payload filtering for semantic search and recommendation systems.
Chroma★ 29.8kA developer-focused vector database designed for quickly building retrieval and RAG features with a simple Python and JavaScript API.
pgvector★ 23.9kA PostgreSQL extension that adds a vector data type and similarity search so you can store and query embeddings inside an existing Postgres database.
Marqo★ 5kVector search over text and images with embeddings built in