Notebooks
E
Elastic
Json Chunking Ingest

Json Chunking Ingest

openai-chatgptlangchain-pythonchatgptgenaielasticsearchelasticingestion-and-chunkingopenaiAIchatlogvectordatabasenotebooksPythonsearchgenaistackvectorelasticsearch-labslangchainapplications

JSON load, Extraction and Ingest with ELSER Example

Open In Colab

This workbook demonstrates how to load a JSON file, create passages and ingest into Elasticsearch.

In this example we will:

  • load the JSON using jq
  • chunk the text with LangChain document splitter
  • ingest into Elasticsearch with LangChain Elasticsearch Vectorstore.

We will also setup your Elasticsearch cluster with ELSER model, so we can use it to embed the passages.

[ ]

Connecting to Elasticsearch

[2]

Deploying ELSER

[ ]

Loading a JSON file, creating chunks into docs

This will load the webpage from the url provided, and then chunk the html text into passage docs.

[7]

Ingesting the passages into Elasticsearch

This will ingest the passage docs into the Elasticsearch index, under the specified INDEX_NAME.

[ ]