Skip to content

Instantly share code, notes, and snippets.

View tadejsv's full-sized avatar
🏋️‍♂️
Training

Tadej Svetina tadejsv

🏋️‍♂️
Training
View GitHub Profile
@tadejsv
tadejsv / Instructions.md
Last active July 11, 2021 00:47
Jina 2.0 example

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
@tadejsv
tadejsv / instruction.md
Created February 2, 2021 12:10
Install conda/python on Ubuntu

These commands should be entered in the terminal. Open it with Ctrl + Alt + T

  1. Download installer:
curl -o miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
  1. Install
bash ./miniconda.sh