typesense-instantsearch-adapter 2.9.0-0 → 2.9.0-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -614,7 +614,7 @@ const search = instantsearch({
614
614
  if (query !== "") {
615
615
  // Get embedding for the query
616
616
  let response = await fetch(
617
- "http://localhost:8000/embedding?" + new URLSearchParams({ q: query }) // <=== Embedding API
617
+ "http://localhost:8000/embedding?" + new URLSearchParams({ q: query }), // <=== Embedding API
618
618
  );
619
619
 
620
620
  let parsedResponse = await response.json();
@@ -625,7 +625,7 @@ const search = instantsearch({
625
625
  helper
626
626
  .setQueryParameter(
627
627
  "typesenseVectorQuery", // <=== Special parameter that only works in typesense-instantsearch-adapter@2.7.0-3 and above
628
- `vectors:([${parsedResponse["embedding"].join(",")}], k:${totalNearestNeighborsToFetch})`
628
+ `vectors:([${parsedResponse["embedding"].join(",")}], k:${totalNearestNeighborsToFetch})`,
629
629
  )
630
630
  .setPage(page)
631
631
  .search();