Skip to content

Commit 54403c7

Browse files
authored
Add support for VAMANA index algorithm at index creation (#430)
* - add structured object-model for complex vector index creation, with specialized types for the 3 vector types - add VectorField.Dimensions, .Type and .DistanceMetric - add mechanism to bake those into command without breaking existing usage - AddDirectAttributes, DirectAttributeCount - new type FlatVectorField - new type HnswVectorField - new type SvsVanamaVectorField - make it possible to extract approx command from SerializedCommand.ToString() - add implicit operator from string to FieldName to reduce new overloads needed - add new Schema.Add*VectorField APIs - add tests to demonstrate correct index construction * dotnet format * fix broken test (missing <index_attribute_count>) * PR nits * - add SVS integration tests - fix LeanVec command typo * follow-up typo fix * Comments: clarify compression/reduce interaction
1 parent c6d7692 commit 54403c7

File tree

5 files changed

+528
-10
lines changed

5 files changed

+528
-10
lines changed

src/NRedisStack/Search/FieldName.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,7 @@ public FieldName As(string attribute)
3636
this.Alias = attribute;
3737
return this;
3838
}
39+
40+
public static implicit operator FieldName(string name) => Of(name);
3941
}
4042
}

0 commit comments

Comments
 (0)