Introduction
Overview to MyScale and High performance vector search You can now register on our SaaS and start a cluster now! If you are also interested in how we managed to integrate SQL and vector, please refer to this document for further syntax reference. We also deliver with live demo on huggingface! Please checkout our huggingface space! They search millions of vector within a blink!Installation and Setup
- Install the Python SDK with
pip install clickhouse-connect
Setting up environments
There are two ways to set up parameters for myscale index.-
Environment Variables
Before you run the app, please set the environment variable with
export:export MYSCALE_HOST='<your-endpoints-url>' MYSCALE_PORT=<your-endpoints-port> MYSCALE_USERNAME=<your-username> MYSCALE_PASSWORD=<your-password> ...You can easily find your account, password and other info on our SaaS. For details please refer to this document Every attributes underMyScaleSettingscan be set with prefixMYSCALE_and is case insensitive. -
Create
MyScaleSettingsobject with parameters
Wrappers
supported functions:add_textsadd_documentsfrom_textsfrom_documentssimilarity_searchasimilarity_searchsimilarity_search_by_vectorasimilarity_search_by_vectorsimilarity_search_with_relevance_scoresdelete
VectorStore
There exists a wrapper around MyScale database, allowing you to use it as a vectorstore, whether for semantic search or similar example retrieval. To import this vectorstore:Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.