juliuslipp commited on
Commit
19a2aa6
·
verified ·
1 Parent(s): 254c881

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +26 -0
README.md CHANGED
@@ -111,6 +111,32 @@ Here are several ways to produce German sentence embeddings using our model. Not
111
  [API Reference](https://www.mixedbread.ai/api-reference)
112
  </details>
113
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
  <details>
115
  <summary> angle-emb </summary>
116
 
 
111
  [API Reference](https://www.mixedbread.ai/api-reference)
112
  </details>
113
 
114
+ <details>
115
+ <summary>Haystack</summary>
116
+
117
+ ```bash
118
+ pip install -U haystack-ai mixedbread-ai-haystack
119
+ ```
120
+
121
+ ```python
122
+ from haystack.components.embedders import SentenceTransformersTextEmbedder, SentenceTransformersDocumentEmbedder
123
+
124
+ text_embedder = SentenceTransformersTextEmbedder(model="mixedbread-ai/deepset-mxbai-embed-de-large-v1")
125
+
126
+ document_embedder = SentenceTransformersDocumentEmbedder(model="mixedbread-ai/deepset-mxbai-embed-de-large-v1")
127
+
128
+ # Or use the Mixedbread API with binary embeddings
129
+ from mixedbread_ai_haystack import MixedbreadAITextEmbedder, MixedbreadAIDocumentEmbedder
130
+ from mixedbread_ai import EncodingFormat
131
+
132
+ text_embedder = MixedbreadAITextEmbedder( model="mixedbread-ai/deepset-mxbai-embed-de-large-v1",
133
+ encoding_format=EncodingFormat.BINARY)
134
+
135
+ document_embedder = MixedbreadAIDocumentEmbedder(model="mixedbread-ai/deepset-mxbai-embed-de-large-v1",
136
+ encoding_format=EncodingFormat.BINARY)
137
+ ```
138
+ </details>
139
+
140
  <details>
141
  <summary> angle-emb </summary>
142