diff --git a/chromadb/utils/embedding_functions.py b/chromadb/utils/embedding_functions.py index cc779865675..47123d59706 100644 --- a/chromadb/utils/embedding_functions.py +++ b/chromadb/utils/embedding_functions.py @@ -193,9 +193,6 @@ def __init__( self._deployment_id = deployment_id def __call__(self, input: Documents) -> Embeddings: - # replace newlines, which can negatively affect performance. - input = [t.replace("\n", " ") for t in input] - # Call the OpenAI Embedding API if self._v1: embeddings = self._client.create(