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.3.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.3-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for datapizza_ai_embedders_openai-0.0.3.tar.gz
Algorithm Hash digest
SHA256 c3f08053fc28f606bdccaaac335f122c10d5141f7af8ad766057500279c650d6
MD5 4f5e8df016596f1ddfeb37dbd87a6966
BLAKE2b-256 15663e3a471740e39813386fcc4ed245aa0ba95e4eebf50e9d36b249b391e42e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for datapizza_ai_embedders_openai-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 43764d9650d9f36f260428e8b1af73e25a4639bfc31c388fc8a447e1c2e88d47
MD5 2ed1764bc452defd64b75b67d5cc7045
BLAKE2b-256 b5be0c74af75515bd7d3cbeda08d1605e43208e8670600776af4ead864f442d5

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