4
4
5
5
import com .google .common .primitives .Floats ;
6
6
import io .qdrant .client .grpc .Points .DenseVector ;
7
+ import io .qdrant .client .grpc .Points .Document ;
8
+ import io .qdrant .client .grpc .Points .Image ;
9
+ import io .qdrant .client .grpc .Points .InferenceObject ;
7
10
import io .qdrant .client .grpc .Points .MultiDenseVector ;
8
11
import io .qdrant .client .grpc .Points .PointId ;
9
12
import io .qdrant .client .grpc .Points .SparseVector ;
@@ -97,7 +100,7 @@ public static VectorInput vectorInput(long id) {
97
100
/**
98
101
* Creates a {@link VectorInput} from a {@link UUID}
99
102
*
100
- * @param id The pint id
103
+ * @param id The point id
101
104
* @return a new instance of {@link VectorInput}
102
105
*/
103
106
public static VectorInput vectorInput (UUID id ) {
@@ -107,10 +110,40 @@ public static VectorInput vectorInput(UUID id) {
107
110
/**
108
111
* Creates a {@link VectorInput} from a {@link PointId}
109
112
*
110
- * @param id The pint id
113
+ * @param id The point id
111
114
* @return a new instance of {@link VectorInput}
112
115
*/
113
116
public static VectorInput vectorInput (PointId id ) {
114
117
return VectorInput .newBuilder ().setId (id ).build ();
115
118
}
119
+
120
+ // /**
121
+ // * Creates a {@link VectorInput} from a {@link Document}
122
+ // *
123
+ // * @param document An instance of {@link Document}
124
+ // * @return a new instance of {@link VectorInput}
125
+ // */
126
+ // public static VectorInput vectorInput(Document document) {
127
+ // return VectorInput.newBuilder().setDocument(document).build();
128
+ // }
129
+
130
+ // /**
131
+ // * Creates a {@link VectorInput} from a an {@link Image}
132
+ // *
133
+ // * @param image An instance of {@link Image}
134
+ // * @return a new instance of {@link VectorInput}
135
+ // */
136
+ // public static VectorInput vectorInput(Image image) {
137
+ // return VectorInput.newBuilder().setImage(image).build();
138
+ // }
139
+
140
+ // /**
141
+ // * Creates a {@link VectorInput} from a {@link InferenceObject}
142
+ // *
143
+ // * @param object An instance of {@link InferenceObject}
144
+ // * @return a new instance of {@link VectorInput}
145
+ // */
146
+ // public static VectorInput vectorInput(InferenceObject object) {
147
+ // return VectorInput.newBuilder().setObject(object).build();
148
+ // }
116
149
}
0 commit comments