This script indexes ~800 poem verses from the huggingface poem_sentiment
dataset, and uses a transformer model to index them,
and performs a KNN search using FAISS module.
Before running, install all the requirements with these 3 commands:
conda create -n jina-2.0 -c conda-forge -c huggingface faiss-cpu datasets
conda activate jina-2.0
pip install jina sentence-transformers --pre