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.1.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.1.1.tar.gz.

File metadata

File hashes

Hashes for llama_index_embeddings_openai_like-0.1.1.tar.gz
Algorithm Hash digest
SHA256 95b460a43415866d1e74c4e0f884af8d9e828051b39ae15e5b438dc3e3ede71f
MD5 7c745b7661196720ac9bbefae8e8dcd3
BLAKE2b-256 cfa22a0e441441bd46f58aba14abdd7912a58a51c0cbaf1b899c91ee71337831

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_embeddings_openai_like-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e9b49ce66b2f1ec27818b653541d8ce3fcdcbecea56c6c10e3180ff1251132d2
MD5 b15370737ad45218b570c874bbc4ed4f
BLAKE2b-256 c0ebdd1e784436116a73b388f6267eecc850d0aad5dd1da74e1d787dabb71102

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