haystack/releasenotes/notes/sentence-transformers-doc-embedder-prefix-suffix-442412c553135406.yaml
2023-09-13 12:55:06 +02:00

8 lines
282 B
YAML

---
preview:
- |
Add `prefix` and `suffix` attributes to `SentenceTransformersDocumentEmbedder`.
They can be used to add a prefix and suffix to the Document text before
embedding it. This is necessary to take full advantage of modern embedding
models, such as E5.