Openai Elasticsearch Client
openai-chatgptlangchain-pythonchatgptgenaielasticsearchelasticopenaiAIplayground-exampleschatlogvectordatabasenotebooksPythonsearchgenaistackvectorelasticsearch-labslangchainapplications
Export
[1]
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. langchain-openai 0.1.4 requires langchain-core<0.2.0,>=0.1.46, but you have langchain-core 0.2.9 which is incompatible. [notice] A new release of pip is available: 24.0 -> 24.1.1 [notice] To update, run: pip install --upgrade pip
Example Integration code
To adapt this example for your use-case:
- Update your connection details in the
es_client - Replace the es_query with the query suggested in Playground
- Replace the index_source_fields with the fields you want to use for context, per index.
- Update the prompt to reflect the Plaground prompt
[ ]