From 9cbe6e8774e25c8d75b4cbb42658bd4b647ede01 Mon Sep 17 00:00:00 2001 From: shiyu22 Date: Fri, 22 Jul 2022 17:37:04 +0800 Subject: [PATCH] Update README Signed-off-by: shiyu22 --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c0b2129..80caaf0 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Search embedding in [Faiss](https://github.com/facebookresearch/faiss), **please ## Code Example -- Insert data into Faiss first +### Insert data into Faiss first ```python import numpy as np @@ -30,7 +30,7 @@ x = towhee.dc['id'](ids) \ .to_faiss['id', 'vec'](findex='index.bin') ``` -- Example +### Example *Write the pipeline in simplified style:* @@ -61,11 +61,11 @@ Create the operator via the following factory method: ***ann-search.faiss(findex)*** +
-**Parameters:** - +**Parameters:** ***findex:*** *str* or *faiss.INDEX* @@ -84,6 +84,8 @@ The path to faiss index file or faiss index. Query embeddings in Faiss +
+ **Returns:** *Entity*