patw/VectorService

A small vector API service for generating Small, Medium and Large language vectors from Spacy using FastAPI

7

stars

22

commits

Python

primary language

Jan 4, 2024

updated

README

VectorService

A small vector API service for generating Small, Medium and Large language vectors from Spacy using FastAPI

The service will let you generate vectors (96d or 300d) for each language model as well as perform comparisons using the built in cosine similarity functions.

SimDiff endpoint will allow you to compare the outputs of all 3 models when comparing 2 strings of text. This is useful for showing the difference in accuracy between these models.

Local Installation

pip install -r requirements.txt

python -m spacy download en_core_web_sm
python -m spacy download en_core_web_md
python -m spacy download en_core_web_lg

Local Running

uvicorn main:app --reload

Running in docker

docker run -t -i -d -p 80:80 --name vectorservice --restart unless-stopped graboskyc/vectorservice:latest

And visit http://localhost:80/docs in a browser

Contributors

patw

16 commits

graboskyc

6 commits

patw/VectorService

A small vector API service for generating Small, Medium and Large language vectors from Spacy using FastAPI

7

stars

22

commits

Python

primary language

Jan 4, 2024

updated

README

VectorService

A small vector API service for generating Small, Medium and Large language vectors from Spacy using FastAPI

The service will let you generate vectors (96d or 300d) for each language model as well as perform comparisons using the built in cosine similarity functions.

SimDiff endpoint will allow you to compare the outputs of all 3 models when comparing 2 strings of text. This is useful for showing the difference in accuracy between these models.

Local Installation

pip install -r requirements.txt

python -m spacy download en_core_web_sm
python -m spacy download en_core_web_md
python -m spacy download en_core_web_lg

Local Running

uvicorn main:app --reload

Running in docker

docker run -t -i -d -p 80:80 --name vectorservice --restart unless-stopped graboskyc/vectorservice:latest

And visit http://localhost:80/docs in a browser

Contributors

patw

16 commits

graboskyc

6 commits

Languages

Python

85.6%

Dockerfile

9.8%

Shell

4.6%