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.0.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.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_embeddings_opea-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8e0e79eb17b09d2b3e6f2abb970ddc264113e83659080fa7a9592e3456b0c725
MD5 511eab1ebe367e05860ea3b3a596b46a
BLAKE2b-256 102eedba2fcf8376e16c9c8fdbc258e1aef60c8adc4031776eb52a9f02fdeca7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_embeddings_opea-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d70e30cb7785404550bd352cc99ce4d537334efdd9e7bd25d3d8d61b5d2404a6
MD5 c439c435b2809b18d9bf2b74c517cd80
BLAKE2b-256 93de6694f9cad2f5c433ede59a0a8c083a2ff97a6adf79ff9c19c944fa2bd7d6

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