-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed as not planned
Labels
questionFurther information is requestedFurther information is requested
Description
Describe the bug
While reading the code of the embeddings_utils
I have stumbled upon this:
openai-python/openai/embeddings_utils.py
Lines 20 to 21 in db3f352
# replace newlines, which can negatively affect performance. | |
text = text.replace("\n", " ") |
Could you please provide more context on:
replace newlines, which can negatively affect performance.
Are there any references/papers/numbers behind that negative impact?
To Reproduce
get_embedding("foo bar\nbaz")
Code snippets
No response
OS
macOS
Python version
3.10
Library version
0.27.4
EliahKagan, hossein-amirkhani and djstrong
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested