Adam Al-dbhany
02/04/2025, 12:14 PMqueries
option of the vector_query
search parameter. The only reference I've found in the docs related to special character handling is specific to filter_by
(here). Trying this approach and other common special character escaping strategies results in the same error when query_weights
is included.
Example: query with weights
{
...,
"vector_query": "embeddedField:([], queries:[Butanediol, 1,4-Butanediol, BDO], query_weights:[0.4, 0.2, 0.2], alpha:0.75)",
}
Results
RequestMalformed: Request failed with HTTP code 400 | Server said: Malformed vector query string: queries and query_weights must be of the same length.
It's important to note that removing the weights and any escaping techniques does produce results, however, it is silently splitting our array of 3 terms (Butanediol
. 1,4-Butanediol
, BDO
) into 4 (Butanediol
. 1
, 4-Butanediol
, BDO
).Jason Bosco
02/04/2025, 7:48 PMAdam Al-dbhany
02/05/2025, 1:49 AMquery_weights
are included.
I've added an issue hereJason Bosco
02/05/2025, 1:52 AMJason Bosco
02/05/2025, 2:02 AMAdam Al-dbhany
02/05/2025, 11:58 PMAdam Al-dbhany
02/06/2025, 12:00 AM