Skip to content

Commit ff2bbef

Browse files
authored
Update README.md
added clarification on the `binaryEmbeddingReader` error
1 parent 6474c6a commit ff2bbef

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,9 @@ give it a try.
3535
```
3636
* Use this field mapping:
3737
```
38-
{
3938
"embedding_vector": {
4039
"type": "binary",
4140
"doc_values": true
42-
}
4341
```
4442
* The vector can be of any dimension
4543

@@ -148,7 +146,10 @@ def encode_array(arr):
148146

149147
Answer: this error happens when the plugin fails to access the field you specified in the `field` parameter in at least one of the documents.
150148

151-
To solve it: make sure that **all** the documents in your index contains the filed you specified in the `field` parameter.
149+
To solve it:
150+
151+
* make sure that **all** the documents in your index contains the filed you specified in the `field` parameter.
152152
see more details [here](https://github.com/lior-k/fast-elasticsearch-vector-scoring/issues/6)
153+
* make sure that the filed you specified in the `field` parameter has a `binary` type in the index mapping
153154

154155

0 commit comments

Comments
 (0)