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.0.tar.gz (3.0 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.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_embeddings_openai_like-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e0b8cab74960c2edbd3d9dbff93fd587fe058b538f6501f4603405d0f77b975e
MD5 45344cdcc99e9ae70fc642748c1d30d0
BLAKE2b-256 dbb459157fda497f3b4fbd664ec66d5b5a2d43722c9dd7f224cbde6c020b2a5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_embeddings_openai_like-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a83107d56714602a9adbc8f54c27d66b6be426bd90f91eb0260a02a7b0531ce2
MD5 974d4b08cb4fc74661ceea2ffeeaefa8
BLAKE2b-256 9fc165e2bfcf0ef6bd970b8604c59d48b05993c68a4c4c2f6732d518c36acb81

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