This project is used for local vector computation of bibliothecarius
git clone git@github.com:coderabbit214/text2vec-bibliothecarius.git
cd text2vec-bibliothecarius
After downloading the model, place it in the ./text2vec-base-chinese
folder.
File list ls -l text2vec-base-chinese/
total 799408
-rw-r--r--@ 1 coderabbit staff 4100 Mar 30 15:58 README.md
-rw-r--r--@ 1 coderabbit staff 856 Mar 30 15:58 config.json
-rw-r--r--@ 1 coderabbit staff 1175 Mar 30 15:58 gitattributes.txt
-rw-r--r--@ 1 coderabbit staff 546 Mar 30 15:58 logs.txt
-rw-r--r--@ 1 coderabbit staff 409154033 Mar 30 15:59 pytorch_model.bin
-rw-r--r--@ 1 coderabbit staff 112 Mar 30 15:58 special_tokens_map.json
-rw-r--r--@ 1 coderabbit staff 319 Mar 30 15:58 tokenizer_config.json
-rw-r--r--@ 1 coderabbit staff 109540 Mar 30 15:59 vocab.txt
docker-compose up -d
curl --location --request POST 'http://127.0.0.1:8001/vector' \
--header 'Content-Type: application/json' \
--data-raw '{
"input":"hi"
}'