Skip to content

Commit

Permalink
feat: Removing new line removal from OpenAI EF
Browse files Browse the repository at this point in the history
  • Loading branch information
tazarov committed May 3, 2024
1 parent 97dbe40 commit bd45c1f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions chromadb/utils/embedding_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit bd45c1f

Please sign in to comment.