Skip to main content

LlamaIndex Embeddings Integration: Octoai

Using the OctoAI Embeddings Integration is a simple as:

from llama_index.embeddings.octoai import OctoAIEmbedding
from os import environ

OCTOAI_API_KEY = environ["OCTOAI_API_KEY"]
embed_model = OctoAIEmbedding(api_key=OCTOAI_API_KEY)
embeddings = embed_model.get_text_embedding("How do I sail to the moon?")
assert len(embeddings) == 1024

One can also request a batch of embeddings via:

texts = [
    "How do I sail to the moon?",
    "What is the best way to cook a steak?",
    "How do I apply for a job?",
]

embeddings = embed_model.get_text_embedding_batch(texts)
assert len(embeddings) == 3

API Access

Here are some instructions on how to get your OctoAI API key.

Contributing

Follow the good practices of all poetry based projects.

When in VScode, one may want to manually select the Python interpreter, specially to run the example iPython notebook. For this use ctrl+shift+p, then type or select: Python: Select Interpreter

Metadata

Release files for llama-index-embeddings-octoai 0.1.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-octoai 0.1.0
File Size Uploaded Provenance Actions
llama_index_embeddings_octoai-0.1.0.tar.gz 3.1 kB Without provenance Details for llama_index_embeddings_octoai-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 6.9 kB

Release files / llama_index_embeddings_octoai-0.1.0.tar.gz

Download URL llama_index_embeddings_octoai-0.1.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2e5ab800da1ddd49cf0f9b54cea45813fafecfbb341dfc4e4542ad902d7e77e8
BLAKE2b-256 checksum
How to use checksums
32e4b79de9b79a40c2007054ea91cbb5278d12ecfeb841eb5a1caf72ba6f51c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.10.14 Linux/6.5.0-1017-azure

Release files / llama_index_embeddings_octoai-0.1.0-py3-none-any.whl

Download URL llama_index_embeddings_octoai-0.1.0-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c54abc52c38aec52ab2b4e6d670be3c291e532a4c0dcd8978eff492e0a6d441b
BLAKE2b-256 checksum
How to use checksums
1a12baadfbb6db6cf548740ca3831511b6357e5da73e520e380ec14f909babce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.10.14 Linux/6.5.0-1017-azure

Security for llama-index-embeddings-octoai 0.1.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