Skip to content
This repository was archived by the owner on May 10, 2024. It is now read-only.

Commit fbeabf5

Browse files
committed
embed the string, not each character
1 parent 8d644ae commit fbeabf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/embeddings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ default_ef = embedding_functions.DefaultEmbeddingFunction()
4141
:::tip
4242
Embedding functions can linked to a collection, which are used whenever you call `add`, `update`, `upsert` or `query`. You can also be use them directly which can be handy for debugging.
4343
```py
44-
val = default_ef("foo")
44+
val = default_ef(["foo"])
4545
```
4646
-> [[0.05035809800028801, 0.0626462921500206, -0.061827320605516434...]]
4747
:::

0 commit comments

Comments
 (0)