Discrepancy in Search Results Between Postman and Python Library
TLDR Md raised an issue about differing search results when using Postman and a Python library. Kishore Nallan suggested trying a multi_search request to compare values, and to set a distance threshold on the vector component. The issue was resolved.
Aug 22, 2023 (1 month ago)
Md
09:40 AMtypesense==0.16.0 (python client)
Kishore Nallan
10:10 AMMd
10:17 AMsearch_parameters1 = {
'q': remove_trailing_whitespace(search),
'query_by': 'embedding,title,job_responsibility,skills,industry,location,type,division,company',
'include_fields': 'id',
'per_page': 250,
'page': 1,
'sort_by': '_vector_distance:desc'
}
res = client.collections['alljobsupdated'].documents.search(search_parameters1)
newlist = [x['document']['id'] for x in res['hits']]
print(newlist)
Md
10:19 AM{server}/collections/alljobsupdated/documents/search?q=laravel&query_by=embedding,title,job_responsibility,skills,industry,location,type,division,company&sort_by=_vector_distance:desc&include_fields=id&page=250
Kishore Nallan
10:27 AMKishore Nallan
10:28 AMMd
10:32 AMMd
02:29 PMKishore Nallan
02:32 PMMd
02:36 PMAug 23, 2023 (1 month ago)
Kishore Nallan
07:32 AMvector_query=embedding:([], distance_threshold:0.30)
In the snippet above,
embedding
is the name of the vector field. Try adding the above to your queries to see if it helps.Md
09:44 AMTypesense
Indexed 2764 threads (79% resolved)
Similar Threads
Integrating Semantic Search with Typesense
Krish wants to integrate a semantic search functionality with typesense but struggles with the limitations. Kishore Nallan provides resources, clarifications and workarounds to the raised issues.

Utilizing Vector Search and Word Embeddings for Comprehensive Search in Typesense
Bill sought clarification on using vector search with multiple word embeddings in Typesense and using them instead of OpenAI's embedding. Kishore Nallan and Jason informed him that their development version 0.25 supports open source embedding models. They also resolved Bill's concerns regarding search performance, language support, and limitations in the search parameters.



Hybrid Search Distance Threshold Issue
Anish has an issue with search results not respecting the vector distance threshold when using hybrid search. Jason explains additional fields cause `vector_distance` to only apply to vector search results and suggests opening a feature request on GitHub.

Moving from Algolia to Typesense: Questions and Answers
Juan sought advice from Kishore Nallan about moving from Algolia to Typesense, handling MultiSearch, setting parameters, checking imported documents, and a specific syntax query.

Phrase Search Relevancy and Weights Fix
Jan reported an issue with phrase search relevancy using Typesense Instantsearch Adapter. The problem occurred when searching phrases with double quotes. The team identified the issue to be related to weights and implemented a fix, improving the search results.

