Databricks Embeddings
If youβre opening this Notebook on colab, you will probably need to install LlamaIndex π¦.
%pip install llama-index%pip install llama-index-embeddings-databricks
import osfrom llama_index.core import Settingsfrom llama_index.embeddings.databricks import DatabricksEmbedding
# Set up the DatabricksEmbedding class with the required model, API key and serving endpointos.environ["DATABRICKS_TOKEN"] = "<MY TOKEN>"os.environ["DATABRICKS_SERVING_ENDPOINT"] = "<MY ENDPOINT>"embed_model = DatabricksEmbedding(model="databricks-bge-large-en")Settings.embed_model = embed_model
# Embed some textembeddings = embed_model.get_text_embedding( "The DatabricksEmbedding integration works great.")