Skip to main content

OpenAI embedder for the datapizza-ai framework

Project description

OpenAI Embedder

OpenAI embedder implementation.

Installation

pip install datapizza-ai-embedders-openai

Usage

from datapizza.embedders.openai import OpenAIEmbedder

embedder = OpenAIEmbedder(api_key="your-openai-api-key")
embeddings = embedder.embed("Hello world", model_name="text-embedding-ada-002")

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

datapizza_ai_embedders_openai-0.0.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datapizza_ai_embedders_openai-0.0.2-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file datapizza_ai_embedders_openai-0.0.2.tar.gz.

File metadata

File hashes

Hashes for datapizza_ai_embedders_openai-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d4d84408e5f7131d285b3589f482395bae0a84399481de3f222883b8f9b330c7
MD5 d16a92c487787055a81b3b747ac77d62
BLAKE2b-256 b668944d3abdb267be421e96b44232a1f716f8e1e22ce3c46abaf6cd72c47b31

See more details on using hashes here.

File details

Details for the file datapizza_ai_embedders_openai-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for datapizza_ai_embedders_openai-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c2a1b2bdab08c442cacd7c5efa5a9c9812ce6f16103b801d48cda439ffba72b5
MD5 e81692a67ddaa4bb23d2ee36a3f451fe
BLAKE2b-256 0042d939e2c07dede7347ce792d29ea275adf8badd0cb4f8aa16b96b32f8597a

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