From 80c25f9896a7338866f8e8cea6d7f27882460176 Mon Sep 17 00:00:00 2001 From: Tevin Wang Date: Tue, 11 Jul 2023 12:30:11 -0700 Subject: [PATCH] [Docs] uncomment cosine metric (#271) - Change k value to `10` for js search to keep it consistent with python docs - Uncomment now that cosine metrix is fixed in lance: https://github.com/lancedb/lance/pull/1035 --- docs/src/search.md | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/docs/src/search.md b/docs/src/search.md index 14f1aced5..1a3c23cd5 100644 --- a/docs/src/search.md +++ b/docs/src/search.md @@ -79,38 +79,32 @@ await db_setup.createTable('my_vectors', data) const tbl = await db.openTable("my_vectors") const results_1 = await tbl.search(Array(1536).fill(1.2)) - .limit(20) + .limit(10) .execute() ``` - - - - - - + ### Search with Vector Index.