Constants.ts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. import { LabelValuePair } from '../../../types/Common';
  2. import { DataTypeEnum, ConsistencyLevelEnum } from '@/consts';
  3. export const CONSISTENCY_LEVEL_OPTIONS: LabelValuePair[] = [
  4. {
  5. label: 'Strong',
  6. value: ConsistencyLevelEnum.Strong,
  7. },
  8. {
  9. label: 'Session',
  10. value: ConsistencyLevelEnum.Session,
  11. },
  12. {
  13. label: 'Bounded',
  14. value: ConsistencyLevelEnum.Bounded,
  15. },
  16. {
  17. label: 'Eventually',
  18. value: ConsistencyLevelEnum.Eventually,
  19. },
  20. ];
  21. export const VECTOR_FIELDS_OPTIONS: LabelValuePair[] = [
  22. {
  23. label: 'Binary Vector',
  24. value: DataTypeEnum.BinaryVector,
  25. },
  26. {
  27. label: 'Float Vector',
  28. value: DataTypeEnum.FloatVector,
  29. },
  30. {
  31. label: 'Float16 Vector',
  32. value: DataTypeEnum.Float16Vector,
  33. },
  34. {
  35. label: 'BFloat16 Vector',
  36. value: DataTypeEnum.BFloat16Vector,
  37. },
  38. {
  39. label: 'Sparse Vector',
  40. value: DataTypeEnum.SparseFloatVector,
  41. },
  42. ];
  43. export const ALL_OPTIONS: LabelValuePair[] = [
  44. ...VECTOR_FIELDS_OPTIONS,
  45. {
  46. label: 'Int8',
  47. value: DataTypeEnum.Int8,
  48. },
  49. {
  50. label: 'Int16',
  51. value: DataTypeEnum.Int16,
  52. },
  53. {
  54. label: 'Int32',
  55. value: DataTypeEnum.Int32,
  56. },
  57. {
  58. label: 'Int64',
  59. value: DataTypeEnum.Int64,
  60. },
  61. {
  62. label: 'Float',
  63. value: DataTypeEnum.Float,
  64. },
  65. {
  66. label: 'Double',
  67. value: DataTypeEnum.Double,
  68. },
  69. {
  70. label: 'Boolean',
  71. value: DataTypeEnum.Bool,
  72. },
  73. {
  74. label: 'VarChar',
  75. value: DataTypeEnum.VarChar,
  76. },
  77. {
  78. label: 'JSON',
  79. value: DataTypeEnum.JSON,
  80. },
  81. {
  82. label: 'Array',
  83. value: DataTypeEnum.Array,
  84. },
  85. ];
  86. export const AUTO_ID_OPTIONS: LabelValuePair[] = [
  87. {
  88. label: 'On',
  89. value: 'true',
  90. },
  91. {
  92. label: 'Off',
  93. value: 'false',
  94. },
  95. ];
  96. export const PRIMARY_FIELDS_OPTIONS: LabelValuePair[] = [
  97. {
  98. label: 'INT64',
  99. value: DataTypeEnum.Int64,
  100. },
  101. {
  102. label: 'VARCHAR',
  103. value: DataTypeEnum.VarChar,
  104. },
  105. ];
  106. export const ANALYZER_OPTIONS: LabelValuePair[] = [
  107. {
  108. label: 'Standard',
  109. value: 'standard',
  110. },
  111. {
  112. label: 'English',
  113. value: 'english',
  114. },
  115. {
  116. label: 'Chinese',
  117. value: 'chinese',
  118. },
  119. ];