Skip to main content

llama-index embeddings opea integration

Project description

LlamaIndex Embeddings Integration: OPEA Embeddings

OPEA (Open Platform for Enterprise AI) is a platform for building, deploying, and scaling AI applications. As part of this platform, many core gen-ai components are available for deployment as microservices, including LLMs.

Visit https://opea.dev for more information, and their GitHub for the source code of the OPEA components.

Installation

  1. Install the required Python packages:
%pip install llama-index-embeddings-opea

Usage

from llama_index.embeddings.opea import OPEAEmbedding

embed_model = OPEAEmbedding(
    model="<model_name>",
    api_base="http://localhost:8080/v1",
    embed_batch_size=10,
)

embeddings = embed_model.get_text_embedding("text")

embeddings = embed_model.get_text_embedding_batch(["text1", "text2"])

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_opea-0.2.2.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llama_index_embeddings_opea-0.2.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_embeddings_opea-0.2.2.tar.gz.

File metadata

File hashes

Hashes for llama_index_embeddings_opea-0.2.2.tar.gz
Algorithm Hash digest
SHA256 538f2dc31e57fc92639e596913c368f86a00204e0e10feb4def4c82dcdb3fffe
MD5 e656e225e998701cc1cccf61d215935e
BLAKE2b-256 f896b3a8642fb00e69d6e471378df5202ed85e10170b77731b84579b57e6a686

See more details on using hashes here.

File details

Details for the file llama_index_embeddings_opea-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_embeddings_opea-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ab6eaaf3457b8f7c41f7db8db24e54f8afb42bc5049d8248733de72ba547f967
MD5 36463703e08ece02fc1883b512d009b8
BLAKE2b-256 9cd528d36a13314af893914fd4e9057df22fe6ef5dbdfb1417b89bc63f061a25

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