Md Mahmudul Huq
08/22/2023, 9:40 AMKishore Nallan
08/22/2023, 10:10 AMMd Mahmudul Huq
08/22/2023, 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 Mahmudul Huq
08/22/2023, 10:19 AMKishore Nallan
08/22/2023, 10:27 AMKishore Nallan
08/22/2023, 10:28 AMMd Mahmudul Huq
08/22/2023, 10:32 AMMd Mahmudul Huq
08/22/2023, 2:29 PMKishore Nallan
08/22/2023, 2:32 PMMd Mahmudul Huq
08/22/2023, 2:36 PMKishore Nallan
08/23/2023, 7: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 Mahmudul Huq Topu
08/23/2023, 9:44 AM