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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for datapizza_ai_embedders_openai-0.0.4.tar.gz
Algorithm Hash digest
SHA256 d105667776ad0ad1bc1d8f6032d15491ea802ae77718e13531e1ce9bb47ac817
MD5 1d9472dbc9041679c91b736ead76c708
BLAKE2b-256 a01a9714c7cb3b7521f1b41d3dd81a239532b6f6531ddbe3114901de124c9a2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for datapizza_ai_embedders_openai-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 bec4c6369279b1ba5efd5e75434d2fe9723492cd080b41a62a82b1b541e50d60
MD5 67baf96e931cc60971a2dca4d4f1b99d
BLAKE2b-256 063bc773a975c8d1af40311a774a0db62f266870bf04a5bf8a7c8e7e35a25d09

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