Machine Economy Press

Machine Economy Press

Share this post

Machine Economy Press
Machine Economy Press
How to connect ChatGPT and ElasticSearch?
Machine Learning

How to connect ChatGPT and ElasticSearch?

If Search is getting more useful, when does it get specialized?

Michael Spencer's avatar
Michael Spencer
Apr 20, 2023
∙ Paid
8

Share this post

Machine Economy Press
Machine Economy Press
How to connect ChatGPT and ElasticSearch?
1
Share
red yellow and blue light
Photo by Joes Valentine on Unsplash

Welcome Back!,

There are ways LLMs will impact search that we aren’t thinking very well about. Shay Banon created the precursor to Elasticsearch, called Compass, in 2004. Nearly 20 years later ChatGPT and ElasticSearch are compatible. That is, you can connect ChatGPT to proprietary data stores using Elasticsearch and build question/answer capabilities for your data.

How LLMs leverage proprietary data across industries is a holy grail for some products. We are seeing this already with a proliferation of LLMs specific to industries and the specialized high quality data and Big Data of some companies.

Share

It’s actually pretty easy:

  • Elasticsearch is a distributed, free and open search and analytics engine for all types of data, including textual, numerical, geospatial, structured, and unstructured. Elasticsearch is built on Apache Lucene and was first released in 2010 by Elasticsearch N.V. (now known as Elastic).

  • Known for its simple REST APIs, distributed nature, speed, and scalability, Elasticsearch is the central component of the Elastic Stack, a set of free and open tools for data ingestion, enrichment, storage, analysis, and visualization. Commonly referred to as the ELK Stack (after Elasticsearch, Logstash, and Kibana), the Elastic Stack now includes a rich collection of lightweight shipping agents known as Beats for sending data to Elasticsearch.

Even from a non-technical point of view, I’ve been interested in Elasticsearch for some time and new kinds of search potential regarding enterprise data.

Cleary ChatGPT and Elasticsearch has incredible synergy.

  1. Elasticsearch lets you perform and combine many types of searches — structured, unstructured, geo, metric — any way you want. Start simple with one question and see where it takes you.

  2. It's one thing to find the 10 best documents to match your query. But how do you make sense of, say, a billion log lines? Elasticsearch aggregations let you zoom out to explore trends and patterns in your data.

  3. Now imagine all of this made sense in a ChatGPT like interface with those GPT-4 capabilities?

The Human Machine Interface

Whatever you think of Generative A.I., the human-AI hybrid workforce is coming into being now.

Let’s walk though some of the finer details:

Keep reading with a 7-day free trial

Subscribe to Machine Economy Press to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Michael Spencer
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share