Create An Elastic Serverless Search Project Programmatically
openai-chatgptlangchain-pythonchatgptgenaielasticsearchelasticopenaiAIsupporting-video-contentchatlogvectordatabasecreate_an_elastic_serverless_project_programmaticallyPythonsearchgenaistackvectorelasticsearch-labslangchainapplications
alph-notebooks/elasticsearch-labs / Create_an_Elastic_Serverless_Search_Project_Programmatically.ipynb
Export
Create an Elastic Serverless Search Project Programmatically
This notebook will show you how to:
- Create an Elastics Serverless Project
This tutorial assumes you have an Elastic Cloud account.
If not head over to cloud.elastic.co/trial
Notebook Setup
- Install elasticsearch python library
- import required libraries
[ ]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 960.5/960.5 kB 17.5 MB/s eta 0:00:00 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.3/65.3 kB 4.6 MB/s eta 0:00:00
[ ]
Setup Your Cloud API Key
- Generate your secret API key at https://cloud.elastic.co/account/keys
- Run the next cell to store your API Key
[ ]
Enter your API key: ·········· API key successfully entered!
Create Elasticsearch project
Configure:
- name of project -
name - cloud region -
region_id - headers
Then create the project!
[ ]
Serverless projects generally start pretty quickly
We'll loop and wait for the project to be configured and ready to use
[ ]
Waiting for project to be ready. Current status:initializing - Loop 16 Sleeping 10 seconds Project is ready
Retrieve Serverless Project Connection Information
Create elasticsearch client
We set the connection information from the es_project response above.
[ ]
Project API Key
Create a Project level API key
[ ]
full_access_key has been created
Summary
[ ]