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

Metadata

Release files for llama-index-embeddings-zhipuai 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llama-index-embeddings-zhipuai 0.6.0
File Size Uploaded Provenance Actions
llama_index_embeddings_zhipuai-0.6.0.tar.gz 4.1 kB Without provenance Details for llama_index_embeddings_zhipuai-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-embeddings-zhipuai 0.6.0
File Interpreter ABI Platform Actions
llama_index_embeddings_zhipuai-0.6.0-py3-none-any.whl Python 3 none any Details for llama_index_embeddings_zhipuai-0.6.0-py3-none-any.whl

Total release size: 7.9 kB

Release files / llama_index_embeddings_zhipuai-0.6.0.tar.gz

Download URL llama_index_embeddings_zhipuai-0.6.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
cdc2367b436ebd7c7c72f840e87def44332d226a9e265797eaa07c4d17cfbc09
BLAKE2b-256 checksum
How to use checksums
ae9ae8ed8be01194b0a25edc3b0e6eb18fdba763c46f1f3ed9585ac472ce6b8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / llama_index_embeddings_zhipuai-0.6.0-py3-none-any.whl

Download URL llama_index_embeddings_zhipuai-0.6.0-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d76893ab6b1588f763465f8a64717efec0a472557d6e4e3c1960e4dfe918e46
BLAKE2b-256 checksum
How to use checksums
2297cb20b58599137c8c3a9205601ecc2cc3334b23b0691db24121506e23f463
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for llama-index-embeddings-zhipuai 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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