DigitalOcean Embeddings for LlamaIndex
This package provides a DigitalOceanEmbeddings implementation for LlamaIndex that calls DigitalOcean AI embeddings endpoints.
Quickstart
-
Install:
pip install llama-index-digitalocean-embeddings -
Set environment variable:
-
DIGITALOCEAN_TOKEN: DigitalOcean Personal Access Token with AI access. -
Getting a DigitalOcean token
Your
DIGITALOCEAN_TOKENis a Personal Access Token you create in the DigitalOcean Control Panel:a. Log in to
https://cloud.digitalocean.com. b. Go to Settings → API → Personal Access Tokens. c. Click Generate New Token, choose the scopes you need (for embeddings, typically CRUD for GenAI and read for project), give the token a name, and click Generate. d. Copy the token and set it in your shell:export DIGITALOCEAN_TOKEN=your_token_here
For more detailed, step‑by‑step guidance, see the official DigitalOcean documentation.
-
-
Use:
import os from llama_index.digitalocean.embeddings import DigitalOceanEmbeddings from llama_index.core import VectorStoreIndex, Document # Read your token however you like (for example from an env var) and # pass it explicitly to the embedding class: token = os.environ["DIGITALOCEAN_TOKEN"] embed_model = DigitalOceanEmbeddings(model="text-embedding-3-small", api_token=token) docs = [Document(text="Hello from DigitalOcean")] index = VectorStoreIndex.from_documents(docs, embed_model=embed_model) print(index.as_query_engine().query("What was the greeting?"))
Configuration
model: Embedding model name (e.g.,text-embedding-3-small,text-embedding-3-large).api_token:DIGITALOCEAN_TOKEN.
License
Apache-2.0.
Metadata
Release files for llama-index-digitalocean-embeddings 0.1.7
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 | |
|---|---|---|---|---|
| llama_index_digitalocean_embeddings-0.1.7.tar.gz | 12.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llama_index_digitalocean_embeddings-0.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.0 kB
Release files / llama_index_digitalocean_embeddings-0.1.7.tar.gz
| Download URL | llama_index_digitalocean_embeddings-0.1.7.tar.gz |
|---|---|
| Size | 12.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89a1c08d270b143f9381a1fcd1ddca84435046c3e396274447bc3e835069ae04
|
|
BLAKE2b-256 checksum How to use checksums |
a24e3eb4a4e3a6efe565be4bf47a89d164db7541225509157e07b985a5d29f80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / llama_index_digitalocean_embeddings-0.1.7-py3-none-any.whl
| Download URL | llama_index_digitalocean_embeddings-0.1.7-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
957cac74d4863881dba89a7207d38f6c47222e333ad89d1ad2891d1ea887c64d
|
|
BLAKE2b-256 checksum How to use checksums |
8ef73d9632fee165797284a1285dbea3fab69c6f631e1fbe3e76c1525cfb960b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Security for llama-index-digitalocean-embeddings 0.1.7
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.