Harry Potter and the Elastic Python Clients
summary
Indexed the first three Harry Potter subtitles into an Elasticsearch Cloud index and runs queries from a notebook using the Elasticsearch Python client and the higher‑level DSL while importing models with Eland for model import. Pulls Hugging Face containers via Docker, creates ingest pipelines that add sentiment labels and sentence-transformer embeddings to each sentence, then performs vector (cosine) and combined semantic+filter searches. Shows that embeddings surface synonyms and surprising antonym proximity, demonstrates live inference latency, and mentions Elser (enterprise) vs open models and ANN/performance tradeoffs.
AI-written summary · about
chapters (14)
- 0:00Introduction to Elastic Python
- 1:16Why Harry Potter theme
- 2:39Python clients overview
- 4:23Eland for machine learning
- 6:29Elastic interface demo
- 8:16Python client in notebooks
- 9:42Movie subtitles dataset
- 10:49Sentiment analysis with Eland
- 14:03Vector search basics
- 15:46Semantic search examples
- 17:54Combining sentiment and vectors
- 19:39Practical applications beyond HP
- 20:45Elser and licensing notes
- 21:27Q&A session
