LlamaIndex Embeddings Integration: Cloudflare Workers AI
Cloudflare Workers AI provides text embedding service for Cloudflare users. You can find a full list of available models from its document https://developers.cloudflare.com/workers-ai/models/#text-embeddings
To learn more about Cloudflare Workers AI in general, visit https://developers.cloudflare.com/workers-ai/
Example
pip install llama-index-embeddings-cloudflare-workersai
from llama_index.embeddings.cloudflare_workersai import CloudflareEmbedding
my_account_id = "example_account_id"
my_api_token = "example_token"
my_embed = CloudflareEmbedding(
account_id=my_account_id,
auth_token=my_api_token,
model="@cf/baai/bge-base-en-v1.5",
)
embeddings = my_embed.get_text_embedding("Why sky is blue")
embeddings_batch = my_embed.get_text_embedding_batch(
["Why sky is blue", "Why roses are red"]
)
For more detailed example of installation and usage, please refer to the Jupyter Notebook example.
Metadata
Release files for llama-index-embeddings-cloudflare-workersai 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llama_index_embeddings_cloudflare_workersai-0.6.0.tar.gz | 4.9 kB | Without provenance | Details for llama_index_embeddings_cloudflare_workersai-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llama_index_embeddings_cloudflare_workersai-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for llama_index_embeddings_cloudflare_workersai-0.6.0-py3-none-any.whl |
Total release size: 9.5 kB
Release files / llama_index_embeddings_cloudflare_workersai-0.6.0.tar.gz
| Download URL | llama_index_embeddings_cloudflare_workersai-0.6.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
13e6135ab9ccddbb376312a802707fb26bbc1b40a6d0d1b42a40d44c515643e8
|
|
BLAKE2b-256 checksum How to use checksums |
bd3d7040763ab86f4655821a5fec39833dc96b4e782afdbe5f3c587d14503329
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / llama_index_embeddings_cloudflare_workersai-0.6.0-py3-none-any.whl
| Download URL | llama_index_embeddings_cloudflare_workersai-0.6.0-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
431ddcfd56a5ffa67915a9a2b544f616f411fd940f4920622f9c24c822e1f101
|
|
BLAKE2b-256 checksum How to use checksums |
b3da6174560a8c1493b719bf6ca472b2a043e75bf0f52922159c6cff0c1e29c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Security for llama-index-embeddings-cloudflare-workersai 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.