This message was deleted.
# community-help
s
This message was deleted.
j
You can combine the
q
parameter with
vector_query
to do a hybrid search
👍 1
s
Hi @Jason Bosco I am also doing a hybrid search using my own embeddings and am hoping I can get your input on an error. I'm using all-mpnet-base-v2 to create a 768 dimensional vector which is stored in a variable _*my_vec.*_ My query is as follows:
search_parameters = {
'q' : 'harry potter',
'query_by': 'title,text_embedding',
'vector_query: f'text_embedding:({my_vec}, k:100)',
}
response = client.collections[typesense_collection].documents.search(search_parameters)
I'm encountering this error.
[Error 400] Query string exceeds max allowed length of 4000. Use the multi_search end-point for larger payloads.
When I attempt to use the multi_search it returns two separate results as expected but they are not combined like the normal search above. Do I need to move to auto-embeddings or do I need to decrease the vector to something smaller such as all-MiniLM-L6-v2?
j
Could you share the full curl request you’re using with multi search?
s
Previously I was trying with the python client. I just tried several variations with the curl and get various responses/errors. Here are the curl commands and errors https://pastebin.com/4VUCcNTs Here is the schema https://pastebin.com/4pG6hGrS
j
I see two arrays inside the vector_query which is not valid syntax... You can only have one vector array inside the vector query