This message was deleted.
# community-help
s
This message was deleted.
k
cc @Harpreet Sangar
h
@Abdullah Aziz Currently, only the 5th point cannot be achieved. We'll be adding the feature of query_by a reference field. If you need help with rest of the points let me know.
a
@Harpreet Sangar is it possible to do vector search in java client?
h
https://typesense.org/docs/0.25.1/api/vector-search.html#use-cases You can find the java examples on this page.
a
thanks
possible to vector query on two different fields? @Harpreet Sangar?
k
Vector query is limited to a single field
a
@Kishore Nallan @Harpreet Sangar thanks for your help so far, can you tell me what are your views about numerical data that might frequently change like no. of likes and comments on a tweet? We were trying to make a ranking algo where we might require those, need to know best way we could handle it using typesense or if you suggest to not go down that path?
anyway to update:
rank_fusion_score = 0.7 * K + 0.3 * S
in: https://typesense.org/docs/0.25.1/api/vector-search.html#hybrid-search
k
In 0.26 we have a way to update these parameters. But not in 0.25
For changing of a number, there are no special options. You have to do updates with the changed field.
a
i meant the percentages
0.7 for keyword and 0.3 for semantic can be turned in to 0.5 for each?
k
Yes that can be updated in 0.26.rc release but not in 0.25.1. My other comment was for the previous question you had asked about updating numerical data.
🙌 1
a
my only concern w.r.t numerical data is that it might choke on say 1 million likes i.e. number updated everytime a picture is liked, should i perform batch updates to docs every 15-30 mins in this case?
if i want to keep my data in a collection but update to 0.26 rc is that possible?
k
Yes you should certainly batch them up.
I just realised that you can change the alpha value in recent 0.25.2 rc builds also. So just upgrade to that. Usage
Copy code
embedding:([], alpha:0.5)
a
can i upgrade and keep my data intact?
k
Yes
a
can you tell me where i can read more about:
alpha:0.5
@Kishore Nallan
k
Don't have docs yet. But default value for alpha is
0.3
, so only 30% weight to vector search result. If you change it to 0.5 then it means equal weightage.
a
i changed to 0.25.2.rc8 but it doesn't seem to have effected the result set
even with 0.75 alpha
k
Then maybe your results don't appear in both keyword and vector search. If there is some issue, please show the behavior on a small reproducible set so we can check.
a
it is sorting the keyword results on top, that's the issue, have i used the right build?
k
The latest 0.25.2 RC build is
0.25.2.rc10
Let me check and get back to you.
That build you are using should have the changes. Maybe share a small example with a few records that reproduces the issue so we can check.
a
removed sorting on
_vector_distance
&
distance_threshold
and it worked