Notebooks
E
Elastic
Query Examples

Query Examples

navigating-an-elastic-vector-databaseopenai-chatgptlangchain-pythonchatgptgenaielasticsearchelasticopenaiAIchatlogvectordatabasenotebooksPythonsearchgenaistacksupporting-blog-contentvectorelasticsearch-labslangchainapplications

Query Examples

This notebook contains a few examples of search performed on the books index previously created from the files local_embedding_example or pipeline-inference-example.

[ ]
[2]

Connect to Elasticsearch with an Elastic Deployemnt Endpoint and Elastic Api Key

This notebook connects to the books-pipeline index, as the ingestion-based scripts index all of the books by default. If you would like to use the books-local index instead, replace the value of INDEX_NAME to books-local below.

[ ]

The queries will return and display using the print_results function defined below which outlines the book title, description, and search return score.

[6]

1. Vector Search Example

[ ]

2. Full-Text Search Example

[ ]

3. Hybrid Search Example

[ ]