shaped 2.0.5__tar.gz → 2.0.10__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) hide show
  1. {shaped-2.0.5 → shaped-2.0.10}/PKG-INFO +1 -1
  2. {shaped-2.0.5 → shaped-2.0.10}/setup.py +1 -1
  3. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/__init__.py +4 -0
  4. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/configuration.py +1 -1
  5. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/__init__.py +2 -0
  6. shaped-2.0.10/shaped/autogen/models/column_index_config.py +89 -0
  7. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/evaluation_config.py +3 -1
  8. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/index_config.py +31 -2
  9. shaped-2.0.10/shaped/autogen/models/index_type.py +38 -0
  10. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/requests_per_second_scaling_policy.py +2 -2
  11. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/setup_engine_response.py +1 -1
  12. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/training_compute_config.py +2 -4
  13. {shaped-2.0.5 → shaped-2.0.10}/shaped.egg-info/PKG-INFO +1 -1
  14. {shaped-2.0.5 → shaped-2.0.10}/shaped.egg-info/SOURCES.txt +4 -0
  15. {shaped-2.0.5 → shaped-2.0.10}/tests/test_config_builders.py +7 -2
  16. {shaped-2.0.5 → shaped-2.0.10}/README.md +0 -0
  17. {shaped-2.0.5 → shaped-2.0.10}/pyproject.toml +0 -0
  18. {shaped-2.0.5 → shaped-2.0.10}/setup.cfg +0 -0
  19. {shaped-2.0.5 → shaped-2.0.10}/shaped/__init__.py +0 -0
  20. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/api/__init__.py +0 -0
  21. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/api/engine_api.py +0 -0
  22. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/api/query_api.py +0 -0
  23. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/api/table_api.py +0 -0
  24. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/api/view_api.py +0 -0
  25. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/api_client.py +0 -0
  26. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/api_response.py +0 -0
  27. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/exceptions.py +0 -0
  28. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/ai_enrichment_view_config.py +0 -0
  29. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/algorithm.py +0 -0
  30. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/amplitude_table_config.py +0 -0
  31. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/attn_dropout_prob.py +0 -0
  32. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/attribute_journey.py +0 -0
  33. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/attribute_value.py +0 -0
  34. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/autoscaling_config.py +0 -0
  35. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/aws_pinpoint_table_config.py +0 -0
  36. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/batch_size.py +0 -0
  37. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/batch_size1.py +0 -0
  38. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/batch_size2.py +0 -0
  39. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/big_query_table_config.py +0 -0
  40. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/bm25.py +0 -0
  41. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/boosted_reorder_step.py +0 -0
  42. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/canary_rollout.py +0 -0
  43. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/candidate_attributes_retrieve_step.py +0 -0
  44. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/candidate_ids_retrieve_step.py +0 -0
  45. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/candidate_retrieval_strategy.py +0 -0
  46. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/clickhouse_table_config.py +0 -0
  47. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/column_order_retrieve_step.py +0 -0
  48. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/column_ordering.py +0 -0
  49. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/create_table_response.py +0 -0
  50. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/create_view_response.py +0 -0
  51. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/custom_table_config.py +0 -0
  52. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/data_compute_config.py +0 -0
  53. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/data_config.py +0 -0
  54. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/data_config_interaction_table.py +0 -0
  55. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/data_split_config.py +0 -0
  56. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/data_split_strategy.py +0 -0
  57. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/data_tier.py +0 -0
  58. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/default.py +0 -0
  59. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/delete_engine_response.py +0 -0
  60. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/delete_table_response.py +0 -0
  61. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/delete_view_response.py +0 -0
  62. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/deployment_config.py +0 -0
  63. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/diversity_reorder_step.py +0 -0
  64. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/dropout_rate.py +0 -0
  65. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/dynamo_db_table_config.py +0 -0
  66. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/dynamo_db_table_config_scan_kwargs_value.py +0 -0
  67. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/embedder_batch_size.py +0 -0
  68. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/embedding_config.py +0 -0
  69. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/embedding_dim.py +0 -0
  70. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/embedding_dims.py +0 -0
  71. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/embedding_size.py +0 -0
  72. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/encoder.py +0 -0
  73. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/engine.py +0 -0
  74. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/engine_config_v2.py +0 -0
  75. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/engine_details_response.py +0 -0
  76. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/engine_schema.py +0 -0
  77. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/entity_config.py +0 -0
  78. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/entity_journey.py +0 -0
  79. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/entity_type.py +0 -0
  80. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/exploration_reorder_step.py +0 -0
  81. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/expression_filter_step.py +0 -0
  82. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/factors.py +0 -0
  83. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/factors1.py +0 -0
  84. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/feature.py +0 -0
  85. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/feature_type.py +0 -0
  86. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/file_table_config.py +0 -0
  87. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/filter_config.py +0 -0
  88. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/filter_index_type.py +0 -0
  89. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/filter_retrieve_step.py +0 -0
  90. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/filter_step_explanation.py +0 -0
  91. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/filter_table.py +0 -0
  92. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/filter_type.py +0 -0
  93. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/global_filter.py +0 -0
  94. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/hidden_dropout_prob.py +0 -0
  95. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/hidden_size.py +0 -0
  96. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/hidden_size1.py +0 -0
  97. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/http_problem_response.py +0 -0
  98. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/http_validation_error.py +0 -0
  99. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/hugging_face_encoder.py +0 -0
  100. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/iceberg_table_config.py +0 -0
  101. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/inner_entity_id.py +0 -0
  102. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/inner_size.py +0 -0
  103. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/inner_size1.py +0 -0
  104. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/inner_uid.py +0 -0
  105. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/interaction_config.py +0 -0
  106. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/interaction_pooling_encoder.py +0 -0
  107. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/interaction_round_robin_encoder.py +0 -0
  108. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/item_attribute_pooling_encoder.py +0 -0
  109. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/journey.py +0 -0
  110. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/kafka_table_config.py +0 -0
  111. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/kinesis_table_config.py +0 -0
  112. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/kinesis_table_config_column_schema_value.py +0 -0
  113. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/label.py +0 -0
  114. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/label_type.py +0 -0
  115. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/laplace_smoothing.py +0 -0
  116. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/latency_scaling_policy.py +0 -0
  117. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/learning_rate.py +0 -0
  118. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/learning_rate1.py +0 -0
  119. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/learning_rate2.py +0 -0
  120. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/learning_rate3.py +0 -0
  121. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/lexical_search_mode.py +0 -0
  122. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/list_engines_response.py +0 -0
  123. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/list_tables_response.py +0 -0
  124. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/list_views_response.py +0 -0
  125. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/location_inner.py +0 -0
  126. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/loss_types.py +0 -0
  127. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/lr.py +0 -0
  128. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/lr1.py +0 -0
  129. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/lr2.py +0 -0
  130. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/max_depth.py +0 -0
  131. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/max_leaves.py +0 -0
  132. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/max_seq_length.py +0 -0
  133. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/max_seq_length1.py +0 -0
  134. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/max_seq_length2.py +0 -0
  135. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/mode.py +0 -0
  136. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/mode1.py +0 -0
  137. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/models_inner.py +0 -0
  138. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/mongo_db_table_config.py +0 -0
  139. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/mssql_table_config.py +0 -0
  140. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/my_sql_table_config.py +0 -0
  141. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/n_epochs.py +0 -0
  142. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/n_epochs1.py +0 -0
  143. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/n_epochs2.py +0 -0
  144. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/n_estimators.py +0 -0
  145. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/n_heads.py +0 -0
  146. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/n_layers.py +0 -0
  147. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/neg_per_positive.py +0 -0
  148. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/negative_samples_count.py +0 -0
  149. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/ngram_tokenizer.py +0 -0
  150. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/no_op_config.py +0 -0
  151. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/num_blocks.py +0 -0
  152. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/num_heads.py +0 -0
  153. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/num_leaves.py +0 -0
  154. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/objective.py +0 -0
  155. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/objective1.py +0 -0
  156. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/online_store_config.py +0 -0
  157. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/pagination_config.py +0 -0
  158. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/parameter_definition.py +0 -0
  159. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/parameters_value.py +0 -0
  160. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/passthrough_score.py +0 -0
  161. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/personal_filter.py +0 -0
  162. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/pipeline_stage_explanation.py +0 -0
  163. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/policy.py +0 -0
  164. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/pooling_function.py +0 -0
  165. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/postgres_table_config.py +0 -0
  166. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/posthog_table_config.py +0 -0
  167. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/prebuilt_filter_step.py +0 -0
  168. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/precomputed_item_embedding.py +0 -0
  169. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/precomputed_user_embedding.py +0 -0
  170. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/query.py +0 -0
  171. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/query1.py +0 -0
  172. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/query_config.py +0 -0
  173. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/query_definition.py +0 -0
  174. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/query_encoder.py +0 -0
  175. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/query_explanation.py +0 -0
  176. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/query_request.py +0 -0
  177. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/query_result.py +0 -0
  178. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/query_table_config.py +0 -0
  179. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/rank_item_attribute_values_query_config.py +0 -0
  180. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/rank_query_config.py +0 -0
  181. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/rank_query_config_filter_inner.py +0 -0
  182. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/recreate_rollout.py +0 -0
  183. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/redshift_table_config.py +0 -0
  184. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/reference_table_config.py +0 -0
  185. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/regularization.py +0 -0
  186. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/reorder_inner.py +0 -0
  187. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/reorder_step_explanation.py +0 -0
  188. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/request.py +0 -0
  189. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/request1.py +0 -0
  190. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/resource_config.py +0 -0
  191. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/response_get_view_details_views_view_name_get.py +0 -0
  192. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/result.py +0 -0
  193. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/result_embeddings_value.py +0 -0
  194. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/retrieval_scores_value.py +0 -0
  195. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/retrieve_inner.py +0 -0
  196. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/retrieve_step_explanation.py +0 -0
  197. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/retriever.py +0 -0
  198. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/retriever1.py +0 -0
  199. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/rollout_config.py +0 -0
  200. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/rudderstack_table_config.py +0 -0
  201. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/sampling_strategy.py +0 -0
  202. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/saved_query_info_response.py +0 -0
  203. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/saved_query_list_response.py +0 -0
  204. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/saved_query_request.py +0 -0
  205. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/schema_config.py +0 -0
  206. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/score.py +0 -0
  207. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/score_ensemble.py +0 -0
  208. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/score_step_explanation.py +0 -0
  209. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/search_config.py +0 -0
  210. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/segment_table_config.py +0 -0
  211. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/sequence_length.py +0 -0
  212. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/server_config.py +0 -0
  213. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/shaped_internal_recsys_policies_als_model_policy_als_model_policy_config.py +0 -0
  214. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/shaped_internal_recsys_policies_beeformer_model_policy_beeformer_model_policy_beeformer_model_policy_config.py +0 -0
  215. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/shaped_internal_recsys_policies_bert_model_policy_bert_model_policy_bert_model_policy_config.py +0 -0
  216. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/shaped_internal_recsys_policies_elsa_model_policy_elsa_model_policy_elsa_model_policy_config.py +0 -0
  217. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/shaped_internal_recsys_policies_gsasrec_model_policy_gsasrec_model_policy_gsas_rec_model_policy_config.py +0 -0
  218. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/shaped_internal_recsys_policies_item2vec_model_policy_item2_vec_model_policy_config.py +0 -0
  219. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/shaped_internal_recsys_policies_lightgbm_model_policy_lightgbm_model_policy_light_gbm_model_policy_config.py +0 -0
  220. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/shaped_internal_recsys_policies_ngram_model_policy_ngram_model_policy_config.py +0 -0
  221. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/shaped_internal_recsys_policies_rising_popular_policy_rising_popular_policy_config.py +0 -0
  222. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/shaped_internal_recsys_policies_sasrec_model_policy_sasrec_model_policy_sas_rec_model_policy_config.py +0 -0
  223. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/shaped_internal_recsys_policies_svd_model_policy_svd_model_policy_config.py +0 -0
  224. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/shaped_internal_recsys_policies_two_tower_model_policy_two_tower_model_policy_two_tower_model_policy_config.py +0 -0
  225. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/shaped_internal_recsys_policies_widedeep_model_policy_wide_deep_model_policy_config.py +0 -0
  226. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/shaped_internal_recsys_policies_xgboost_model_policy_xg_boost_model_policy_config.py +0 -0
  227. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/shopify_table_config.py +0 -0
  228. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/similarity_retrieve_step.py +0 -0
  229. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/snowflake_table_config.py +0 -0
  230. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/sql_transform_type.py +0 -0
  231. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/sql_view_config.py +0 -0
  232. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/stemmer_tokenizer.py +0 -0
  233. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/step_explanation.py +0 -0
  234. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/steps_inner.py +0 -0
  235. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/strategy.py +0 -0
  236. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/table.py +0 -0
  237. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/table_deployment_type.py +0 -0
  238. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/table_insert_arguments.py +0 -0
  239. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/table_insert_response.py +0 -0
  240. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/text_search_retrieve_step.py +0 -0
  241. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/time_frequency.py +0 -0
  242. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/time_window.py +0 -0
  243. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/tokenizer.py +0 -0
  244. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/trained_model_encoder.py +0 -0
  245. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/training_config.py +0 -0
  246. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/training_strategy.py +0 -0
  247. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/transform_status.py +0 -0
  248. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/truncate_filter_step.py +0 -0
  249. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/tunable_bool.py +0 -0
  250. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/tunable_float.py +0 -0
  251. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/tunable_int.py +0 -0
  252. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/tunable_int_categorical.py +0 -0
  253. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/tunable_string.py +0 -0
  254. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/tuning_config.py +0 -0
  255. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/update_table_response.py +0 -0
  256. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/update_view_response.py +0 -0
  257. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/user_attribute_pooling_encoder.py +0 -0
  258. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/user_inner.py +0 -0
  259. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/val_split.py +0 -0
  260. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/validation_error.py +0 -0
  261. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/value_type.py +0 -0
  262. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/vector_search_mode.py +0 -0
  263. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/view.py +0 -0
  264. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/view_details_ai.py +0 -0
  265. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/view_details_ai_schema_value.py +0 -0
  266. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/view_details_sql.py +0 -0
  267. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/weight_decay.py +0 -0
  268. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/whitespace_tokenizer.py +0 -0
  269. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/models/window_size.py +0 -0
  270. {shaped-2.0.5 → shaped-2.0.10}/shaped/autogen/rest.py +0 -0
  271. {shaped-2.0.5 → shaped-2.0.10}/shaped/cli/__init__.py +0 -0
  272. {shaped-2.0.5 → shaped-2.0.10}/shaped/cli/shaped_cli.py +0 -0
  273. {shaped-2.0.5 → shaped-2.0.10}/shaped/client.py +0 -0
  274. {shaped-2.0.5 → shaped-2.0.10}/shaped/config_builders.py +0 -0
  275. {shaped-2.0.5 → shaped-2.0.10}/shaped/query_builder.py +0 -0
  276. {shaped-2.0.5 → shaped-2.0.10}/shaped.egg-info/dependency_links.txt +0 -0
  277. {shaped-2.0.5 → shaped-2.0.10}/shaped.egg-info/entry_points.txt +0 -0
  278. {shaped-2.0.5 → shaped-2.0.10}/shaped.egg-info/requires.txt +0 -0
  279. {shaped-2.0.5 → shaped-2.0.10}/shaped.egg-info/top_level.txt +0 -0
  280. {shaped-2.0.5 → shaped-2.0.10}/shaped.egg-info/zip-safe +0 -0
  281. {shaped-2.0.5 → shaped-2.0.10}/tests/test_cli.py +0 -0
  282. {shaped-2.0.5 → shaped-2.0.10}/tests/test_client_production.py +0 -0
  283. {shaped-2.0.5 → shaped-2.0.10}/tests/test_client_query_comprehensive.py +0 -0
  284. {shaped-2.0.5 → shaped-2.0.10}/tests/test_client_v2.py +0 -0
  285. {shaped-2.0.5 → shaped-2.0.10}/tests/test_client_v2_edge_cases.py +0 -0
  286. {shaped-2.0.5 → shaped-2.0.10}/tests/test_client_v2_errors.py +0 -0
  287. {shaped-2.0.5 → shaped-2.0.10}/tests/test_client_v2_integration.py +0 -0
  288. {shaped-2.0.5 → shaped-2.0.10}/tests/test_query_builder_comprehensive.py +0 -0
  289. {shaped-2.0.5 → shaped-2.0.10}/tests/test_query_builder_v2.py +0 -0
  290. {shaped-2.0.5 → shaped-2.0.10}/tests/test_query_builder_v2_edge_cases.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shaped
