From c3023112a8a271d4dc6ebe2821a66b243545bfe0 Mon Sep 17 00:00:00 2001 From: NirantK Date: Tue, 22 Aug 2023 14:52:43 +0530 Subject: [PATCH] * chore(docs/index.md): update example documents and comments in code * feat(docs/index.md): add support for passage and query prefixes in example documents --- docs/index.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/index.md b/docs/index.md index c6392a7c..430eb61d 100644 --- a/docs/index.md +++ b/docs/index.md @@ -17,9 +17,10 @@ pip install fastembed from fastembed.embedding import DefaultEmbedding documents: List[str] = [ - "Hello, World!", - "This is an example document.", - "fastembed is supported by and maintained by Qdrant." * 128, + "passage: Hello, World!", + "query: Hello, World!", # these are two different embedding + "passage: This is an example document.", + "fastembed is supported by and maintained by Qdrant." # You can leave out the prefix but it's recommended ] embedding_model = DeafultEmbedding() embeddings: List[np.ndarray] = list(embedding_model.encode(documents))