.
├─── pretrain.py # Pretrain
├─── index.py # Index the columns of tables
├─── query.py # Get the union results
├─── hnsw_search.py
└─── starmie.md
Step1: Check your environment
You need to properly install nvidia driver first. To use GPU in a docker container You also need to install nvidia-docker2 (Installation Guide). Then, Please check your CUDA version via nvidia-smi
Step2: Pretrain
Here are some parameters:
-- task [Choose task, str] [opendata, opendata_large, webtable, webtable_large]
python pretrain.py --task webtableStep3: Indexing
Here are some parameters:
--benchmark [Choose benchmark, str] [opendata, opendata_large, webtable, webtable_large]
python index.py --benchmark webtableStep4: Querying
--benchmark [Choose benchmark, str] [opendata, opendata_large, webtable, webtable_large]
--K [Choose top-k ,int] [5~60]
--threshold [Choose threshold, float] [0.5~1.0]
--N [Choose N, int] [4, 10, 16, 25, 50]
python query.py --benchmark webtable --K 5 --N 10 --threshold 0.7