shaped 2.0.5__tar.gz → 2.0.8__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.
- {shaped-2.0.5 → shaped-2.0.8}/PKG-INFO +1 -1
- {shaped-2.0.5 → shaped-2.0.8}/setup.py +1 -1
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/__init__.py +4 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/configuration.py +1 -1
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/__init__.py +2 -0
- shaped-2.0.8/shaped/autogen/models/column_index_config.py +89 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/evaluation_config.py +3 -1
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/index_config.py +31 -2
- shaped-2.0.8/shaped/autogen/models/index_type.py +38 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/training_compute_config.py +2 -4
- {shaped-2.0.5 → shaped-2.0.8}/shaped.egg-info/PKG-INFO +1 -1
- {shaped-2.0.5 → shaped-2.0.8}/shaped.egg-info/SOURCES.txt +4 -0
- {shaped-2.0.5 → shaped-2.0.8}/README.md +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/pyproject.toml +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/setup.cfg +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/__init__.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/api/__init__.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/api/engine_api.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/api/query_api.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/api/table_api.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/api/view_api.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/api_client.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/api_response.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/exceptions.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/ai_enrichment_view_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/algorithm.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/amplitude_table_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/attn_dropout_prob.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/attribute_journey.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/attribute_value.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/autoscaling_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/aws_pinpoint_table_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/batch_size.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/batch_size1.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/batch_size2.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/big_query_table_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/bm25.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/boosted_reorder_step.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/canary_rollout.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/candidate_attributes_retrieve_step.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/candidate_ids_retrieve_step.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/candidate_retrieval_strategy.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/clickhouse_table_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/column_order_retrieve_step.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/column_ordering.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/create_table_response.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/create_view_response.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/custom_table_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/data_compute_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/data_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/data_config_interaction_table.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/data_split_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/data_split_strategy.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/data_tier.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/default.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/delete_engine_response.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/delete_table_response.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/delete_view_response.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/deployment_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/diversity_reorder_step.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/dropout_rate.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/dynamo_db_table_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/dynamo_db_table_config_scan_kwargs_value.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/embedder_batch_size.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/embedding_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/embedding_dim.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/embedding_dims.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/embedding_size.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/encoder.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/engine.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/engine_config_v2.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/engine_details_response.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/engine_schema.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/entity_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/entity_journey.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/entity_type.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/exploration_reorder_step.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/expression_filter_step.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/factors.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/factors1.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/feature.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/feature_type.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/file_table_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/filter_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/filter_index_type.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/filter_retrieve_step.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/filter_step_explanation.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/filter_table.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/filter_type.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/global_filter.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/hidden_dropout_prob.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/hidden_size.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/hidden_size1.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/http_problem_response.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/http_validation_error.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/hugging_face_encoder.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/iceberg_table_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/inner_entity_id.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/inner_size.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/inner_size1.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/inner_uid.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/interaction_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/interaction_pooling_encoder.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/interaction_round_robin_encoder.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/item_attribute_pooling_encoder.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/journey.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/kafka_table_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/kinesis_table_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/kinesis_table_config_column_schema_value.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/label.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/label_type.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/laplace_smoothing.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/latency_scaling_policy.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/learning_rate.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/learning_rate1.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/learning_rate2.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/learning_rate3.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/lexical_search_mode.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/list_engines_response.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/list_tables_response.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/list_views_response.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/location_inner.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/loss_types.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/lr.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/lr1.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/lr2.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/max_depth.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/max_leaves.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/max_seq_length.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/max_seq_length1.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/max_seq_length2.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/mode.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/mode1.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/models_inner.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/mongo_db_table_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/mssql_table_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/my_sql_table_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/n_epochs.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/n_epochs1.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/n_epochs2.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/n_estimators.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/n_heads.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/n_layers.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/neg_per_positive.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/negative_samples_count.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/ngram_tokenizer.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/no_op_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/num_blocks.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/num_heads.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/num_leaves.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/objective.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/objective1.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/online_store_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/pagination_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/parameter_definition.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/parameters_value.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/passthrough_score.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/personal_filter.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/pipeline_stage_explanation.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/policy.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/pooling_function.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/postgres_table_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/posthog_table_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/prebuilt_filter_step.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/precomputed_item_embedding.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/precomputed_user_embedding.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/query.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/query1.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/query_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/query_definition.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/query_encoder.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/query_explanation.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/query_request.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/query_result.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/query_table_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/rank_item_attribute_values_query_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/rank_query_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/rank_query_config_filter_inner.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/recreate_rollout.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/redshift_table_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/reference_table_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/regularization.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/reorder_inner.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/reorder_step_explanation.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/request.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/request1.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/requests_per_second_scaling_policy.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/resource_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/response_get_view_details_views_view_name_get.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/result.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/result_embeddings_value.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/retrieval_scores_value.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/retrieve_inner.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/retrieve_step_explanation.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/retriever.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/retriever1.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/rollout_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/rudderstack_table_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/sampling_strategy.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/saved_query_info_response.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/saved_query_list_response.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/saved_query_request.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/schema_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/score.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/score_ensemble.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/score_step_explanation.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/search_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/segment_table_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/sequence_length.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/server_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/setup_engine_response.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/shaped_internal_recsys_policies_als_model_policy_als_model_policy_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/shaped_internal_recsys_policies_beeformer_model_policy_beeformer_model_policy_beeformer_model_policy_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/shaped_internal_recsys_policies_bert_model_policy_bert_model_policy_bert_model_policy_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/shaped_internal_recsys_policies_elsa_model_policy_elsa_model_policy_elsa_model_policy_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/shaped_internal_recsys_policies_gsasrec_model_policy_gsasrec_model_policy_gsas_rec_model_policy_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/shaped_internal_recsys_policies_item2vec_model_policy_item2_vec_model_policy_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/shaped_internal_recsys_policies_lightgbm_model_policy_lightgbm_model_policy_light_gbm_model_policy_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/shaped_internal_recsys_policies_ngram_model_policy_ngram_model_policy_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/shaped_internal_recsys_policies_rising_popular_policy_rising_popular_policy_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/shaped_internal_recsys_policies_sasrec_model_policy_sasrec_model_policy_sas_rec_model_policy_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/shaped_internal_recsys_policies_svd_model_policy_svd_model_policy_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/shaped_internal_recsys_policies_two_tower_model_policy_two_tower_model_policy_two_tower_model_policy_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/shaped_internal_recsys_policies_widedeep_model_policy_wide_deep_model_policy_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/shaped_internal_recsys_policies_xgboost_model_policy_xg_boost_model_policy_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/shopify_table_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/similarity_retrieve_step.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/snowflake_table_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/sql_transform_type.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/sql_view_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/stemmer_tokenizer.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/step_explanation.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/steps_inner.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/strategy.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/table.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/table_deployment_type.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/table_insert_arguments.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/table_insert_response.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/text_search_retrieve_step.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/time_frequency.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/time_window.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/tokenizer.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/trained_model_encoder.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/training_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/training_strategy.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/transform_status.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/truncate_filter_step.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/tunable_bool.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/tunable_float.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/tunable_int.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/tunable_int_categorical.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/tunable_string.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/tuning_config.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/update_table_response.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/update_view_response.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/user_attribute_pooling_encoder.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/user_inner.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/val_split.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/validation_error.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/value_type.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/vector_search_mode.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/view.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/view_details_ai.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/view_details_ai_schema_value.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/view_details_sql.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/weight_decay.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/whitespace_tokenizer.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/window_size.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/rest.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/cli/__init__.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/cli/shaped_cli.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/client.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/config_builders.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped/query_builder.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped.egg-info/dependency_links.txt +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped.egg-info/entry_points.txt +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped.egg-info/requires.txt +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped.egg-info/top_level.txt +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/shaped.egg-info/zip-safe +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/tests/test_cli.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/tests/test_client_production.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/tests/test_client_query_comprehensive.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/tests/test_client_v2.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/tests/test_client_v2_edge_cases.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/tests/test_client_v2_errors.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/tests/test_client_v2_integration.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/tests/test_config_builders.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/tests/test_query_builder_comprehensive.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/tests/test_query_builder_v2.py +0 -0
- {shaped-2.0.5 → shaped-2.0.8}/tests/test_query_builder_v2_edge_cases.py +0 -0
|
@@ -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.
|
|
507
|
+
"Version of the API: 2.0.8\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
|
-
|
|
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
|
+
|
|
@@ -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
|
-
|
|
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
|
|
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/dynamo_db_table_config_scan_kwargs_value.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shaped-2.0.5 → shaped-2.0.8}/shaped/autogen/models/kinesis_table_config_column_schema_value.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|