destinations.impl.lancedb.models
PatchedOpenAIEmbeddings Objects
@register("openai_patched")
class PatchedOpenAIEmbeddings(OpenAIEmbeddings)
sanitize_input
def sanitize_input(texts: TEXT) -> Union[List[str], np.ndarray]
Replace empty strings with a placeholder value.
generate_embeddings
def generate_embeddings(texts: Union[List[str], np.ndarray]) -> List[np.array]
Generate embeddings, treating the placeholder as an empty result.