Skip to main content

llama-index embeddings openai integration

Project description

OpenAILike Embeddings

This integration allows you to use OpenAI-like embeddings APIs with LlamaIndex.

Installation

pip install llama-index-embeddings-openai-like

Usage

from llama_index.embeddings.openai_like import OpenAILikeEmbedding

embedding = OpenAILikeEmbedding(
    model_name="my-model-name",
    api_key="fake",
    api_base="http://localhost:1234/v1",
    embed_batch_size=10,
)

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_openai_like-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.

File details

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

File metadata

File hashes

Hashes for llama_index_embeddings_openai_like-0.2.1.tar.gz
Algorithm Hash digest
SHA256 4c8c1721350a467a62a88df6951eb0518a95d24c0207ca4e4c957449a44e42c9
MD5 fcafe3d37d20c253eda68db9b8b43a32
BLAKE2b-256 be15c1993881ca8ef8c5ff00c489af0422ba21c324bb48a4923ce1195b90a256

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_embeddings_openai_like-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 58ad37295e8092e87349ce0bde318ff5105e4d61cab66417984c82a63f9511eb
MD5 53a9c741dce3c7ecfabfefaa5e4e2499
BLAKE2b-256 9cee7f0965353f67a43599db6bdc86caae601d477b56cf1b2eb33b3ec92d9739

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