Akash Kumar
04/11/2024, 11:03 AMKishore Nallan
04/11/2024, 11:05 AMAkash Kumar
04/11/2024, 12:00 PMAkash Kumar
04/11/2024, 12:00 PMKishore Nallan
04/11/2024, 12:32 PMAkash Kumar
04/11/2024, 1:29 PMAkash Kumar
04/12/2024, 7:56 AM{
"searches": [
{
"q": "mirage",
"query_by": "isbn,title,author,,embedding,publication",
"prioritize_token_position": true,
"max_facet_values": 10,
"num_typos": "2",
"min_len_1typo": 2,
"split_join_tokens": "always",
"typo_tokens_threshold": 10,
"per_page": 50,
"sort_by": "num_is_out_of_stack:asc",
"pre_segmented_query": true,
"drop_tokens_threshold": 0,
"highlight_full_fields": "isbn,title,author,,embedding,publication",
"collection": "books_collection",
"facet_by": "agedGroup,author,binding,bookCondition,language,price,publication",
"page": 1
}
]
}
Akash Kumar
04/12/2024, 7:56 AMAkash Kumar
04/12/2024, 7:58 AMKishore Nallan
04/12/2024, 7:58 AMembedding
you should set a distance threshold so that lower similarity items are not fetched: https://typesense.org/docs/26.0/api/vector-search.html#distance-thresholdAkash Kumar
04/12/2024, 7:59 AM"vector_query": "embedding:([0.96826,0.94,0.39557,0.306488], k:100)"
is it distance thresholdKishore Nallan
04/12/2024, 8:00 AMdistance_threshold
on that pageAkash Kumar
04/12/2024, 10:00 AM"vector_query": "embedding:([], distance_threshold:0.30)"