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
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file llama_index_embeddings_opea-0.1.2.tar.gz
.
File metadata
- Download URL: llama_index_embeddings_opea-0.1.2.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e908ea3266177e7045302590b6f378e1e71a415ff9f495832889df8127b6ef19
|
|
MD5 |
77391ab82e1f70ffc61c4f73211d1aab
|
|
BLAKE2b-256 |
e15cf08b5ef8bc3afe02ebf8739b3f27d3f7b421b6058a6ef09e0ac754518a42
|
File details
Details for the file llama_index_embeddings_opea-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: llama_index_embeddings_opea-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
bb9ec57b875766bc2c1de9808e4744fcaa0f1640e0782a97f3d420e3cf761119
|
|
MD5 |
be306eef30f9979741deab2d5b4c791e
|
|
BLAKE2b-256 |
df01e407a6579c1426ab125e185dedf7a23e03c0a073ce8ae25952b9900c3000
|