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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_embeddings_opea-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e908ea3266177e7045302590b6f378e1e71a415ff9f495832889df8127b6ef19
MD5 77391ab82e1f70ffc61c4f73211d1aab
BLAKE2b-256 e15cf08b5ef8bc3afe02ebf8739b3f27d3f7b421b6058a6ef09e0ac754518a42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_embeddings_opea-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bb9ec57b875766bc2c1de9808e4744fcaa0f1640e0782a97f3d420e3cf761119
MD5 be306eef30f9979741deab2d5b4c791e
BLAKE2b-256 df01e407a6579c1426ab125e185dedf7a23e03c0a073ce8ae25952b9900c3000

See more details on using hashes here.

Supported by

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