Integration¶
Dependencies¶
LVSM is an substantive module, so it should be integrated into Luna Platform already deployed. LVSM services depends on the following Luna Platform components:
Luna Configurator
Luna Events
Luna Faces
Configurator integration¶
To integrate LVSM in Luna Platform, you need first upload its settings to Luna Configurator using configs migration mechanism. Special docker container entrypoint is supplied for these purposes.
To migrate configs to the latest revision just run following command:
docker run --rm --entrypoint='' --network host ${DOCKER_REGISTRY}/luna-vector-search-module:${LVSM_TAG} python -m luna_vector_search_module.configs.configs.migrate head --config_db_url postgres://luna:luna@127.0.0.1:5432/luna_configurator
For downgrade, specify the target revision that can also be relative:
docker run --rm --entrypoint='' --network host ${DOCKER_REGISTRY}/luna-vector-search-module:${LVSM_TAG} python -m luna_vector_search_module.configs.migrate -1
After these steps, you can start LVSM services with config received from Luna Configurator.
The run instructions¶
Python Matcher Proxy integration¶
Once LVSM is running, you can integrate vector search into Luna Python Matcher Proxy through the plugin system. See matching plugin for details.
When using the matching plugin, you can make HTTP requests to Luna Python Matcher Proxy as usual, and it will forward the acceptable requests to LVSM, and then enrich the match results if needed.