|
|
@ -33,18 +33,6 @@
|
|
|
|
"from langchain.chat_models import ChatOpenAI"
|
|
|
|
"from langchain.chat_models import ChatOpenAI"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
|
|
|
|
"cell_type": "code",
|
|
|
|
|
|
|
|
"execution_count": 2,
|
|
|
|
|
|
|
|
"id": "659b5ed0",
|
|
|
|
|
|
|
|
"metadata": {},
|
|
|
|
|
|
|
|
"outputs": [],
|
|
|
|
|
|
|
|
"source": [
|
|
|
|
|
|
|
|
"import warnings\n",
|
|
|
|
|
|
|
|
"\n",
|
|
|
|
|
|
|
|
"warnings.filterwarnings(\"ignore\")"
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 3,
|
|
|
|
"execution_count": 3,
|
|
|
@ -54,8 +42,8 @@
|
|
|
|
"source": [
|
|
|
|
"source": [
|
|
|
|
"# Initialize Elasticsearch python client.\n",
|
|
|
|
"# Initialize Elasticsearch python client.\n",
|
|
|
|
"# See https://elasticsearch-py.readthedocs.io/en/v8.8.2/api.html#elasticsearch.Elasticsearch\n",
|
|
|
|
"# See https://elasticsearch-py.readthedocs.io/en/v8.8.2/api.html#elasticsearch.Elasticsearch\n",
|
|
|
|
"ELASTIC_SEARCH_SERVER = \"https://elastic:gvODoJ_nRYQIJZfG7=ec@localhost:9200\"\n",
|
|
|
|
"ELASTIC_SEARCH_SERVER = \"https://elastic:pass@localhost:9200\"\n",
|
|
|
|
"db = Elasticsearch(ELASTIC_SEARCH_SERVER, ca_certs=False, verify_certs=False)"
|
|
|
|
"db = Elasticsearch(ELASTIC_SEARCH_SERVER)"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|