3
- Version: 2.0.5
3
+ Version: 2.0.10
4
4
  Summary: CLI and SDK tools for interacting with the Shaped API.
5
5
  Home-page: https://github.com/shaped-ai/magnus
6
6
  Author: Shaped Team
@@ -7,7 +7,7 @@ from setuptools import find_packages, setup
7
7
 
8
8
  with open("README.md") as f:
9
9
  long_description = f.read()
10
- version = "2.0.5"
10
+ version = "2.0.10"
11
11
  setup(
12
12
  name="shaped",
13
13
  version=version,
@@ -49,6 +49,7 @@ __all__ = [
49
49
  "CandidateIdsRetrieveStep",
50
50
  "CandidateRetrievalStrategy",
51
51
  "ClickhouseTableConfig",
52
+ "ColumnIndexConfig",
52
53
  "ColumnOrderRetrieveStep",
53
54
  "ColumnOrdering",
54
55
  "CreateTableResponse",
@@ -105,6 +106,7 @@ __all__ = [
105
106
  "HuggingFaceEncoder",
106
107
  "IcebergTableConfig",
107
108
  "IndexConfig",
109
+ "IndexType",
108
110
  "InnerEntityId",
109
111
  "InnerSize",
110
112
  "InnerSize1",
@@ -316,6 +318,7 @@ from shaped.autogen.models.candidate_attributes_retrieve_step import CandidateAt
316
318
  from shaped.autogen.models.candidate_ids_retrieve_step import CandidateIdsRetrieveStep as CandidateIdsRetrieveStep
317
319
  from shaped.autogen.models.candidate_retrieval_strategy import CandidateRetrievalStrategy as CandidateRetrievalStrategy
318
320
  from shaped.autogen.models.clickhouse_table_config import ClickhouseTableConfig as ClickhouseTableConfig
321
+ from shaped.autogen.models.column_index_config import ColumnIndexConfig as ColumnIndexConfig
319
322
  from shaped.autogen.models.column_order_retrieve_step import ColumnOrderRetrieveStep as ColumnOrderRetrieveStep
320
323
  from shaped.autogen.models.column_ordering import ColumnOrdering as ColumnOrdering
321
324
  from shaped.autogen.models.create_table_response import CreateTableResponse as CreateTableResponse
@@ -372,6 +375,7 @@ from shaped.autogen.models.http_problem_response import HttpProblemResponse as H
372
375
  from shaped.autogen.models.hugging_face_encoder import HuggingFaceEncoder as HuggingFaceEncoder
373
376
  from shaped.autogen.models.iceberg_table_config import IcebergTableConfig as IcebergTableConfig
374
377
  from shaped.autogen.models.index_config import IndexConfig as IndexConfig
378
+ from shaped.autogen.models.index_type import IndexType as IndexType
375
379
  from shaped.autogen.models.inner_entity_id import InnerEntityId as InnerEntityId
376
380
  from shaped.autogen.models.inner_size import InnerSize as InnerSize
377
381
  from shaped.autogen.models.inner_size1 import InnerSize1 as InnerSize1
@@ -504,7 +504,7 @@ class Configuration:
504
504
  return "Python SDK Debug Report:\n"\
505
505
  "OS: {env}\n"\
506
506
  "Python Version: {pyversion}\n"\
507
- "Version of the API: 2.0.5\n"\
507
+ "Version of the API: 2.0.10\n"\
508
508
  "SDK Package Version: 1.0.0".\
509
509
  format(env=sys.platform, pyversion=sys.version)
510
510
 
@@ -31,6 +31,7 @@ from shaped.autogen.models.candidate_attributes_retrieve_step import CandidateAt
31
31
  from shaped.autogen.models.candidate_ids_retrieve_step import CandidateIdsRetrieveStep
32
32
  from shaped.autogen.models.candidate_retrieval_strategy import CandidateRetrievalStrategy
33
33
  from shaped.autogen.models.clickhouse_table_config import ClickhouseTableConfig
34
+ from shaped.autogen.models.column_index_config import ColumnIndexConfig
34
35
  from shaped.autogen.models.column_order_retrieve_step import ColumnOrderRetrieveStep
35
36
  from shaped.autogen.models.column_ordering import ColumnOrdering
36
37
  from shaped.autogen.models.create_table_response import CreateTableResponse
@@ -87,6 +88,7 @@ from shaped.autogen.models.http_problem_response import HttpProblemResponse
87
88
  from shaped.autogen.models.hugging_face_encoder import HuggingFaceEncoder
88
89
  from shaped.autogen.models.iceberg_table_config import IcebergTableConfig
89
90
  from shaped.autogen.models.index_config import IndexConfig
91
+ from shaped.autogen.models.index_type import IndexType
90
92
  from shaped.autogen.models.inner_entity_id import InnerEntityId
91
93
  from shaped.autogen.models.inner_size import InnerSize
92
94
  from shaped.autogen.models.inner_size1 import InnerSize1
@@ -0,0 +1,89 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Shaped API
5
+
6
+ Welcome to Shaped's API reference docs. These provide a detailed view of the endpoints and CLI commands that Shaped provides and brief explanations of how they should be used. The Shaped API has four main endpoints: **Tables** - Provision and manage batch and real-time data connectors. **Views** - Configure SQL transformations and AI enrichment on your input data. Use SQL to combine multiple data sources or use an LLM to add new categories, extract specific attributes from descriptions, etc. **Engines** - Deploy and manage your relevance engines. The Engine API exposes configuration for indexing logic, input datasets, externam embeddings, and more. **Query** - Execute queries against your engines, to return data based on an input query or rerank an existing list. The Query API exposes the retrieve, filter, score, and ranking steps of the 4-stage ranking architecture. The base URL for each endpoint is: `https://api.shaped.ai/v2`
7
+
8
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
9
+
10
+ Do not edit the class manually.
11
+ """ # noqa: E501
12
+
13
+
14
+ from __future__ import annotations
15
+ import pprint
16
+ import re # noqa: F401
17
+ import json
18
+
19
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr
20
+ from typing import Any, ClassVar, Dict, List, Optional
21
+ from shaped.autogen.models.index_type import IndexType
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class ColumnIndexConfig(BaseModel):
26
+ """
27
+ Configuration for a specific column index in the vector store.
28
+ """ # noqa: E501
29
+ column: StrictStr = Field(description="Column name to create an index for.")
30
+ index_type: Optional[IndexType] = Field(default=None, description="Type of index to create. Options: btree, bitmap, label_list, fts.")
31
+ __properties: ClassVar[List[str]] = ["column", "index_type"]
32
+
33
+ model_config = ConfigDict(
34
+ populate_by_name=True,
35
+ validate_assignment=True,
36
+ protected_namespaces=(),
37
+ )
38
+
39
+
40
+ def to_str(self) -> str:
41
+ """Returns the string representation of the model using alias"""
42
+ return pprint.pformat(self.model_dump(by_alias=True))
43
+
44
+ def to_json(self) -> str:
45
+ """Returns the JSON representation of the model using alias"""
46
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
47
+ return json.dumps(self.to_dict())
48
+
49
+ @classmethod
50
+ def from_json(cls, json_str: str) -> Optional[Self]:
51
+ """Create an instance of ColumnIndexConfig from a JSON string"""
52
+ return cls.from_dict(json.loads(json_str))
53
+
54
+ def to_dict(self) -> Dict[str, Any]:
55
+ """Return the dictionary representation of the model using alias.
56
+
57
+ This has the following differences from calling pydantic's
58
+ `self.model_dump(by_alias=True)`:
59
+
60
+ * `None` is only added to the output dict for nullable fields that
61
+ were set at model initialization. Other fields with value `None`
62
+ are ignored.
63
+ """
64
+ excluded_fields: Set[str] = set([
65
+ ])
66
+
67
+ _dict = self.model_dump(
68
+ by_alias=True,
69
+ exclude=excluded_fields,
70
+ exclude_none=True,
71
+ )
72
+ return _dict
73
+
74
+ @classmethod
75
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
76
+ """Create an instance of ColumnIndexConfig from a dict"""
77
+ if obj is None:
78
+ return None
79
+
80
+ if not isinstance(obj, dict):
81
+ return cls.model_validate(obj)
82
+
83
+ _obj = cls.model_validate({
84
+ "column": obj.get("column"),
85
+ "index_type": obj.get("index_type")
86
+ })
87
+ return _obj
88
+
89
+
@@ -26,10 +26,11 @@ class EvaluationConfig(BaseModel):
26
26
  """
27
27
  Defines the strategy for offline model evaluation.
28
28
  """ # noqa: E501
29
+ enable: Optional[StrictBool] = Field(default=False, description="Whether to perform offline model evaluation.")
29
30
  candidate_source: Optional[CandidateRetrievalStrategy] = Field(default=None, description="Strategy for selecting candidate items for evaluation.")
30
31
  filter_seen_items: Optional[StrictBool] = Field(default=False, description="Whether to filter out items the user has already seen.")
31
32
  evaluation_top_k: Optional[StrictInt] = Field(default=50, description="Number of top items to evaluate (must be between 1 and 300).")
32
- __properties: ClassVar[List[str]] = ["candidate_source", "filter_seen_items", "evaluation_top_k"]
33
+ __properties: ClassVar[List[str]] = ["enable", "candidate_source", "filter_seen_items", "evaluation_top_k"]
33
34
 
34
35
  model_config = ConfigDict(
35
36
  populate_by_name=True,
@@ -82,6 +83,7 @@ class EvaluationConfig(BaseModel):
82
83
  return cls.model_validate(obj)
83
84
 
84
85
  _obj = cls.model_validate({
86
+ "enable": obj.get("enable") if obj.get("enable") is not None else False,
85
87
  "candidate_source": obj.get("candidate_source"),
86
88
  "filter_seen_items": obj.get("filter_seen_items") if obj.get("filter_seen_items") is not None else False,
87
89
  "evaluation_top_k": obj.get("evaluation_top_k") if obj.get("evaluation_top_k") is not None else 50
@@ -18,6 +18,7 @@ import json
18
18
 
19
19
  from pydantic import BaseModel, ConfigDict, Field
20
20
  from typing import Any, ClassVar, Dict, List, Optional
21
+ from shaped.autogen.models.column_index_config import ColumnIndexConfig
21
22
  from shaped.autogen.models.embedding_config import EmbeddingConfig
22
23
  from shaped.autogen.models.search_config import SearchConfig
23
24
  from typing import Optional, Set
@@ -29,7 +30,9 @@ class IndexConfig(BaseModel):
29
30
  """ # noqa: E501
30
31
  lexical_search: Optional[SearchConfig] = Field(default=None, description="BM25 text search configuration.")
31
32
  embeddings: Optional[List[EmbeddingConfig]] = Field(default=None, description="List of embedding configurations for vector search.")
32
- __properties: ClassVar[List[str]] = ["lexical_search", "embeddings"]
33
+ user_column_indices: Optional[List[ColumnIndexConfig]] = None
34
+ item_column_indices: Optional[List[ColumnIndexConfig]] = None
35
+ __properties: ClassVar[List[str]] = ["lexical_search", "embeddings", "user_column_indices", "item_column_indices"]
33
36
 
34
37
  model_config = ConfigDict(
35
38
  populate_by_name=True,
@@ -80,6 +83,30 @@ class IndexConfig(BaseModel):
80
83
  if _item_embeddings:
81
84
  _items.append(_item_embeddings.to_dict())
82
85
  _dict['embeddings'] = _items
86
+ # override the default output from pydantic by calling `to_dict()` of each item in user_column_indices (list)
87
+ _items = []
88
+ if self.user_column_indices:
89
+ for _item_user_column_indices in self.user_column_indices:
90
+ if _item_user_column_indices:
91
+ _items.append(_item_user_column_indices.to_dict())
92
+ _dict['user_column_indices'] = _items
93
+ # override the default output from pydantic by calling `to_dict()` of each item in item_column_indices (list)
94
+ _items = []
95
+ if self.item_column_indices:
96
+ for _item_item_column_indices in self.item_column_indices:
97
+ if _item_item_column_indices:
98
+ _items.append(_item_item_column_indices.to_dict())
99
+ _dict['item_column_indices'] = _items
100
+ # set to None if user_column_indices (nullable) is None
101
+ # and model_fields_set contains the field
102
+ if self.user_column_indices is None and "user_column_indices" in self.model_fields_set:
103
+ _dict['user_column_indices'] = None
104
+
105
+ # set to None if item_column_indices (nullable) is None
106
+ # and model_fields_set contains the field
107
+ if self.item_column_indices is None and "item_column_indices" in self.model_fields_set:
108
+ _dict['item_column_indices'] = None
109
+
83
110
  return _dict
84
111
 
85
112
  @classmethod
@@ -93,7 +120,9 @@ class IndexConfig(BaseModel):
93
120
 
94
121
  _obj = cls.model_validate({
95
122
  "lexical_search": SearchConfig.from_dict(obj["lexical_search"]) if obj.get("lexical_search") is not None else None,
96
- "embeddings": [EmbeddingConfig.from_dict(_item) for _item in obj["embeddings"]] if obj.get("embeddings") is not None else None
123
+ "embeddings": [EmbeddingConfig.from_dict(_item) for _item in obj["embeddings"]] if obj.get("embeddings") is not None else None,
124
+ "user_column_indices": [ColumnIndexConfig.from_dict(_item) for _item in obj["user_column_indices"]] if obj.get("user_column_indices") is not None else None,
125
+ "item_column_indices": [ColumnIndexConfig.from_dict(_item) for _item in obj["item_column_indices"]] if obj.get("item_column_indices") is not None else None
97
126
  })
98
127
  return _obj
99
128
 
@@ -0,0 +1,38 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Shaped API
5
+
6
+ Welcome to Shaped's API reference docs. These provide a detailed view of the endpoints and CLI commands that Shaped provides and brief explanations of how they should be used. The Shaped API has four main endpoints: **Tables** - Provision and manage batch and real-time data connectors. **Views** - Configure SQL transformations and AI enrichment on your input data. Use SQL to combine multiple data sources or use an LLM to add new categories, extract specific attributes from descriptions, etc. **Engines** - Deploy and manage your relevance engines. The Engine API exposes configuration for indexing logic, input datasets, externam embeddings, and more. **Query** - Execute queries against your engines, to return data based on an input query or rerank an existing list. The Query API exposes the retrieve, filter, score, and ranking steps of the 4-stage ranking architecture. The base URL for each endpoint is: `https://api.shaped.ai/v2`
7
+
8
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
9
+
10
+ Do not edit the class manually.
11
+ """ # noqa: E501
12
+
13
+
14
+ from __future__ import annotations
15
+ import json
16
+ from enum import Enum
17
+ from typing_extensions import Self
18
+
19
+
20
+ class IndexType(str, Enum):
21
+ """
22
+ The underlying index type to build for fast lookups.
23
+ """
24
+
25
+ """
26
+ allowed enum values
27
+ """
28
+ BTREE = 'btree'
29
+ BITMAP = 'bitmap'
30
+ LABEL_LIST = 'label_list'
31
+ FTS = 'fts'
32
+
33
+ @classmethod
34
+ def from_json(cls, json_str: str) -> Self:
35
+ """Create an instance of IndexType from a JSON string"""
36
+ return cls(json.loads(json_str))
37
+
38
+
@@ -26,7 +26,7 @@ class RequestsPerSecondScalingPolicy(BaseModel):
26
26
  RequestsPerSecondScalingPolicy
27
27
  """ # noqa: E501
28
28
  type: Optional[StrictStr] = Field(default='requests_per_second', description="Scaling policy type discriminator.")
29
- target_requests: Optional[Union[StrictFloat, StrictInt]] = Field(default=10.0, description="Target requests per second per replica for scaling.")
29
+ target_requests: Optional[Union[StrictFloat, StrictInt]] = Field(default=1.0, description="Target requests per second per replica for scaling.")
30
30
  additional_properties: Dict[str, Any] = {}
31
31
  __properties: ClassVar[List[str]] = ["type", "target_requests"]
32
32
 
@@ -99,7 +99,7 @@ class RequestsPerSecondScalingPolicy(BaseModel):
99
99
 
100
100
  _obj = cls.model_validate({
101
101
  "type": obj.get("type") if obj.get("type") is not None else 'requests_per_second',
102
- "target_requests": obj.get("target_requests") if obj.get("target_requests") is not None else 10.0
102
+ "target_requests": obj.get("target_requests") if obj.get("target_requests") is not None else 1.0
103
103
  })
104
104
  # store additional fields in additional_properties
105
105
  for _key in obj.keys():
@@ -25,7 +25,7 @@ class SetupEngineResponse(BaseModel):
25
25
  """
26
26
  SetupEngineResponse
27
27
  """ # noqa: E501
28
- engine_url: StrictStr = Field(description="URL to access the created or updated engine.")
28
+ engine_url: StrictStr = Field(description="URL to the console run-health monitor for the engine.")
29
29
  __properties: ClassVar[List[str]] = ["engine_url"]
30
30
 
31
31
  model_config = ConfigDict(
@@ -31,8 +31,7 @@ class TrainingComputeConfig(BaseModel):
31
31
  cpu_count: Optional[StrictInt] = Field(default=4, description="Number of CPU cores per training job.")
32
32
  force_gpu: Optional[StrictBool] = Field(default=False, description="Whether to force GPU usage even if not needed.")
33
33
  disk_size_gb: Optional[StrictInt] = Field(default=64, description="Disk size in GB for training job storage.")
34
- use_kubetorch: Optional[StrictBool] = Field(default=True, description="Whether to use kubetorch for running remote jobs.")
35
- __properties: ClassVar[List[str]] = ["gpu_type", "gpu_count", "cpu_memory_gb", "cpu_count", "force_gpu", "disk_size_gb", "use_kubetorch"]
34
+ __properties: ClassVar[List[str]] = ["gpu_type", "gpu_count", "cpu_memory_gb", "cpu_count", "force_gpu", "disk_size_gb"]
36
35
 
37
36
  model_config = ConfigDict(
38
37
  populate_by_name=True,
@@ -90,8 +89,7 @@ class TrainingComputeConfig(BaseModel):
90
89
  "cpu_memory_gb": obj.get("cpu_memory_gb") if obj.get("cpu_memory_gb") is not None else 16,
91
90
  "cpu_count": obj.get("cpu_count") if obj.get("cpu_count") is not None else 4,
92
91
  "force_gpu": obj.get("force_gpu") if obj.get("force_gpu") is not None else False,
93
- "disk_size_gb": obj.get("disk_size_gb") if obj.get("disk_size_gb") is not None else 64,
94
- "use_kubetorch": obj.get("use_kubetorch") if obj.get("use_kubetorch") is not None else True
92
+ "disk_size_gb": obj.get("disk_size_gb") if obj.get("disk_size_gb") is not None else 64
95
93
  })
96
94
  return _obj
97
95
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shaped
3
- Version: 2.0.5
3
+ Version: 2.0.10
4
4
  Summary: CLI and SDK tools for interacting with the Shaped API.
5
5
  Home-page: https://github.com/shaped-ai/magnus
6
6
  Author: Shaped Team
@@ -36,6 +36,7 @@ setup.py
36
36
  ./shaped/autogen/models/candidate_ids_retrieve_step.py
37
37
  ./shaped/autogen/models/candidate_retrieval_strategy.py
38
38
  ./shaped/autogen/models/clickhouse_table_config.py
39
+ ./shaped/autogen/models/column_index_config.py
39
40
  ./shaped/autogen/models/column_order_retrieve_step.py
40
41
  ./shaped/autogen/models/column_ordering.py
41
42
  ./shaped/autogen/models/create_table_response.py
@@ -92,6 +93,7 @@ setup.py
92
93
  ./shaped/autogen/models/hugging_face_encoder.py
93
94
  ./shaped/autogen/models/iceberg_table_config.py
94
95
  ./shaped/autogen/models/index_config.py
96
+ ./shaped/autogen/models/index_type.py
95
97
  ./shaped/autogen/models/inner_entity_id.py
96
98
  ./shaped/autogen/models/inner_size.py
97
99
  ./shaped/autogen/models/inner_size1.py
@@ -308,6 +310,7 @@ shaped/autogen/models/candidate_attributes_retrieve_step.py
308
310
  shaped/autogen/models/candidate_ids_retrieve_step.py
309
311
  shaped/autogen/models/candidate_retrieval_strategy.py
310
312
  shaped/autogen/models/clickhouse_table_config.py
313
+ shaped/autogen/models/column_index_config.py
311
314
  shaped/autogen/models/column_order_retrieve_step.py
312
315
  shaped/autogen/models/column_ordering.py
313
316
  shaped/autogen/models/create_table_response.py
@@ -364,6 +367,7 @@ shaped/autogen/models/http_validation_error.py
364
367
  shaped/autogen/models/hugging_face_encoder.py
365
368
  shaped/autogen/models/iceberg_table_config.py
366
369
  shaped/autogen/models/index_config.py
370
+ shaped/autogen/models/index_type.py
367
371
  shaped/autogen/models/inner_entity_id.py
368
372
  shaped/autogen/models/inner_size.py
369
373
  shaped/autogen/models/inner_size1.py
@@ -91,14 +91,19 @@ class TestClientIntegration:
91
91
 
92
92
  # Mock response
93
93
  mock_response = Mock()
94
- mock_response.engine_url = "https://api.shaped.ai/v2/engines/test-engine"
94
+ mock_response.engine_url = (
95
+ "https://console.shaped.ai/monitor/run-health?engine=test-engine"
96
+ )
95
97
  mock_client._engine_api.post_setup_engine_engines_post.return_value = (
96
98
  mock_response
97
99
  )
98
100
 
99
101
  result = mock_client.create_engine(engine)
100
102
 
101
- assert result.engine_url == "https://api.shaped.ai/v2/engines/test-engine"
103
+ assert (
104
+ result.engine_url
105
+ == "https://console.shaped.ai/monitor/run-health?engine=test-engine"
106
+ )
102
107
  mock_client._engine_api.post_setup_engine_engines_post.assert_called_once()
103
108
  call_args = mock_client._engine_api.post_setup_engine_engines_post.call_args
104
109
  assert call_args.kwargs["engine_config_v2"].name == "test-engine"
File without changes
File without changes
File without changes
File without changes