Browse Source
update
Signed-off-by: junjie.jiang <junjie.jiang@zilliz.com>
main
1 changed files with
3 additions and
3 deletions
-
README.md
|
@ -17,7 +17,7 @@ Search embedding in [Milvus](https://milvus.io/), **please make sure you have in |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```python |
|
|
```python |
|
|
from towhee.dc2 import pipe, ops, DataCollection |
|
|
|
|
|
|
|
|
from towhee import pipe, ops, DataCollection |
|
|
|
|
|
|
|
|
p = pipe.input('text') \ |
|
|
p = pipe.input('text') \ |
|
|
.map('text', 'vec', ops.sentence_embedding.transformers(model_name='all-MiniLM-L12-v2')) \ |
|
|
.map('text', 'vec', ops.sentence_embedding.transformers(model_name='all-MiniLM-L12-v2')) \ |
|
@ -32,10 +32,10 @@ DataCollection(p('cat')).show() |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
```python |
|
|
```python |
|
|
from towhee.dc2 import pipe, ops |
|
|
|
|
|
|
|
|
from towhee import pipe, ops |
|
|
|
|
|
|
|
|
# search additional info url: |
|
|
# search additional info url: |
|
|
from towhee.dc2 import pipe, ops, DataCollection |
|
|
|
|
|
|
|
|
from towhee import pipe, ops, DataCollection |
|
|
|
|
|
|
|
|
p = pipe.input('text') \ |
|
|
p = pipe.input('text') \ |
|
|
.map('text', 'vec', ops.sentence_embedding.transformers(model_name='all-MiniLM-L12-v2')) \ |
|
|
.map('text', 'vec', ops.sentence_embedding.transformers(model_name='all-MiniLM-L12-v2')) \ |
|
|