logo
Browse Source

update readme

Signed-off-by: junjie.jiang <junjie.jiang@zilliz.com>
main
junjie.jiang 2 years ago
parent
commit
debf46d3e9
  1. 5
      README.md

5
README.md

@ -8,7 +8,8 @@
## Desription ## Desription
Search embedding in [Faiss](https://github.com/facebookresearch/faiss), **please make sure you have inserted data to Faiss before search**.
Only for local test. If you want to use a vector database in a production environment, you can use Milvus(https://github.com/milvus-io/milvus).
<br /> <br />
@ -23,7 +24,7 @@ Search embedding in [Faiss](https://github.com/facebookresearch/faiss), **please
*Write a same pipeline with explicit inputs/outputs name specifications:* *Write a same pipeline with explicit inputs/outputs name specifications:*
```python ```python
from towhee.dc2 import pipe, ops
from towhee import pipe, ops
p = pipe.input('vec') \ p = pipe.input('vec') \
.flat_map('vec', 'rows', ops.ann_search.faiss('./data_dir', 5)) \ .flat_map('vec', 'rows', ops.ann_search.faiss('./data_dir', 5)) \

Loading…
Cancel
Save