Hi @aisyaharifin , the notebooks use cloud because it's very easy to spin up. You could use these examples and the ElasticsearchStore documentation to modify cloud examples to work with an on prem deployment.
What Ashish is showing in this example is providing the self-signed SSL cert to the elasticsearch client.
If your self-hosted elasticsearch is only for development purposes, you can disable SSL. Heres an example of how to run via docker here Elasticsearch | 🦜️🔗 Langchain
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.