-
Notifications
You must be signed in to change notification settings - Fork 14
v1.14.0 #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
v1.14.0 #68
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| # The version of qdrant to use to download protos | ||
| qdrantProtosVersion=v1.13.0 | ||
| qdrantProtosVersion=v1.14.0 | ||
|
|
||
| # The version of qdrant docker image to run integration tests against | ||
| qdrantVersion=v1.13.0 | ||
| qdrantVersion=v1.14.0 | ||
|
|
||
| # The version of the client to generate | ||
| packageVersion=1.13.0 | ||
| packageVersion=1.14.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,205 @@ | ||
| package io.qdrant.client; | ||
|
|
||
| import io.qdrant.client.grpc.Points.Condition; | ||
| import io.qdrant.client.grpc.Points.DecayParamsExpression; | ||
| import io.qdrant.client.grpc.Points.DivExpression; | ||
| import io.qdrant.client.grpc.Points.Expression; | ||
| import io.qdrant.client.grpc.Points.GeoDistance; | ||
| import io.qdrant.client.grpc.Points.MultExpression; | ||
| import io.qdrant.client.grpc.Points.PowExpression; | ||
| import io.qdrant.client.grpc.Points.SumExpression; | ||
|
|
||
| /** Convenience methods for constructing {@link Expression} */ | ||
| public final class ExpressionFactory { | ||
| private ExpressionFactory() {} | ||
|
|
||
| /** | ||
| * Creates an {@link Expression} from a constant. | ||
| * | ||
| * @param constant The constant float value | ||
| * @return a new instance of {@link Expression} | ||
| */ | ||
| public static Expression constant(float constant) { | ||
| return Expression.newBuilder().setConstant(constant).build(); | ||
| } | ||
|
|
||
| /** | ||
| * Creates an {@link Expression} from a variable name. | ||
| * | ||
| * @param variable The variable name (e.g., payload key or score reference) | ||
| * @return a new instance of {@link Expression} | ||
| */ | ||
| public static Expression variable(String variable) { | ||
| return Expression.newBuilder().setVariable(variable).build(); | ||
| } | ||
|
|
||
| /** | ||
| * Creates an {@link Expression} from a {@link Condition}. | ||
| * | ||
| * @param condition The condition to evaluate | ||
| * @return a new instance of {@link Expression} | ||
| */ | ||
| public static Expression condition(Condition condition) { | ||
| return Expression.newBuilder().setCondition(condition).build(); | ||
| } | ||
|
|
||
| /** | ||
| * Creates an {@link Expression} from a {@link GeoDistance}. | ||
| * | ||
| * @param geoDistance The geo distance object | ||
| * @return a new instance of {@link Expression} | ||
| */ | ||
| public static Expression geoDistance(GeoDistance geoDistance) { | ||
| return Expression.newBuilder().setGeoDistance(geoDistance).build(); | ||
| } | ||
|
|
||
| /** | ||
| * Creates an {@link Expression} from a date-time constant string. | ||
| * | ||
| * @param datetime The date-time string | ||
| * @return a new instance of {@link Expression} | ||
| */ | ||
| public static Expression datetime(String datetime) { | ||
| return Expression.newBuilder().setDatetime(datetime).build(); | ||
| } | ||
|
|
||
| /** | ||
| * Creates an {@link Expression} from a payload key referencing date-time values. | ||
| * | ||
| * @param datetimeKey The payload key containing date-time values | ||
| * @return a new instance of {@link Expression} | ||
| */ | ||
| public static Expression datetimeKey(String datetimeKey) { | ||
| return Expression.newBuilder().setDatetimeKey(datetimeKey).build(); | ||
| } | ||
|
|
||
| /** | ||
| * Creates an {@link Expression} that multiplies values. | ||
| * | ||
| * @param mult The multiplication expression | ||
| * @return a new instance of {@link Expression} | ||
| */ | ||
| public static Expression mult(MultExpression mult) { | ||
| return Expression.newBuilder().setMult(mult).build(); | ||
| } | ||
|
|
||
| /** | ||
| * Creates an {@link Expression} that sums values. | ||
| * | ||
| * @param sum The summation expression | ||
| * @return a new instance of {@link Expression} | ||
| */ | ||
| public static Expression sum(SumExpression sum) { | ||
| return Expression.newBuilder().setSum(sum).build(); | ||
| } | ||
|
|
||
| /** | ||
| * Creates an {@link Expression} that divides values. | ||
| * | ||
| * @param div The division expression | ||
| * @return a new instance of {@link Expression} | ||
| */ | ||
| public static Expression div(DivExpression div) { | ||
| return Expression.newBuilder().setDiv(div).build(); | ||
| } | ||
|
|
||
| /** | ||
| * Creates a negated {@link Expression}. | ||
| * | ||
| * @param expr The expression to negate | ||
| * @return a new instance of {@link Expression} | ||
| */ | ||
| public static Expression negate(Expression expr) { | ||
| return Expression.newBuilder().setNeg(expr).build(); | ||
| } | ||
|
|
||
| /** | ||
| * Creates an {@link Expression} representing absolute value. | ||
| * | ||
| * @param expr The expression to wrap with abs() | ||
| * @return a new instance of {@link Expression} | ||
| */ | ||
| public static Expression abs(Expression expr) { | ||
| return Expression.newBuilder().setAbs(expr).build(); | ||
| } | ||
|
|
||
| /** | ||
| * Creates an {@link Expression} representing square root. | ||
| * | ||
| * @param expr The expression to apply sqrt() to | ||
| * @return a new instance of {@link Expression} | ||
| */ | ||
| public static Expression sqrt(Expression expr) { | ||
| return Expression.newBuilder().setSqrt(expr).build(); | ||
| } | ||
|
|
||
| /** | ||
| * Creates an {@link Expression} from a {@link PowExpression}. | ||
| * | ||
| * @param pow The power expression (base and exponent) | ||
| * @return a new instance of {@link Expression} | ||
| */ | ||
| public static Expression pow(PowExpression pow) { | ||
| return Expression.newBuilder().setPow(pow).build(); | ||
| } | ||
|
|
||
| /** | ||
| * Creates an {@link Expression} representing exponential. | ||
| * | ||
| * @param expr The expression to apply exponential to | ||
| * @return a new instance of {@link Expression} | ||
| */ | ||
| public static Expression exp(Expression expr) { | ||
| return Expression.newBuilder().setExp(expr).build(); | ||
| } | ||
|
|
||
| /** | ||
| * Creates an {@link Expression} representing base-10 logarithm. | ||
| * | ||
| * @param expr The expression to apply log10() to | ||
| * @return a new instance of {@link Expression} | ||
| */ | ||
| public static Expression log10(Expression expr) { | ||
| return Expression.newBuilder().setLog10(expr).build(); | ||
| } | ||
|
|
||
| /** | ||
| * Creates an {@link Expression} representing natural logarithm. | ||
| * | ||
| * @param expr The expression to apply natural log to | ||
| * @return a new instance of {@link Expression} | ||
| */ | ||
| public static Expression ln(Expression expr) { | ||
| return Expression.newBuilder().setLn(expr).build(); | ||
| } | ||
|
|
||
| /** | ||
| * Creates an {@link Expression} representing exponential decay. | ||
| * | ||
| * @param decay The decay parameters | ||
| * @return a new instance of {@link Expression} | ||
| */ | ||
| public static Expression expDecay(DecayParamsExpression decay) { | ||
| return Expression.newBuilder().setExpDecay(decay).build(); | ||
| } | ||
|
|
||
| /** | ||
| * Creates an {@link Expression} representing Gaussian decay. | ||
| * | ||
| * @param decay The decay parameters | ||
| * @return a new instance of {@link Expression} | ||
| */ | ||
| public static Expression gaussDecay(DecayParamsExpression decay) { | ||
| return Expression.newBuilder().setGaussDecay(decay).build(); | ||
| } | ||
|
|
||
| /** | ||
| * Creates an {@link Expression} representing linear decay. | ||
| * | ||
| * @param decay The decay parameters | ||
| * @return a new instance of {@link Expression} | ||
| */ | ||
| public static Expression linDecay(DecayParamsExpression decay) { | ||
| return Expression.newBuilder().setLinDecay(decay).build(); | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.