Embeddings are handled by the OpenAIEmbeddings class, which is a wrapper around the openai library.

Installation

Embeddings require the openai library. See the Installation Guide for more information.

Usage

from chonkie import OpenAIEmbeddings

embeddings = OpenAIEmbeddings()