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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_embeddings_opea-0.2.1.tar.gz
Algorithm Hash digest
SHA256 78fae0d2576f61e418d08e909b88c63092102aef5a06a66f4c0d5f648e56e225
MD5 dce58d2fa36076a054c369fd0b5e8781
BLAKE2b-256 bdec9327b4a7ac52d537e73854ca2d325ab5465b16705e3351ac628ec4602a4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_embeddings_opea-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 669ba0488bdc1ca6d608b69021c9e355bdc831512d353e71741cce4a432b5ac0
MD5 6dba84d5d06fed76c0f688bfc1c8db37
BLAKE2b-256 018ca655036ce91d2198569ab9a2952f141b90a4b20ff491d0359d45f95b838b

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