Skip to main content

llama-index embeddings zhipuai integration

Project description

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

Project details


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.4.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.4.0.tar.gz.

File metadata

  • Download URL: llama_index_embeddings_zhipuai-0.4.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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.4.0.tar.gz
Algorithm Hash digest
SHA256 137097abdc48f7e34127132757d766a05970091e95324bb61be6a51fb8635e55
MD5 4d5bddbc593f9cd4d32e5da881e8f307
BLAKE2b-256 efc5d16e3bd58f3e7c7efa1835144f56cdc2d4d740ae0367b21783ddb25e4cca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llama_index_embeddings_zhipuai-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b272e04ca3ac719bee59c77487ddb6fd10d87df7ac98bac8db8489eb73c14b85
MD5 cf62f72a5553454d749fc2d22a702867
BLAKE2b-256 c21b1fbd2a521c491e9fff9664b682c9f34482f71d4582487321add2a3dc1cb4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page