|
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; |
@@ -114,33 +117,33 @@ public static VectorInput vectorInput(PointId id) { |
114 | 117 | return VectorInput.newBuilder().setId(id).build(); |
115 | 118 | } |
116 | 119 |
|
117 | | - // /** |
118 | | - // * Creates a {@link VectorInput} from a {@link Document} |
119 | | - // * |
120 | | - // * @param document An instance of {@link Document} |
121 | | - // * @return a new instance of {@link VectorInput} |
122 | | - // */ |
123 | | - // public static VectorInput vectorInput(Document document) { |
124 | | - // return VectorInput.newBuilder().setDocument(document).build(); |
125 | | - // } |
| 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 | + } |
126 | 129 |
|
127 | | - // /** |
128 | | - // * Creates a {@link VectorInput} from a an {@link Image} |
129 | | - // * |
130 | | - // * @param image An instance of {@link Image} |
131 | | - // * @return a new instance of {@link VectorInput} |
132 | | - // */ |
133 | | - // public static VectorInput vectorInput(Image image) { |
134 | | - // return VectorInput.newBuilder().setImage(image).build(); |
135 | | - // } |
| 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 | + } |
136 | 139 |
|
137 | | - // /** |
138 | | - // * Creates a {@link VectorInput} from a {@link InferenceObject} |
139 | | - // * |
140 | | - // * @param object An instance of {@link InferenceObject} |
141 | | - // * @return a new instance of {@link VectorInput} |
142 | | - // */ |
143 | | - // public static VectorInput vectorInput(InferenceObject object) { |
144 | | - // return VectorInput.newBuilder().setObject(object).build(); |
145 | | - // } |
| 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 | + } |
146 | 149 | } |
0 commit comments