* move api-based embeddings/reranking calls to api server out of model server, added/modified unit tests
* ran pre-commit
* fix mypy errors
* mypy and precommit
* move utils to right place and add requirements
* precommit check
* removed extra constants, changed error msg
* Update backend/onyx/utils/search_nlp_models_utils.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
* greptile
* addressed comments
* added code enforcement to throw error
---------
Co-authored-by: Jessica Singh <jessicasingh@Mac.attlocal.net>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>