Skip to main content

LlamaIndex Embeddings Integration: ZhipuAI

Installation

%pip install llama-index-embeddings-zhipuai
!pip install llama-index

Basic usage

# Import ZhipuAI
from llama_index.embeddings.zhipuai import ZhipuAIEmbedding

embedding = ZhipuAIEmbedding(model="embedding-2", api_key="YOUR API KEY")

response = embedding.get_general_text_embedding("who are you?")
print(response)

# Output: [0.1, 0.2, ...]

import asyncio

response = asyncio.run(embedding.aget_general_text_embedding("who are you?"))
print(response)
# Output: [0.1, 0.2, ...]

ZhipuAI Documentation

https://bigmodel.cn/dev/howuse/introduction

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_embeddings_zhipuai-0.5.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file llama_index_embeddings_zhipuai-0.5.0.tar.gz.

File metadata

  • Download URL: llama_index_embeddings_zhipuai-0.5.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_embeddings_zhipuai-0.5.0.tar.gz
Algorithm Hash digest
SHA256 8b71e9fdaf24669d84dde6fd83a87ede5bc65d72ce4436d7486584d9dd2e7dc8
MD5 1d89c587df8404df72b06bc042176668
BLAKE2b-256 4aae9b8a71ab4961956676a3dd5efbaccae66c08a53dec6cc16ea71f9292574d

See more details on using hashes here.

File details

Details for the file llama_index_embeddings_zhipuai-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: llama_index_embeddings_zhipuai-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_embeddings_zhipuai-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 23668013ad74ad7a76dfaaa9bddd60c8444c7faf5f1d4bd7cf115a60101067a6
MD5 4d03fdba1df8c6da75c1082115e1c291
BLAKE2b-256 0249474ab6499b1f4d89ba104a6245b60bd36dfbd36973452d105f44ed9839e7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page