Skip to content
LlamaIndex 文档版本 跟随上游 源快照 9a222dcd 更新于 2026-10-18

本指南介绍如何通过 Anyscale Endpoints 使用 Anyscale Embeddings。

如果你在 Colab 中打开这个 Notebook,可能需要先安装 LlamaIndex 🦙。

%pip install llama-index-embeddings-anyscale
!pip install llama-index
from llama_index.embeddings.anyscale import AnyscaleEmbedding

embed_model = AnyscaleEmbedding(
    api_key=ANYSCALE_ENDPOINT_TOKEN, embed_batch_size=10
)
# Basic embedding example
embeddings = embed_model.get_text_embedding(
    "It is raining cats and dogs here!"
)
print(len(embeddings), embeddings[:10])

BytesRouter 是社区翻译站点,所有译文仅供参考,一切以官方英文原文为准。