|
| 1 | +/* Copyright 2010-present MongoDB Inc. |
| 2 | + * |
| 3 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | + * you may not use this file except in compliance with the License. |
| 5 | + * You may obtain a copy of the License at |
| 6 | + * |
| 7 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | + * |
| 9 | + * Unless required by applicable law or agreed to in writing, software |
| 10 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | + * See the License for the specific language governing permissions and |
| 13 | + * limitations under the License. |
| 14 | + */ |
| 15 | + |
| 16 | +namespace MongoDB.Driver |
| 17 | +{ |
| 18 | + /// <summary> |
| 19 | + /// Type of automatic vector quantization for your vectors. Use this setting only if your embeddings are float |
| 20 | + /// or double vectors. See <see href="https://www.mongodb.com/docs/atlas/atlas-vector-search/vector-quantization/"> |
| 21 | + /// Vector Quantization</see> for more information. |
| 22 | + /// </summary> |
| 23 | + public enum VectorQuantization |
| 24 | + { |
| 25 | + /// <summary> |
| 26 | + /// Indicates no automatic quantization for the vector embeddings. Use this setting if you have pre-quantized |
| 27 | + /// vectors for ingestion. If omitted, this is the default value. |
| 28 | + /// </summary> |
| 29 | + None, |
| 30 | + |
| 31 | + /// <summary> |
| 32 | + /// Indicates scalar quantization, which transforms values to 1 byte integers. |
| 33 | + /// </summary> |
| 34 | + Scalar, |
| 35 | + |
| 36 | + /// <summary> |
| 37 | + /// Indicates binary quantization, which transforms values to a single bit. |
| 38 | + /// To use this value, numDimensions must be a multiple of 8. |
| 39 | + /// If precision is critical, select <see cref="None"/> or <see cref="Scalar"/> instead of <see cref="Binary"/>. |
| 40 | + /// </summary> |
| 41 | + Binary, |
| 42 | + } |
| 43 | +} |
0 commit comments