The OpenAIEmbed class connects Neum AI documents to OpenAI’s embedding service. It provides the functionality to generate text embeddings, which are crucial for various applications such as semantic search and text similarity tasks.

Properties

Required properties:

  • api_key: The API key for accessing OpenAI services.

Optional properties:

  • max_retries: The maximum number of retries for generating embeddings in case of failures.
  • chunk_size: The number of documents to process in one batch when generating embeddings.