Issues with Search UI for Vector Search
TLDR WL is building a search UI for vector search and having issues with syntax, while Jason provides context on the issue.
Mar 18, 2023 (9 months ago)
WL
05:52 AMadditionalSearchParameters
or
collectionSpecificSearchParameters
eg.
const typesenseInstantsearchAdapter = new TypesenseInstantSearchAdapter({
server: {
apiKey: 'Search-only api key', // Search-only api key
nodes: [
{
host: '', // For Typesense Cloud use
port: '443', // For Typesense Cloud use 443
protocol: 'https', // For Typesense Cloud use https
},
],
},
// The following parameters are directly passed to Typesense's search API endpoint.
// So you can pass any parameters supported by the search endpoint below.
// queryBy is required.
// filterBy is managed and overridden by InstantSearch.js. To set it, you want to use one of the filter widgets like refinementList or use the `configure` widget.
additionalSearchParameters: {
query_by: 'title'
},
collectionSpecificSearchParameters: {
docs: {
query_by: 'location',
},
},
});
const searchClient = typesenseInstantsearchAdapter.searchClient;
const search = instantsearch({
searchClient,
indexName: 'docs',
});
Mar 19, 2023 (9 months ago)
Jason
09:03 PMMar 20, 2023 (9 months ago)
WL
02:39 AMWL
02:42 AMcollectionSpecificSearchParameters: {
docs: {
vector_query: 'location',
},
}
the search box is disabled for some reason.
Jason
04:31 PMvector_query
in collectionSpecificSearchParameters
or additionalSearchParameters
, but you’d need to pass in the embeddings in the vector_query format, like in this code sample: https://typesense.org/docs/0.24.0/api/vector-search.html#nearest-neighbor-vector-searchTypesense
Indexed 3015 threads (79% resolved)
Similar Threads
Troubleshooting Typesense Setup and Understanding Facets and Keywords
Demitri encountered errors when exploring Typesense for the first time. Jason guided them through troubleshooting and discussed facets, keyword settings, and widget configurations. Helin shared a Python demo app and its source code to help Demitri with their project.
Vector Search with InstantSearch.js in Typesense
Noorhalim asked how to use vector search via instantsearchjs. Jason provided a link to a nearby discussion, but additional questions by Noorhalim remain unanswered.
Resolving Embedding Distance Threshold Error Query Using '*'
Walter was having trouble using the embedding distance threshold which gave out an error with a '*'. Kishore Nallan clarified the issue and suggested a solution. Jason also provided a link to help dynamically set typesense-instantsearch-adapter parameters for future inquiries. The issue was resolved by their inputs.