44
55import com .google .common .primitives .Floats ;
66import 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 ;
710import io .qdrant .client .grpc .Points .MultiDenseVector ;
811import io .qdrant .client .grpc .Points .PointId ;
912import io .qdrant .client .grpc .Points .SparseVector ;
@@ -97,7 +100,7 @@ public static VectorInput vectorInput(long id) {
97100 /**
98101 * Creates a {@link VectorInput} from a {@link UUID}
99102 *
100- * @param id The pint id
103+ * @param id The point id
101104 * @return a new instance of {@link VectorInput}
102105 */
103106 public static VectorInput vectorInput (UUID id ) {
@@ -107,10 +110,40 @@ public static VectorInput vectorInput(UUID id) {
107110 /**
108111 * Creates a {@link VectorInput} from a {@link PointId}
109112 *
110- * @param id The pint id
113+ * @param id The point id
111114 * @return a new instance of {@link VectorInput}
112115 */
113116 public static VectorInput vectorInput (PointId id ) {
114117 return VectorInput .newBuilder ().setId (id ).build ();
115118 }
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+ // }
116149}
0 commit comments