MindsDB 1.3.1__py3-none-any.whl → 24.12.4.0__py3-none-any.whl
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.
Potentially problematic release.
This version of MindsDB might be problematic. Click here for more details.
- MindsDB-24.12.4.0.dist-info/LICENSE +199 -0
- MindsDB-24.12.4.0.dist-info/METADATA +910 -0
- MindsDB-24.12.4.0.dist-info/RECORD +1922 -0
- {MindsDB-1.3.1.dist-info → MindsDB-24.12.4.0.dist-info}/WHEEL +1 -1
- mindsdb/__about__.py +5 -5
- mindsdb/__init__.py +1 -11
- mindsdb/__main__.py +556 -0
- mindsdb/api/common/check_auth.py +42 -0
- mindsdb/api/executor/__init__.py +2 -0
- mindsdb/api/executor/command_executor.py +2047 -0
- mindsdb/api/executor/controllers/__init__.py +1 -0
- mindsdb/api/executor/controllers/session_controller.py +91 -0
- mindsdb/api/executor/data_types/answer.py +16 -0
- mindsdb/api/executor/data_types/response_type.py +8 -0
- mindsdb/api/executor/datahub/__init__.py +1 -0
- mindsdb/api/executor/datahub/classes/tables_row.py +65 -0
- mindsdb/api/executor/datahub/datanodes/__init__.py +4 -0
- mindsdb/api/executor/datahub/datanodes/datanode.py +20 -0
- mindsdb/api/executor/datahub/datanodes/information_schema_datanode.py +180 -0
- mindsdb/api/executor/datahub/datanodes/integration_datanode.py +281 -0
- mindsdb/api/executor/datahub/datanodes/mindsdb_tables.py +428 -0
- mindsdb/api/executor/datahub/datanodes/project_datanode.py +186 -0
- mindsdb/api/executor/datahub/datanodes/system_tables.py +525 -0
- mindsdb/api/executor/exceptions.py +39 -0
- mindsdb/api/executor/planner/__init__.py +5 -0
- mindsdb/api/executor/planner/exceptions.py +3 -0
- mindsdb/api/executor/planner/plan_join.py +640 -0
- mindsdb/api/executor/planner/plan_join_ts.py +384 -0
- mindsdb/api/executor/planner/query_plan.py +29 -0
- mindsdb/api/executor/planner/query_planner.py +837 -0
- mindsdb/api/executor/planner/query_prepare.py +527 -0
- mindsdb/api/executor/planner/step_result.py +19 -0
- mindsdb/api/executor/planner/steps.py +262 -0
- mindsdb/api/executor/planner/ts_utils.py +93 -0
- mindsdb/api/executor/planner/utils.py +126 -0
- mindsdb/api/executor/sql_query/result_set.py +312 -0
- mindsdb/api/executor/sql_query/sql_query.py +318 -0
- mindsdb/api/executor/sql_query/steps/__init__.py +13 -0
- mindsdb/api/executor/sql_query/steps/apply_predictor_step.py +424 -0
- mindsdb/api/executor/sql_query/steps/base.py +21 -0
- mindsdb/api/executor/sql_query/steps/delete_step.py +49 -0
- mindsdb/api/executor/sql_query/steps/fetch_dataframe.py +116 -0
- mindsdb/api/executor/sql_query/steps/insert_step.py +129 -0
- mindsdb/api/executor/sql_query/steps/join_step.py +109 -0
- mindsdb/api/executor/sql_query/steps/map_reduce_step.py +179 -0
- mindsdb/api/executor/sql_query/steps/multiple_step.py +24 -0
- mindsdb/api/executor/sql_query/steps/prepare_steps.py +59 -0
- mindsdb/api/executor/sql_query/steps/project_step.py +86 -0
- mindsdb/api/executor/sql_query/steps/sql_steps.py +41 -0
- mindsdb/api/executor/sql_query/steps/subselect_step.py +159 -0
- mindsdb/api/executor/sql_query/steps/union_step.py +56 -0
- mindsdb/api/executor/sql_query/steps/update_step.py +129 -0
- mindsdb/api/executor/utilities/functions.py +37 -0
- mindsdb/api/executor/utilities/sql.py +195 -0
- mindsdb/api/http/gui.py +94 -0
- mindsdb/api/http/gunicorn_wrapper.py +17 -0
- mindsdb/api/http/initialize.py +454 -0
- mindsdb/api/http/namespaces/agents.py +499 -0
- mindsdb/api/http/namespaces/analysis.py +117 -0
- mindsdb/api/http/namespaces/auth.py +167 -0
- mindsdb/api/http/namespaces/chatbots.py +318 -0
- mindsdb/api/http/namespaces/config.py +286 -0
- mindsdb/api/http/namespaces/configs/agents.py +3 -0
- mindsdb/api/http/namespaces/configs/analysis.py +3 -0
- mindsdb/api/http/namespaces/configs/auth.py +4 -0
- mindsdb/api/http/namespaces/configs/chatbots.py +3 -0
- mindsdb/api/http/namespaces/configs/config.py +3 -0
- mindsdb/api/http/namespaces/configs/databases.py +3 -0
- mindsdb/api/http/namespaces/configs/default.py +4 -0
- mindsdb/api/http/namespaces/configs/files.py +4 -0
- mindsdb/api/http/namespaces/configs/handlers.py +3 -0
- mindsdb/api/http/namespaces/configs/jobs.py +3 -0
- mindsdb/api/http/namespaces/configs/knowledge_bases.py +3 -0
- mindsdb/api/http/namespaces/configs/projects.py +3 -0
- mindsdb/api/http/namespaces/configs/skills.py +3 -0
- mindsdb/api/http/namespaces/configs/sql.py +3 -0
- mindsdb/api/http/namespaces/configs/tabs.py +3 -0
- mindsdb/api/http/namespaces/configs/tree.py +3 -0
- mindsdb/api/http/namespaces/configs/util.py +3 -0
- mindsdb/api/http/namespaces/configs/webhooks.py +3 -0
- mindsdb/api/http/namespaces/databases.py +394 -0
- mindsdb/api/http/namespaces/default.py +152 -0
- mindsdb/api/http/namespaces/file.py +191 -0
- mindsdb/api/http/namespaces/handlers.py +232 -0
- mindsdb/api/http/namespaces/jobs.py +99 -0
- mindsdb/api/http/namespaces/knowledge_bases.py +420 -0
- mindsdb/api/http/namespaces/models.py +297 -0
- mindsdb/api/http/namespaces/projects.py +46 -0
- mindsdb/api/http/namespaces/skills.py +170 -0
- mindsdb/api/http/namespaces/sql.py +162 -0
- mindsdb/api/http/namespaces/tab.py +131 -0
- mindsdb/api/http/namespaces/tree.py +105 -0
- mindsdb/api/http/namespaces/util.py +144 -0
- mindsdb/api/http/namespaces/views.py +153 -0
- mindsdb/api/http/namespaces/webhooks.py +29 -0
- mindsdb/api/http/start.py +67 -0
- mindsdb/api/http/utils.py +37 -0
- mindsdb/api/mongo/classes/__init__.py +5 -0
- mindsdb/api/mongo/classes/query_sql.py +18 -0
- mindsdb/api/mongo/classes/responder.py +45 -0
- mindsdb/api/mongo/classes/responder_collection.py +34 -0
- mindsdb/api/mongo/classes/scram.py +86 -0
- mindsdb/api/mongo/classes/session.py +23 -0
- mindsdb/api/mongo/functions/__init__.py +19 -0
- mindsdb/api/mongo/responders/__init__.py +73 -0
- mindsdb/api/mongo/responders/add_shard.py +13 -0
- mindsdb/api/mongo/responders/aggregate.py +90 -0
- mindsdb/api/mongo/responders/buildinfo.py +17 -0
- mindsdb/api/mongo/responders/coll_stats.py +62 -0
- mindsdb/api/mongo/responders/company_id.py +25 -0
- mindsdb/api/mongo/responders/connection_status.py +22 -0
- mindsdb/api/mongo/responders/count.py +21 -0
- mindsdb/api/mongo/responders/db_stats.py +31 -0
- mindsdb/api/mongo/responders/delete.py +105 -0
- mindsdb/api/mongo/responders/describe.py +23 -0
- mindsdb/api/mongo/responders/end_sessions.py +13 -0
- mindsdb/api/mongo/responders/find.py +175 -0
- mindsdb/api/mongo/responders/get_cmd_line_opts.py +18 -0
- mindsdb/api/mongo/responders/get_free_monitoring_status.py +14 -0
- mindsdb/api/mongo/responders/get_parameter.py +23 -0
- mindsdb/api/mongo/responders/getlog.py +14 -0
- mindsdb/api/mongo/responders/host_info.py +28 -0
- mindsdb/api/mongo/responders/insert.py +268 -0
- mindsdb/api/mongo/responders/is_master.py +20 -0
- mindsdb/api/mongo/responders/is_master_lower.py +13 -0
- mindsdb/api/mongo/responders/list_collections.py +55 -0
- mindsdb/api/mongo/responders/list_databases.py +37 -0
- mindsdb/api/mongo/responders/list_indexes.py +22 -0
- mindsdb/api/mongo/responders/ping.py +13 -0
- mindsdb/api/mongo/responders/recv_chunk_start.py +13 -0
- mindsdb/api/mongo/responders/replsetgetstatus.py +13 -0
- mindsdb/api/mongo/responders/sasl_continue.py +34 -0
- mindsdb/api/mongo/responders/sasl_start.py +33 -0
- mindsdb/api/mongo/responders/update_range_deletions.py +12 -0
- mindsdb/api/mongo/responders/whatsmyuri.py +18 -0
- mindsdb/api/mongo/server.py +388 -0
- mindsdb/api/mongo/start.py +15 -0
- mindsdb/api/mongo/utilities/mongodb_ast.py +257 -0
- mindsdb/api/mongo/utilities/mongodb_parser.py +145 -0
- mindsdb/api/mongo/utilities/mongodb_query.py +84 -0
- mindsdb/api/mysql/mysql_proxy/classes/client_capabilities.py +130 -0
- mindsdb/api/mysql/mysql_proxy/classes/fake_mysql_proxy/__init__.py +3 -0
- mindsdb/api/mysql/mysql_proxy/classes/fake_mysql_proxy/fake_mysql_proxy.py +37 -0
- mindsdb/api/mysql/mysql_proxy/classes/server_capabilities.py +22 -0
- mindsdb/api/mysql/mysql_proxy/classes/sql_statement_parser.py +151 -0
- mindsdb/api/mysql/mysql_proxy/data_types/__init__.py +0 -0
- mindsdb/api/mysql/mysql_proxy/data_types/mysql_datum.py +212 -0
- mindsdb/api/mysql/mysql_proxy/data_types/mysql_packet.py +166 -0
- mindsdb/api/mysql/mysql_proxy/data_types/mysql_packets/__init__.py +15 -0
- mindsdb/api/mysql/mysql_proxy/data_types/mysql_packets/binary_resultset_row_package.py +140 -0
- mindsdb/api/mysql/mysql_proxy/data_types/mysql_packets/column_count_packet.py +44 -0
- mindsdb/api/mysql/mysql_proxy/data_types/mysql_packets/column_definition_packet.py +94 -0
- mindsdb/api/mysql/mysql_proxy/data_types/mysql_packets/command_packet.py +159 -0
- mindsdb/api/mysql/mysql_proxy/data_types/mysql_packets/eof_packet.py +52 -0
- mindsdb/api/mysql/mysql_proxy/data_types/mysql_packets/err_packet.py +58 -0
- mindsdb/api/mysql/mysql_proxy/data_types/mysql_packets/fast_auth_fail_packet.py +20 -0
- mindsdb/api/mysql/mysql_proxy/data_types/mysql_packets/handshake_packet.py +80 -0
- mindsdb/api/mysql/mysql_proxy/data_types/mysql_packets/handshake_response_packet.py +96 -0
- mindsdb/api/mysql/mysql_proxy/data_types/mysql_packets/ok_packet.py +106 -0
- mindsdb/api/mysql/mysql_proxy/data_types/mysql_packets/password_answer.py +13 -0
- mindsdb/api/mysql/mysql_proxy/data_types/mysql_packets/resultset_row_package.py +54 -0
- mindsdb/api/mysql/mysql_proxy/data_types/mysql_packets/stmt_prepare_header.py +46 -0
- mindsdb/api/mysql/mysql_proxy/data_types/mysql_packets/switch_auth_packet.py +53 -0
- mindsdb/api/mysql/mysql_proxy/data_types/mysql_packets/switch_auth_response_packet.py +16 -0
- mindsdb/api/mysql/mysql_proxy/executor/__init__.py +2 -0
- mindsdb/api/mysql/mysql_proxy/executor/mysql_executor.py +138 -0
- mindsdb/api/mysql/mysql_proxy/external_libs/__init__.py +0 -0
- mindsdb/api/mysql/mysql_proxy/external_libs/mysql_scramble.py +135 -0
- mindsdb/api/mysql/mysql_proxy/libs/__init__.py +1 -0
- mindsdb/api/mysql/mysql_proxy/libs/constants/__init__.py +1 -0
- mindsdb/api/mysql/mysql_proxy/libs/constants/mysql.py +1030 -0
- mindsdb/api/mysql/mysql_proxy/mysql_proxy.py +930 -0
- mindsdb/api/mysql/mysql_proxy/utilities/__init__.py +1 -0
- mindsdb/api/mysql/mysql_proxy/utilities/exceptions.py +18 -0
- mindsdb/api/mysql/mysql_proxy/utilities/lightwood_dtype.py +48 -0
- mindsdb/api/mysql/start.py +13 -0
- mindsdb/api/postgres/__init__.py +0 -0
- mindsdb/api/postgres/postgres_proxy/__init__.py +0 -0
- mindsdb/api/postgres/postgres_proxy/executor/__init__.py +1 -0
- mindsdb/api/postgres/postgres_proxy/executor/executor.py +188 -0
- mindsdb/api/postgres/postgres_proxy/postgres_packets/__init__.py +0 -0
- mindsdb/api/postgres/postgres_proxy/postgres_packets/errors.py +322 -0
- mindsdb/api/postgres/postgres_proxy/postgres_packets/postgres_fields.py +34 -0
- mindsdb/api/postgres/postgres_proxy/postgres_packets/postgres_message.py +31 -0
- mindsdb/api/postgres/postgres_proxy/postgres_packets/postgres_message_formats.py +1265 -0
- mindsdb/api/postgres/postgres_proxy/postgres_packets/postgres_message_identifiers.py +31 -0
- mindsdb/api/postgres/postgres_proxy/postgres_packets/postgres_packets.py +253 -0
- mindsdb/api/postgres/postgres_proxy/postgres_proxy.py +479 -0
- mindsdb/api/postgres/postgres_proxy/utilities/__init__.py +10 -0
- mindsdb/api/postgres/start.py +11 -0
- mindsdb/integrations/__init__.py +0 -0
- mindsdb/integrations/handlers/__init__.py +0 -0
- mindsdb/integrations/handlers/access_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/access_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/access_handler/access_handler.py +197 -0
- mindsdb/integrations/handlers/access_handler/connection_args.py +15 -0
- mindsdb/integrations/handlers/access_handler/icon.svg +19 -0
- mindsdb/integrations/handlers/access_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/access_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/access_handler/tests/test_access_handler.py +32 -0
- mindsdb/integrations/handlers/aerospike_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/aerospike_handler/__init__.py +30 -0
- mindsdb/integrations/handlers/aerospike_handler/aerospike_handler.py +236 -0
- mindsdb/integrations/handlers/aerospike_handler/connection_args.py +46 -0
- mindsdb/integrations/handlers/aerospike_handler/icon.svg +11 -0
- mindsdb/integrations/handlers/aerospike_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/aerospike_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/aerospike_handler/tests/test_aerospike_handler.py +36 -0
- mindsdb/integrations/handlers/airtable_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/airtable_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/airtable_handler/airtable_handler.py +211 -0
- mindsdb/integrations/handlers/airtable_handler/connection_args.py +26 -0
- mindsdb/integrations/handlers/airtable_handler/icon.svg +11 -0
- mindsdb/integrations/handlers/airtable_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/airtable_handler/tests/test_airtable_handler.py +34 -0
- mindsdb/integrations/handlers/altibase_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/altibase_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/altibase_handler/altibase_handler.py +253 -0
- mindsdb/integrations/handlers/altibase_handler/connection_args.py +50 -0
- mindsdb/integrations/handlers/altibase_handler/icon.svg +3 -0
- mindsdb/integrations/handlers/altibase_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/altibase_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/altibase_handler/tests/test_altibase_handler.py +67 -0
- mindsdb/integrations/handlers/altibase_handler/tests/test_altibase_handler_dsn.py +68 -0
- mindsdb/integrations/handlers/anomaly_detection_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/anomaly_detection_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/anomaly_detection_handler/anomaly_detection_handler.py +180 -0
- mindsdb/integrations/handlers/anomaly_detection_handler/icon.svg +13 -0
- mindsdb/integrations/handlers/anomaly_detection_handler/requirements.txt +4 -0
- mindsdb/integrations/handlers/anomaly_detection_handler/utils.py +21 -0
- mindsdb/integrations/handlers/anthropic_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/anthropic_handler/__init__.py +22 -0
- mindsdb/integrations/handlers/anthropic_handler/anthropic_handler.py +108 -0
- mindsdb/integrations/handlers/anthropic_handler/icon.svg +3 -0
- mindsdb/integrations/handlers/anthropic_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/anyscale_endpoints_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/anyscale_endpoints_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/anyscale_endpoints_handler/anyscale_endpoints_handler.py +290 -0
- mindsdb/integrations/handlers/anyscale_endpoints_handler/creation_args.py +14 -0
- mindsdb/integrations/handlers/anyscale_endpoints_handler/icon.svg +4 -0
- mindsdb/integrations/handlers/anyscale_endpoints_handler/requirements.txt +3 -0
- mindsdb/integrations/handlers/anyscale_endpoints_handler/settings.py +51 -0
- mindsdb/integrations/handlers/anyscale_endpoints_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/anyscale_endpoints_handler/tests/test_anyscale_endpoints_handler.py +212 -0
- mindsdb/integrations/handlers/apache_doris_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/apache_doris_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/apache_doris_handler/apache_doris_handler.py +10 -0
- mindsdb/integrations/handlers/apache_doris_handler/icon.svg +5 -0
- mindsdb/integrations/handlers/apache_doris_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/aqicn_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/aqicn_handler/__init__.py +28 -0
- mindsdb/integrations/handlers/aqicn_handler/aqicn.py +35 -0
- mindsdb/integrations/handlers/aqicn_handler/aqicn_handler.py +97 -0
- mindsdb/integrations/handlers/aqicn_handler/aqicn_tables.py +425 -0
- mindsdb/integrations/handlers/aqicn_handler/connection_args.py +18 -0
- mindsdb/integrations/handlers/aqicn_handler/icon.png +0 -0
- mindsdb/integrations/handlers/aqicn_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/athena_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/athena_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/athena_handler/athena_handler.py +218 -0
- mindsdb/integrations/handlers/athena_handler/connection_args.py +51 -0
- mindsdb/integrations/handlers/athena_handler/icon.svg +22 -0
- mindsdb/integrations/handlers/athena_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/athena_handler/tests/test_athena_handler.py +85 -0
- mindsdb/integrations/handlers/aurora_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/aurora_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/aurora_handler/aurora_handler.py +140 -0
- mindsdb/integrations/handlers/aurora_handler/connection_args.py +50 -0
- mindsdb/integrations/handlers/aurora_handler/icon.svg +7 -0
- mindsdb/integrations/handlers/aurora_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/aurora_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/aurora_handler/tests/test_aurora_mysql_handler.py +37 -0
- mindsdb/integrations/handlers/aurora_handler/tests/test_aurora_postgres_handler.py +37 -0
- mindsdb/integrations/handlers/autogluon_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/autogluon_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/autogluon_handler/autogluon_handler.py +57 -0
- mindsdb/integrations/handlers/autogluon_handler/config.py +17 -0
- mindsdb/integrations/handlers/autogluon_handler/icon.svg +3 -0
- mindsdb/integrations/handlers/autogluon_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/autokeras_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/autokeras_handler/__init__.py +22 -0
- mindsdb/integrations/handlers/autokeras_handler/autokeras_handler.py +139 -0
- mindsdb/integrations/handlers/autokeras_handler/icon.svg +9 -0
- mindsdb/integrations/handlers/autokeras_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/autosklearn_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/autosklearn_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/autosklearn_handler/autosklearn_handler.py +53 -0
- mindsdb/integrations/handlers/autosklearn_handler/config.py +29 -0
- mindsdb/integrations/handlers/autosklearn_handler/icon.png +0 -0
- mindsdb/integrations/handlers/autosklearn_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/azure_blob_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/azure_blob_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/azure_blob_handler/azure_blob_handler.py +346 -0
- mindsdb/integrations/handlers/azure_blob_handler/connection_args.py +25 -0
- mindsdb/integrations/handlers/azure_blob_handler/icon.svg +30 -0
- mindsdb/integrations/handlers/azure_blob_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/bedrock_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/bedrock_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/bedrock_handler/bedrock_handler.py +328 -0
- mindsdb/integrations/handlers/bedrock_handler/icon.svg +9 -0
- mindsdb/integrations/handlers/bedrock_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/bedrock_handler/settings.py +287 -0
- mindsdb/integrations/handlers/bedrock_handler/utilities.py +46 -0
- mindsdb/integrations/handlers/bigquery_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/bigquery_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/bigquery_handler/bigquery_handler.py +181 -0
- mindsdb/integrations/handlers/bigquery_handler/connection_args.py +30 -0
- mindsdb/integrations/handlers/bigquery_handler/icon.svg +5 -0
- mindsdb/integrations/handlers/bigquery_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/bigquery_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/bigquery_handler/tests/test_bigquery_handler.py +221 -0
- mindsdb/integrations/handlers/binance_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/binance_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/binance_handler/binance_handler.py +144 -0
- mindsdb/integrations/handlers/binance_handler/binance_tables.py +175 -0
- mindsdb/integrations/handlers/binance_handler/icon.svg +14 -0
- mindsdb/integrations/handlers/binance_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/box_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/box_handler/__init__.py +30 -0
- mindsdb/integrations/handlers/box_handler/box_handler.py +257 -0
- mindsdb/integrations/handlers/box_handler/connection_args.py +17 -0
- mindsdb/integrations/handlers/box_handler/icon.svg +1 -0
- mindsdb/integrations/handlers/box_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/byom_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/byom_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/byom_handler/byom_handler.py +678 -0
- mindsdb/integrations/handlers/byom_handler/connection_args.py +19 -0
- mindsdb/integrations/handlers/byom_handler/icon.svg +13 -0
- mindsdb/integrations/handlers/byom_handler/proc_wrapper.py +229 -0
- mindsdb/integrations/handlers/byom_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/cassandra_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/cassandra_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/cassandra_handler/cassandra_handler.py +27 -0
- mindsdb/integrations/handlers/cassandra_handler/connection_args.py +50 -0
- mindsdb/integrations/handlers/cassandra_handler/icon.svg +33 -0
- mindsdb/integrations/handlers/cassandra_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/cassandra_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/cassandra_handler/tests/test_cassandra_handler.py +39 -0
- mindsdb/integrations/handlers/chromadb_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/chromadb_handler/__init__.py +29 -0
- mindsdb/integrations/handlers/chromadb_handler/chromadb_handler.py +491 -0
- mindsdb/integrations/handlers/chromadb_handler/connection_args.py +28 -0
- mindsdb/integrations/handlers/chromadb_handler/icon.png +0 -0
- mindsdb/integrations/handlers/chromadb_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/chromadb_handler/settings.py +62 -0
- mindsdb/integrations/handlers/chromadb_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/ckan_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/ckan_handler/__init__.py +28 -0
- mindsdb/integrations/handlers/ckan_handler/ckan_handler.py +310 -0
- mindsdb/integrations/handlers/ckan_handler/connection_args.py +22 -0
- mindsdb/integrations/handlers/ckan_handler/icon.png +0 -0
- mindsdb/integrations/handlers/ckan_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/ckan_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/ckan_handler/tests/test_ckan_handler.py +156 -0
- mindsdb/integrations/handlers/clickhouse_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/clickhouse_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/clickhouse_handler/clickhouse_handler.py +168 -0
- mindsdb/integrations/handlers/clickhouse_handler/connection_args.py +53 -0
- mindsdb/integrations/handlers/clickhouse_handler/icon.svg +4 -0
- mindsdb/integrations/handlers/clickhouse_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/clickhouse_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/clickhouse_handler/tests/test_clickhouse_handler.py +41 -0
- mindsdb/integrations/handlers/clipdrop_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/clipdrop_handler/__init__.py +22 -0
- mindsdb/integrations/handlers/clipdrop_handler/clipdrop.py +87 -0
- mindsdb/integrations/handlers/clipdrop_handler/clipdrop_handler.py +193 -0
- mindsdb/integrations/handlers/clipdrop_handler/icon.svg +6 -0
- mindsdb/integrations/handlers/cloud_spanner_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/cloud_spanner_handler/__init__.py +27 -0
- mindsdb/integrations/handlers/cloud_spanner_handler/cloud_spanner_handler.py +219 -0
- mindsdb/integrations/handlers/cloud_spanner_handler/connection_args.py +33 -0
- mindsdb/integrations/handlers/cloud_spanner_handler/icon.png +0 -0
- mindsdb/integrations/handlers/cloud_spanner_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/cloud_spanner_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/cloud_spanner_handler/tests/test_cloud_spanner_handler.py +50 -0
- mindsdb/integrations/handlers/cloud_sql_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/cloud_sql_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/cloud_sql_handler/cloud_sql_handler.py +123 -0
- mindsdb/integrations/handlers/cloud_sql_handler/connection_args.py +41 -0
- mindsdb/integrations/handlers/cloud_sql_handler/icon.png +0 -0
- mindsdb/integrations/handlers/cloud_sql_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/cloud_sql_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/cloud_sql_handler/tests/test_cloud_sql_mssql_handler.py +37 -0
- mindsdb/integrations/handlers/cloud_sql_handler/tests/test_cloud_sql_mysql_handler.py +37 -0
- mindsdb/integrations/handlers/cockroach_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/cockroach_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/cockroach_handler/cockroach_handler.py +11 -0
- mindsdb/integrations/handlers/cockroach_handler/icon.svg +11 -0
- mindsdb/integrations/handlers/cockroach_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/cockroach_handler/tests/test_cockroachdb_handler.py +34 -0
- mindsdb/integrations/handlers/cohere_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/cohere_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/cohere_handler/cohere_handler.py +88 -0
- mindsdb/integrations/handlers/cohere_handler/icon.svg +12 -0
- mindsdb/integrations/handlers/cohere_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/coinbase_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/coinbase_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/coinbase_handler/coinbase_handler.py +138 -0
- mindsdb/integrations/handlers/coinbase_handler/coinbase_tables.py +56 -0
- mindsdb/integrations/handlers/coinbase_handler/connection_args.py +34 -0
- mindsdb/integrations/handlers/coinbase_handler/icon.svg +3 -0
- mindsdb/integrations/handlers/coinbase_handler/requirements.txt +0 -0
- mindsdb/integrations/handlers/confluence_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/confluence_handler/__init__.py +29 -0
- mindsdb/integrations/handlers/confluence_handler/confluence_handler.py +102 -0
- mindsdb/integrations/handlers/confluence_handler/confluence_table.py +193 -0
- mindsdb/integrations/handlers/confluence_handler/connection_args.py +32 -0
- mindsdb/integrations/handlers/confluence_handler/icon.svg +14 -0
- mindsdb/integrations/handlers/confluence_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/confluence_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/confluence_handler/tests/test_confluence_handler.py +68 -0
- mindsdb/integrations/handlers/couchbase_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/couchbase_handler/__init__.py +30 -0
- mindsdb/integrations/handlers/couchbase_handler/connection_args.py +31 -0
- mindsdb/integrations/handlers/couchbase_handler/couchbase_handler.py +208 -0
- mindsdb/integrations/handlers/couchbase_handler/icon.svg +3 -0
- mindsdb/integrations/handlers/couchbase_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/couchbase_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/couchbase_handler/tests/test_couchbase_handler.py +39 -0
- mindsdb/integrations/handlers/couchbasevector_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/couchbasevector_handler/__init__.py +30 -0
- mindsdb/integrations/handlers/couchbasevector_handler/connection_args.py +31 -0
- mindsdb/integrations/handlers/couchbasevector_handler/couchbasevector_handler.py +472 -0
- mindsdb/integrations/handlers/couchbasevector_handler/icon.svg +3 -0
- mindsdb/integrations/handlers/couchbasevector_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/couchbasevector_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/crate_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/crate_handler/__init__.py +27 -0
- mindsdb/integrations/handlers/crate_handler/crate_handler.py +226 -0
- mindsdb/integrations/handlers/crate_handler/icon.svg +14 -0
- mindsdb/integrations/handlers/crate_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/crate_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/crate_handler/tests/test_crate_handler.py +46 -0
- mindsdb/integrations/handlers/d0lt_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/d0lt_handler/__init__.py +29 -0
- mindsdb/integrations/handlers/d0lt_handler/d0lt_handler.py +12 -0
- mindsdb/integrations/handlers/d0lt_handler/icon.svg +6 -0
- mindsdb/integrations/handlers/d0lt_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/d0lt_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/d0lt_handler/tests/test_d0lt_handler.py +53 -0
- mindsdb/integrations/handlers/databend_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/databend_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/databend_handler/connection_args.py +36 -0
- mindsdb/integrations/handlers/databend_handler/databend_handler.py +199 -0
- mindsdb/integrations/handlers/databend_handler/icon.svg +9 -0
- mindsdb/integrations/handlers/databend_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/databend_handler/tests/__init__.py +1 -0
- mindsdb/integrations/handlers/databend_handler/tests/test_databend_handler.py +37 -0
- mindsdb/integrations/handlers/databricks_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/databricks_handler/__init__.py +29 -0
- mindsdb/integrations/handlers/databricks_handler/connection_args.py +58 -0
- mindsdb/integrations/handlers/databricks_handler/databricks_handler.py +261 -0
- mindsdb/integrations/handlers/databricks_handler/icon.svg +3 -0
- mindsdb/integrations/handlers/databricks_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/databricks_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/databricks_handler/tests/test_databricks_handler.py +37 -0
- mindsdb/integrations/handlers/datastax_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/datastax_handler/__init__.py +27 -0
- mindsdb/integrations/handlers/datastax_handler/datastax_handler.py +12 -0
- mindsdb/integrations/handlers/datastax_handler/icon.svg +4 -0
- mindsdb/integrations/handlers/datastax_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/datastax_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/datastax_handler/tests/test_cassandra_handler.py +38 -0
- mindsdb/integrations/handlers/db2_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/db2_handler/__init__.py +29 -0
- mindsdb/integrations/handlers/db2_handler/connection_args.py +53 -0
- mindsdb/integrations/handlers/db2_handler/db2_handler.py +235 -0
- mindsdb/integrations/handlers/db2_handler/icon.svg +49 -0
- mindsdb/integrations/handlers/db2_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/db2_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/db2_handler/tests/test_db2_handler.py +46 -0
- mindsdb/integrations/handlers/derby_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/derby_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/derby_handler/connection_args.py +50 -0
- mindsdb/integrations/handlers/derby_handler/derby_handler.py +203 -0
- mindsdb/integrations/handlers/derby_handler/icon.svg +21 -0
- mindsdb/integrations/handlers/derby_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/derby_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/derby_handler/tests/test_derby_handler.py +46 -0
- mindsdb/integrations/handlers/discord_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/discord_handler/__init__.py +27 -0
- mindsdb/integrations/handlers/discord_handler/discord_handler.py +187 -0
- mindsdb/integrations/handlers/discord_handler/discord_tables.py +189 -0
- mindsdb/integrations/handlers/discord_handler/icon.svg +3 -0
- mindsdb/integrations/handlers/discord_handler/requirements.txt +0 -0
- mindsdb/integrations/handlers/discord_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/discord_handler/tests/test_discord.py +59 -0
- mindsdb/integrations/handlers/dockerhub_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/dockerhub_handler/__init__.py +28 -0
- mindsdb/integrations/handlers/dockerhub_handler/connection_args.py +25 -0
- mindsdb/integrations/handlers/dockerhub_handler/dockerhub.py +55 -0
- mindsdb/integrations/handlers/dockerhub_handler/dockerhub_handler.py +112 -0
- mindsdb/integrations/handlers/dockerhub_handler/dockerhub_tables.py +509 -0
- mindsdb/integrations/handlers/dockerhub_handler/icon.svg +12 -0
- mindsdb/integrations/handlers/documentdb_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/documentdb_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/documentdb_handler/connection_args.py +53 -0
- mindsdb/integrations/handlers/documentdb_handler/documentdb_handler.py +41 -0
- mindsdb/integrations/handlers/documentdb_handler/icon.svg +15 -0
- mindsdb/integrations/handlers/dremio_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/dremio_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/dremio_handler/connection_args.py +31 -0
- mindsdb/integrations/handlers/dremio_handler/dremio_handler.py +222 -0
- mindsdb/integrations/handlers/dremio_handler/icon.svg +16 -0
- mindsdb/integrations/handlers/dremio_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/dremio_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/dremio_handler/tests/test_dremio_handler.py +35 -0
- mindsdb/integrations/handlers/dropbox_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/dropbox_handler/__init__.py +30 -0
- mindsdb/integrations/handlers/dropbox_handler/connection_args.py +17 -0
- mindsdb/integrations/handlers/dropbox_handler/dropbox_handler.py +253 -0
- mindsdb/integrations/handlers/dropbox_handler/icon.svg +4 -0
- mindsdb/integrations/handlers/dropbox_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/dropbox_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/dropbox_handler/tests/test_dropbox_handler.py +18 -0
- mindsdb/integrations/handlers/druid_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/druid_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/druid_handler/connection_args.py +51 -0
- mindsdb/integrations/handlers/druid_handler/druid_handler.py +216 -0
- mindsdb/integrations/handlers/druid_handler/icon.svg +6 -0
- mindsdb/integrations/handlers/druid_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/druid_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/druid_handler/tests/test_druid_handler.py +35 -0
- mindsdb/integrations/handlers/dspy_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/dspy_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/dspy_handler/dspy_handler.py +250 -0
- mindsdb/integrations/handlers/dspy_handler/icon.svg +14 -0
- mindsdb/integrations/handlers/dspy_handler/requirements.txt +8 -0
- mindsdb/integrations/handlers/duckdb_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/duckdb_handler/__init__.py +28 -0
- mindsdb/integrations/handlers/duckdb_handler/connection_args.py +17 -0
- mindsdb/integrations/handlers/duckdb_handler/duckdb_handler.py +170 -0
- mindsdb/integrations/handlers/duckdb_handler/icon.svg +10 -0
- mindsdb/integrations/handlers/duckdb_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/duckdb_handler/tests/test_duckdb_handler.py +48 -0
- mindsdb/integrations/handlers/dummy_data_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/dummy_data_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/dummy_data_handler/dummy_data_handler.py +97 -0
- mindsdb/integrations/handlers/dummy_data_handler/icon.svg +3 -0
- mindsdb/integrations/handlers/dynamodb_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/dynamodb_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/dynamodb_handler/connection_args.py +39 -0
- mindsdb/integrations/handlers/dynamodb_handler/dynamodb_handler.py +293 -0
- mindsdb/integrations/handlers/dynamodb_handler/icon.svg +17 -0
- mindsdb/integrations/handlers/dynamodb_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/dynamodb_handler/tests/test_dynamodb_handler.py +34 -0
- mindsdb/integrations/handlers/edgelessdb_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/edgelessdb_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/edgelessdb_handler/connection_args.py +45 -0
- mindsdb/integrations/handlers/edgelessdb_handler/edgelessdb_handler.py +12 -0
- mindsdb/integrations/handlers/edgelessdb_handler/icon.svg +13 -0
- mindsdb/integrations/handlers/edgelessdb_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/edgelessdb_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/edgelessdb_handler/tests/test_edgelessdb_handler.py +66 -0
- mindsdb/integrations/handlers/elasticsearch_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/elasticsearch_handler/__init__.py +30 -0
- mindsdb/integrations/handlers/elasticsearch_handler/connection_args.py +38 -0
- mindsdb/integrations/handlers/elasticsearch_handler/elasticsearch_handler.py +288 -0
- mindsdb/integrations/handlers/elasticsearch_handler/icon.svg +16 -0
- mindsdb/integrations/handlers/elasticsearch_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/elasticsearch_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/elasticsearch_handler/tests/test_elasticsearch_handler.py +32 -0
- mindsdb/integrations/handlers/email_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/email_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/email_handler/email_client.py +165 -0
- mindsdb/integrations/handlers/email_handler/email_handler.py +99 -0
- mindsdb/integrations/handlers/email_handler/email_ingestor.py +86 -0
- mindsdb/integrations/handlers/email_handler/email_tables.py +159 -0
- mindsdb/integrations/handlers/email_handler/icon.png +0 -0
- mindsdb/integrations/handlers/email_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/email_handler/settings.py +60 -0
- mindsdb/integrations/handlers/empress_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/empress_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/empress_handler/connection_args.py +42 -0
- mindsdb/integrations/handlers/empress_handler/empress_handler.py +211 -0
- mindsdb/integrations/handlers/empress_handler/icon.png +0 -0
- mindsdb/integrations/handlers/empress_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/empress_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/empress_handler/tests/test_empress_handler.py +55 -0
- mindsdb/integrations/handlers/eventbrite_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/eventbrite_handler/__init__.py +27 -0
- mindsdb/integrations/handlers/eventbrite_handler/eventbrite_handler.py +94 -0
- mindsdb/integrations/handlers/eventbrite_handler/eventbrite_tables.py +612 -0
- mindsdb/integrations/handlers/eventbrite_handler/icon.png +0 -0
- mindsdb/integrations/handlers/eventbrite_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/eventstoredb_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/eventstoredb_handler/__init__.py +27 -0
- mindsdb/integrations/handlers/eventstoredb_handler/eventstoredb_handler.py +216 -0
- mindsdb/integrations/handlers/eventstoredb_handler/icon.svg +10 -0
- mindsdb/integrations/handlers/faunadb_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/faunadb_handler/__init__.py +30 -0
- mindsdb/integrations/handlers/faunadb_handler/connection_args.py +39 -0
- mindsdb/integrations/handlers/faunadb_handler/faunadb_handler.py +267 -0
- mindsdb/integrations/handlers/faunadb_handler/icon.svg +3 -0
- mindsdb/integrations/handlers/faunadb_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/faunadb_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/faunadb_handler/tests/test_faunadb_handler.py +41 -0
- mindsdb/integrations/handlers/file_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/file_handler/__init__.py +16 -0
- mindsdb/integrations/handlers/file_handler/file_handler.py +528 -0
- mindsdb/integrations/handlers/file_handler/icon.svg +8 -0
- mindsdb/integrations/handlers/file_handler/requirements.txt +4 -0
- mindsdb/integrations/handlers/file_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/file_handler/tests/data/test.txt +10 -0
- mindsdb/integrations/handlers/file_handler/tests/test_file_handler.py +458 -0
- mindsdb/integrations/handlers/financial_modeling_prep_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/financial_modeling_prep_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/financial_modeling_prep_handler/financial_modeling_handler.py +56 -0
- mindsdb/integrations/handlers/financial_modeling_prep_handler/financial_modeling_tables.py +89 -0
- mindsdb/integrations/handlers/financial_modeling_prep_handler/icon.svg +67 -0
- mindsdb/integrations/handlers/firebird_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/firebird_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/firebird_handler/connection_args.py +34 -0
- mindsdb/integrations/handlers/firebird_handler/firebird_handler.py +240 -0
- mindsdb/integrations/handlers/firebird_handler/icon.svg +16 -0
- mindsdb/integrations/handlers/firebird_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/firebird_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/firebird_handler/tests/test_firebird_handler.py +37 -0
- mindsdb/integrations/handlers/flaml_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/flaml_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/flaml_handler/flaml_handler.py +47 -0
- mindsdb/integrations/handlers/flaml_handler/icon.svg +5 -0
- mindsdb/integrations/handlers/flaml_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/frappe_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/frappe_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/frappe_handler/frappe_client.py +111 -0
- mindsdb/integrations/handlers/frappe_handler/frappe_handler.py +209 -0
- mindsdb/integrations/handlers/frappe_handler/frappe_tables.py +82 -0
- mindsdb/integrations/handlers/frappe_handler/icon.svg +11 -0
- mindsdb/integrations/handlers/frappe_handler/requirements.txt +0 -0
- mindsdb/integrations/handlers/gcs_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/gcs_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/gcs_handler/connection_args.py +29 -0
- mindsdb/integrations/handlers/gcs_handler/gcs_handler.py +375 -0
- mindsdb/integrations/handlers/gcs_handler/gcs_tables.py +50 -0
- mindsdb/integrations/handlers/gcs_handler/icon.svg +1 -0
- mindsdb/integrations/handlers/gcs_handler/requirements.txt +4 -0
- mindsdb/integrations/handlers/github_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/github_handler/__init__.py +28 -0
- mindsdb/integrations/handlers/github_handler/connection_args.py +32 -0
- mindsdb/integrations/handlers/github_handler/github_handler.py +124 -0
- mindsdb/integrations/handlers/github_handler/github_tables.py +965 -0
- mindsdb/integrations/handlers/github_handler/icon.svg +10 -0
- mindsdb/integrations/handlers/github_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/gitlab_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/gitlab_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/gitlab_handler/gitlab_handler.py +84 -0
- mindsdb/integrations/handlers/gitlab_handler/gitlab_tables.py +393 -0
- mindsdb/integrations/handlers/gitlab_handler/icon.svg +6 -0
- mindsdb/integrations/handlers/gitlab_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/gmail_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/gmail_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/gmail_handler/connection_args.py +27 -0
- mindsdb/integrations/handlers/gmail_handler/gmail_handler.py +566 -0
- mindsdb/integrations/handlers/gmail_handler/icon.svg +14 -0
- mindsdb/integrations/handlers/gmail_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/gmail_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/gmail_handler/tests/test_gmail_handler.py +50 -0
- mindsdb/integrations/handlers/gmail_handler/utils.py +45 -0
- mindsdb/integrations/handlers/google_analytics_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/google_analytics_handler/__init__.py +18 -0
- mindsdb/integrations/handlers/google_analytics_handler/google_analytics_handler.py +129 -0
- mindsdb/integrations/handlers/google_analytics_handler/google_analytics_tables.py +283 -0
- mindsdb/integrations/handlers/google_analytics_handler/icon.svg +4 -0
- mindsdb/integrations/handlers/google_analytics_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/google_analytics_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/google_analytics_handler/tests/test_google_analytics_handler.py +48 -0
- mindsdb/integrations/handlers/google_books_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/google_books_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/google_books_handler/google_books_handler.py +184 -0
- mindsdb/integrations/handlers/google_books_handler/google_books_tables.py +185 -0
- mindsdb/integrations/handlers/google_books_handler/icon.svg +5 -0
- mindsdb/integrations/handlers/google_books_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/google_books_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/google_books_handler/tests/test_google_books_handler.py +41 -0
- mindsdb/integrations/handlers/google_calendar_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/google_calendar_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/google_calendar_handler/connection_args.py +12 -0
- mindsdb/integrations/handlers/google_calendar_handler/google_calendar_handler.py +292 -0
- mindsdb/integrations/handlers/google_calendar_handler/google_calendar_tables.py +228 -0
- mindsdb/integrations/handlers/google_calendar_handler/icon.svg +10 -0
- mindsdb/integrations/handlers/google_calendar_handler/requirements.txt +3 -0
- mindsdb/integrations/handlers/google_calendar_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/google_calendar_handler/tests/test_google_calendar_handler.py +56 -0
- mindsdb/integrations/handlers/google_content_shopping_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/google_content_shopping_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/google_content_shopping_handler/connection_args.py +20 -0
- mindsdb/integrations/handlers/google_content_shopping_handler/google_content_shopping_handler.py +396 -0
- mindsdb/integrations/handlers/google_content_shopping_handler/google_content_shopping_tables.py +435 -0
- mindsdb/integrations/handlers/google_content_shopping_handler/icon.svg +15 -0
- mindsdb/integrations/handlers/google_content_shopping_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/google_content_shopping_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/google_content_shopping_handler/tests/test_google_content_shopping_handler.py +64 -0
- mindsdb/integrations/handlers/google_fit_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/google_fit_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/google_fit_handler/google_fit_handler.py +155 -0
- mindsdb/integrations/handlers/google_fit_handler/google_fit_tables.py +69 -0
- mindsdb/integrations/handlers/google_fit_handler/icon.svg +13 -0
- mindsdb/integrations/handlers/google_fit_handler/requirements.txt +4 -0
- mindsdb/integrations/handlers/google_gemini_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/google_gemini_handler/__init__.py +30 -0
- mindsdb/integrations/handlers/google_gemini_handler/google_gemini_handler.py +370 -0
- mindsdb/integrations/handlers/google_gemini_handler/icon.svg +3 -0
- mindsdb/integrations/handlers/google_gemini_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/google_search_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/google_search_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/google_search_handler/connection_args.py +15 -0
- mindsdb/integrations/handlers/google_search_handler/google_search_handler.py +205 -0
- mindsdb/integrations/handlers/google_search_handler/google_search_tables.py +220 -0
- mindsdb/integrations/handlers/google_search_handler/icon.svg +19 -0
- mindsdb/integrations/handlers/google_search_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/google_search_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/google_search_handler/tests/test_google_search_handler.py +55 -0
- mindsdb/integrations/handlers/greptimedb_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/greptimedb_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/greptimedb_handler/greptimedb_handler.py +21 -0
- mindsdb/integrations/handlers/greptimedb_handler/icon.svg +3 -0
- mindsdb/integrations/handlers/greptimedb_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/groq_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/groq_handler/__init__.py +23 -0
- mindsdb/integrations/handlers/groq_handler/groq_handler.py +136 -0
- mindsdb/integrations/handlers/groq_handler/icon.svg +30 -0
- mindsdb/integrations/handlers/groq_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/groq_handler/settings.py +31 -0
- mindsdb/integrations/handlers/hackernews_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/hackernews_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/hackernews_handler/hn_handler.py +102 -0
- mindsdb/integrations/handlers/hackernews_handler/hn_table.py +152 -0
- mindsdb/integrations/handlers/hackernews_handler/icon.svg +11 -0
- mindsdb/integrations/handlers/hana_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/hana_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/hana_handler/connection_args.py +57 -0
- mindsdb/integrations/handlers/hana_handler/hana_handler.py +259 -0
- mindsdb/integrations/handlers/hana_handler/icon.svg +13 -0
- mindsdb/integrations/handlers/hana_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/hive_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/hive_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/hive_handler/connection_args.py +53 -0
- mindsdb/integrations/handlers/hive_handler/hive_handler.py +224 -0
- mindsdb/integrations/handlers/hive_handler/icon.svg +41 -0
- mindsdb/integrations/handlers/hive_handler/requirements.txt +3 -0
- mindsdb/integrations/handlers/hive_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/hive_handler/tests/test_hive_handler.py +50 -0
- mindsdb/integrations/handlers/hsqldb_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/hsqldb_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/hsqldb_handler/connection_args.py +39 -0
- mindsdb/integrations/handlers/hsqldb_handler/hsqldb_handler.py +197 -0
- mindsdb/integrations/handlers/hsqldb_handler/icon.png +0 -0
- mindsdb/integrations/handlers/hsqldb_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/hubspot_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/hubspot_handler/__init__.py +27 -0
- mindsdb/integrations/handlers/hubspot_handler/hubspot_handler.py +96 -0
- mindsdb/integrations/handlers/hubspot_handler/hubspot_tables.py +589 -0
- mindsdb/integrations/handlers/hubspot_handler/icon.svg +3 -0
- mindsdb/integrations/handlers/hubspot_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/huggingface_api_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/huggingface_api_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/huggingface_api_handler/exceptions.py +6 -0
- mindsdb/integrations/handlers/huggingface_api_handler/huggingface_api_handler.py +250 -0
- mindsdb/integrations/handlers/huggingface_api_handler/icon.svg +24 -0
- mindsdb/integrations/handlers/huggingface_api_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/huggingface_api_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/huggingface_api_handler/tests/test_huggingface_api_handler.py +9 -0
- mindsdb/integrations/handlers/huggingface_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/huggingface_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/huggingface_handler/finetune.py +223 -0
- mindsdb/integrations/handlers/huggingface_handler/huggingface_handler.py +383 -0
- mindsdb/integrations/handlers/huggingface_handler/icon.svg +24 -0
- mindsdb/integrations/handlers/huggingface_handler/requirements.txt +5 -0
- mindsdb/integrations/handlers/huggingface_handler/requirements_cpu.txt +6 -0
- mindsdb/integrations/handlers/huggingface_handler/settings.py +27 -0
- mindsdb/integrations/handlers/ibm_cos_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/ibm_cos_handler/__init__.py +30 -0
- mindsdb/integrations/handlers/ibm_cos_handler/connection_args.py +38 -0
- mindsdb/integrations/handlers/ibm_cos_handler/ibm_cos_handler.py +338 -0
- mindsdb/integrations/handlers/ibm_cos_handler/icon.svg +54 -0
- mindsdb/integrations/handlers/ibm_cos_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/ibm_cos_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/ibm_cos_handler/tests/test_ibm_cos_handler.py +23 -0
- mindsdb/integrations/handlers/ignite_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/ignite_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/ignite_handler/connection_args.py +46 -0
- mindsdb/integrations/handlers/ignite_handler/icon.svg +5 -0
- mindsdb/integrations/handlers/ignite_handler/ignite_handler.py +207 -0
- mindsdb/integrations/handlers/ignite_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/ignite_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/ignite_handler/tests/test_ignite_handler.py +33 -0
- mindsdb/integrations/handlers/impala_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/impala_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/impala_handler/connection_args.py +37 -0
- mindsdb/integrations/handlers/impala_handler/icon.svg +13 -0
- mindsdb/integrations/handlers/impala_handler/impala_handler.py +156 -0
- mindsdb/integrations/handlers/impala_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/impala_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/impala_handler/tests/test_impala_handler.py +50 -0
- mindsdb/integrations/handlers/influxdb_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/influxdb_handler/__init__.py +26 -0
- mindsdb/integrations/handlers/influxdb_handler/icon.svg +14 -0
- mindsdb/integrations/handlers/influxdb_handler/influxdb_handler.py +105 -0
- mindsdb/integrations/handlers/influxdb_handler/influxdb_tables.py +81 -0
- mindsdb/integrations/handlers/influxdb_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/informix_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/informix_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/informix_handler/icon.svg +5 -0
- mindsdb/integrations/handlers/informix_handler/informix_handler.py +318 -0
- mindsdb/integrations/handlers/informix_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/informix_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/informix_handler/tests/test_informix_handler.py +52 -0
- mindsdb/integrations/handlers/ingres_handler/__about__.py +10 -0
- mindsdb/integrations/handlers/ingres_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/ingres_handler/connection_args.py +36 -0
- mindsdb/integrations/handlers/ingres_handler/icon.svg +6 -0
- mindsdb/integrations/handlers/ingres_handler/ingres_handler.py +210 -0
- mindsdb/integrations/handlers/ingres_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/ingres_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/ingres_handler/tests/test_ingres_handler.py +53 -0
- mindsdb/integrations/handlers/instatus_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/instatus_handler/__init__.py +28 -0
- mindsdb/integrations/handlers/instatus_handler/icon.svg +5 -0
- mindsdb/integrations/handlers/instatus_handler/instatus_handler.py +127 -0
- mindsdb/integrations/handlers/instatus_handler/instatus_tables.py +393 -0
- mindsdb/integrations/handlers/intercom_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/intercom_handler/__init__.py +28 -0
- mindsdb/integrations/handlers/intercom_handler/icon.svg +3 -0
- mindsdb/integrations/handlers/intercom_handler/intercom_handler.py +117 -0
- mindsdb/integrations/handlers/intercom_handler/intercom_tables.py +152 -0
- mindsdb/integrations/handlers/jira_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/jira_handler/__init__.py +26 -0
- mindsdb/integrations/handlers/jira_handler/icon.svg +15 -0
- mindsdb/integrations/handlers/jira_handler/jira_handler.py +119 -0
- mindsdb/integrations/handlers/jira_handler/jira_table.py +151 -0
- mindsdb/integrations/handlers/jira_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/kinetica_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/kinetica_handler/__init__.py +22 -0
- mindsdb/integrations/handlers/kinetica_handler/connection_args.py +54 -0
- mindsdb/integrations/handlers/kinetica_handler/icon.svg +5 -0
- mindsdb/integrations/handlers/kinetica_handler/kinetica_handler.py +12 -0
- mindsdb/integrations/handlers/lancedb_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/lancedb_handler/__init__.py +29 -0
- mindsdb/integrations/handlers/lancedb_handler/connection_args.py +35 -0
- mindsdb/integrations/handlers/lancedb_handler/icon.svg +8 -0
- mindsdb/integrations/handlers/lancedb_handler/lancedb_handler.py +329 -0
- mindsdb/integrations/handlers/lancedb_handler/requirements.txt +3 -0
- mindsdb/integrations/handlers/lancedb_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/lancedb_handler/tests/test_lancedb_handler.py +99 -0
- mindsdb/integrations/handlers/langchain_embedding_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/langchain_embedding_handler/__init__.py +23 -0
- mindsdb/integrations/handlers/langchain_embedding_handler/icon.svg +14 -0
- mindsdb/integrations/handlers/langchain_embedding_handler/langchain_embedding_handler.py +221 -0
- mindsdb/integrations/handlers/langchain_embedding_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/langchain_embedding_handler/vllm_embeddings.py +111 -0
- mindsdb/integrations/handlers/langchain_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/langchain_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/langchain_handler/icon.svg +14 -0
- mindsdb/integrations/handlers/langchain_handler/langchain_handler.py +278 -0
- mindsdb/integrations/handlers/langchain_handler/requirements.txt +8 -0
- mindsdb/integrations/handlers/langchain_handler/tools.py +247 -0
- mindsdb/integrations/handlers/leonardoai_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/leonardoai_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/leonardoai_handler/icon.svg +306 -0
- mindsdb/integrations/handlers/leonardoai_handler/leonardo_ai_handler.py +225 -0
- mindsdb/integrations/handlers/leonardoai_handler/requirements.txt +0 -0
- mindsdb/integrations/handlers/libsql_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/libsql_handler/__init__.py +28 -0
- mindsdb/integrations/handlers/libsql_handler/connection_args.py +22 -0
- mindsdb/integrations/handlers/libsql_handler/icon.svg +3 -0
- mindsdb/integrations/handlers/libsql_handler/libsql_handler.py +192 -0
- mindsdb/integrations/handlers/libsql_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/libsql_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/libsql_handler/tests/test_libsql_handler.py +45 -0
- mindsdb/integrations/handlers/lightdash_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/lightdash_handler/__init__.py +27 -0
- mindsdb/integrations/handlers/lightdash_handler/api.py +513 -0
- mindsdb/integrations/handlers/lightdash_handler/icon.png +0 -0
- mindsdb/integrations/handlers/lightdash_handler/lightdash_handler.py +108 -0
- mindsdb/integrations/handlers/lightdash_handler/lightdash_tables.py +648 -0
- mindsdb/integrations/handlers/lightdash_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/lightfm_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/lightfm_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/lightfm_handler/helpers.py +175 -0
- mindsdb/integrations/handlers/lightfm_handler/icon.svg +14 -0
- mindsdb/integrations/handlers/lightfm_handler/lightfm_handler.py +198 -0
- mindsdb/integrations/handlers/lightfm_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/lightfm_handler/settings.py +7 -0
- mindsdb/integrations/handlers/lightwood_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/lightwood_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/lightwood_handler/functions.py +252 -0
- mindsdb/integrations/handlers/lightwood_handler/icon.svg +13 -0
- mindsdb/integrations/handlers/lightwood_handler/lightwood_handler.py +581 -0
- mindsdb/integrations/handlers/lightwood_handler/requirements.txt +4 -0
- mindsdb/integrations/handlers/lightwood_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/lightwood_handler/tests/test_lightwood_handler.py +258 -0
- mindsdb/integrations/handlers/lightwood_handler/utils.py +76 -0
- mindsdb/integrations/handlers/lindorm_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/lindorm_handler/__init__.py +28 -0
- mindsdb/integrations/handlers/lindorm_handler/icon.svg +5 -0
- mindsdb/integrations/handlers/lindorm_handler/lindorm_handler.py +220 -0
- mindsdb/integrations/handlers/lindorm_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/lindorm_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/lindorm_handler/tests/test_lindorm_handler.py +33 -0
- mindsdb/integrations/handlers/litellm_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/litellm_handler/__init__.py +30 -0
- mindsdb/integrations/handlers/litellm_handler/icon.png +0 -0
- mindsdb/integrations/handlers/litellm_handler/litellm_handler.py +141 -0
- mindsdb/integrations/handlers/litellm_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/litellm_handler/settings.py +39 -0
- mindsdb/integrations/handlers/llama_index_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/llama_index_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/llama_index_handler/icon.svg +9 -0
- mindsdb/integrations/handlers/llama_index_handler/llama_index_handler.py +201 -0
- mindsdb/integrations/handlers/llama_index_handler/requirements.txt +5 -0
- mindsdb/integrations/handlers/llama_index_handler/settings.py +65 -0
- mindsdb/integrations/handlers/ludwig_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/ludwig_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/ludwig_handler/functions.py +0 -0
- mindsdb/integrations/handlers/ludwig_handler/icon.svg +5 -0
- mindsdb/integrations/handlers/ludwig_handler/ludwig_handler.py +68 -0
- mindsdb/integrations/handlers/ludwig_handler/requirements.txt +3 -0
- mindsdb/integrations/handlers/ludwig_handler/utils.py +12 -0
- mindsdb/integrations/handlers/luma_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/luma_handler/__init__.py +28 -0
- mindsdb/integrations/handlers/luma_handler/connection_args.py +18 -0
- mindsdb/integrations/handlers/luma_handler/icon.png +0 -0
- mindsdb/integrations/handlers/luma_handler/luma.py +47 -0
- mindsdb/integrations/handlers/luma_handler/luma_handler.py +77 -0
- mindsdb/integrations/handlers/luma_handler/luma_tables.py +164 -0
- mindsdb/integrations/handlers/luma_handler/requirements.txt +0 -0
- mindsdb/integrations/handlers/mariadb_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/mariadb_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/mariadb_handler/connection_args.py +76 -0
- mindsdb/integrations/handlers/mariadb_handler/icon.svg +3 -0
- mindsdb/integrations/handlers/mariadb_handler/mariadb_handler.py +12 -0
- mindsdb/integrations/handlers/mariadb_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/materialize_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/materialize_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/materialize_handler/icon.svg +7 -0
- mindsdb/integrations/handlers/materialize_handler/materialize_handler.py +43 -0
- mindsdb/integrations/handlers/materialize_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/materialize_handler/tests/test_materialize_handler.py +56 -0
- mindsdb/integrations/handlers/matrixone_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/matrixone_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/matrixone_handler/connection_args.py +52 -0
- mindsdb/integrations/handlers/matrixone_handler/icon.svg +9 -0
- mindsdb/integrations/handlers/matrixone_handler/matrixone_handler.py +168 -0
- mindsdb/integrations/handlers/matrixone_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/matrixone_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/matrixone_handler/tests/test_matrixone_handler.py +56 -0
- mindsdb/integrations/handlers/maxdb_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/maxdb_handler/__init__.py +28 -0
- mindsdb/integrations/handlers/maxdb_handler/connection_args.py +42 -0
- mindsdb/integrations/handlers/maxdb_handler/icon.svg +13 -0
- mindsdb/integrations/handlers/maxdb_handler/maxdb_handler.py +185 -0
- mindsdb/integrations/handlers/maxdb_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/maxdb_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/maxdb_handler/tests/test_maxdb_handler.py +55 -0
- mindsdb/integrations/handlers/mediawiki_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/mediawiki_handler/__init__.py +27 -0
- mindsdb/integrations/handlers/mediawiki_handler/icon.svg +153 -0
- mindsdb/integrations/handlers/mediawiki_handler/mediawiki_handler.py +87 -0
- mindsdb/integrations/handlers/mediawiki_handler/mediawiki_tables.py +98 -0
- mindsdb/integrations/handlers/mediawiki_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/mendeley_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/mendeley_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/mendeley_handler/icon.svg +14 -0
- mindsdb/integrations/handlers/mendeley_handler/mendeley_handler.py +225 -0
- mindsdb/integrations/handlers/mendeley_handler/mendeley_tables.py +134 -0
- mindsdb/integrations/handlers/mendeley_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/mendeley_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/mendeley_handler/tests/test_mendeley_handler.py +108 -0
- mindsdb/integrations/handlers/merlion_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/merlion_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/merlion_handler/adapters.py +182 -0
- mindsdb/integrations/handlers/merlion_handler/icon.svg +16 -0
- mindsdb/integrations/handlers/merlion_handler/merlion_handler.py +205 -0
- mindsdb/integrations/handlers/merlion_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/milvus_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/milvus_handler/__init__.py +29 -0
- mindsdb/integrations/handlers/milvus_handler/connection_args.py +112 -0
- mindsdb/integrations/handlers/milvus_handler/icon.svg +5 -0
- mindsdb/integrations/handlers/milvus_handler/milvus_handler.py +332 -0
- mindsdb/integrations/handlers/milvus_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/milvus_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/minds_endpoint_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/minds_endpoint_handler/__init__.py +23 -0
- mindsdb/integrations/handlers/minds_endpoint_handler/icon.svg +13 -0
- mindsdb/integrations/handlers/minds_endpoint_handler/minds_endpoint_handler.py +132 -0
- mindsdb/integrations/handlers/minds_endpoint_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/minds_endpoint_handler/settings.py +18 -0
- mindsdb/integrations/handlers/minds_endpoint_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/minds_endpoint_handler/tests/test_minds_endpoint_handler.py +160 -0
- mindsdb/integrations/handlers/mlflow_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/mlflow_handler/__init__.py +18 -0
- mindsdb/integrations/handlers/mlflow_handler/icon.svg +4 -0
- mindsdb/integrations/handlers/mlflow_handler/mlflow_handler.py +83 -0
- mindsdb/integrations/handlers/mlflow_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/monetdb_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/monetdb_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/monetdb_handler/connection_args.py +44 -0
- mindsdb/integrations/handlers/monetdb_handler/icon.svg +4 -0
- mindsdb/integrations/handlers/monetdb_handler/monetdb_handler.py +219 -0
- mindsdb/integrations/handlers/monetdb_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/monetdb_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/monetdb_handler/tests/test_monetdb_handler.py +50 -0
- mindsdb/integrations/handlers/monetdb_handler/utils/__init__.py +0 -0
- mindsdb/integrations/handlers/monetdb_handler/utils/monet_get_id.py +50 -0
- mindsdb/integrations/handlers/mongodb_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/mongodb_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/mongodb_handler/connection_args.py +46 -0
- mindsdb/integrations/handlers/mongodb_handler/icon.svg +3 -0
- mindsdb/integrations/handlers/mongodb_handler/mongodb_handler.py +372 -0
- mindsdb/integrations/handlers/mongodb_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/mongodb_handler/tests/test_mongodb_handler.py +125 -0
- mindsdb/integrations/handlers/mongodb_handler/utils/__init__.py +0 -0
- mindsdb/integrations/handlers/mongodb_handler/utils/mongodb_render.py +286 -0
- mindsdb/integrations/handlers/monkeylearn_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/monkeylearn_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/monkeylearn_handler/icon.png +0 -0
- mindsdb/integrations/handlers/monkeylearn_handler/monkeylearn_handler.py +81 -0
- mindsdb/integrations/handlers/monkeylearn_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/ms_one_drive_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/ms_one_drive_handler/__init__.py +27 -0
- mindsdb/integrations/handlers/ms_one_drive_handler/icon.svg +31 -0
- mindsdb/integrations/handlers/ms_one_drive_handler/ms_graph_api_one_drive_client.py +102 -0
- mindsdb/integrations/handlers/ms_one_drive_handler/ms_one_drive_handler.py +252 -0
- mindsdb/integrations/handlers/ms_one_drive_handler/ms_one_drive_tables.py +100 -0
- mindsdb/integrations/handlers/ms_teams_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/ms_teams_handler/__init__.py +27 -0
- mindsdb/integrations/handlers/ms_teams_handler/icon.svg +23 -0
- mindsdb/integrations/handlers/ms_teams_handler/ms_teams_handler.py +193 -0
- mindsdb/integrations/handlers/ms_teams_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/mssql_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/mssql_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/mssql_handler/connection_args.py +52 -0
- mindsdb/integrations/handlers/mssql_handler/icon.svg +21 -0
- mindsdb/integrations/handlers/mssql_handler/mssql_handler.py +218 -0
- mindsdb/integrations/handlers/mssql_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/mssql_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/mssql_handler/tests/test_mssql_handler.py +169 -0
- mindsdb/integrations/handlers/mysql_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/mysql_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/mysql_handler/connection_args.py +76 -0
- mindsdb/integrations/handlers/mysql_handler/icon.svg +4 -0
- mindsdb/integrations/handlers/mysql_handler/mysql_handler.py +214 -0
- mindsdb/integrations/handlers/mysql_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/mysql_handler/settings.py +46 -0
- mindsdb/integrations/handlers/neuralforecast_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/neuralforecast_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/neuralforecast_handler/icon.svg +5 -0
- mindsdb/integrations/handlers/neuralforecast_handler/neuralforecast_handler.py +135 -0
- mindsdb/integrations/handlers/neuralforecast_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/neuralforecast_handler/requirements_extra.txt +2 -0
- mindsdb/integrations/handlers/newsapi_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/newsapi_handler/__init__.py +29 -0
- mindsdb/integrations/handlers/newsapi_handler/connection_args.py +14 -0
- mindsdb/integrations/handlers/newsapi_handler/icon.png +0 -0
- mindsdb/integrations/handlers/newsapi_handler/newsapi_handler.py +209 -0
- mindsdb/integrations/handlers/newsapi_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/newsapi_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/newsapi_handler/tests/test_newsapi_handler.py +90 -0
- mindsdb/integrations/handlers/notion_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/notion_handler/__init__.py +30 -0
- mindsdb/integrations/handlers/notion_handler/icon.svg +11 -0
- mindsdb/integrations/handlers/notion_handler/notion_handler.py +238 -0
- mindsdb/integrations/handlers/notion_handler/notion_table.py +422 -0
- mindsdb/integrations/handlers/notion_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/notion_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/notion_handler/tests/test_notion_handler.py +62 -0
- mindsdb/integrations/handlers/npm_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/npm_handler/__init__.py +27 -0
- mindsdb/integrations/handlers/npm_handler/api.py +26 -0
- mindsdb/integrations/handlers/npm_handler/icon.svg +11 -0
- mindsdb/integrations/handlers/npm_handler/npm_handler.py +53 -0
- mindsdb/integrations/handlers/npm_handler/npm_tables.py +242 -0
- mindsdb/integrations/handlers/npm_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/nuo_jdbc_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/nuo_jdbc_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/nuo_jdbc_handler/connection_args.py +65 -0
- mindsdb/integrations/handlers/nuo_jdbc_handler/icon.svg +3 -0
- mindsdb/integrations/handlers/nuo_jdbc_handler/nuo_jdbc_handler.py +228 -0
- mindsdb/integrations/handlers/nuo_jdbc_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/nuo_jdbc_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/nuo_jdbc_handler/tests/test_nuo_handler.py +50 -0
- mindsdb/integrations/handlers/oceanbase_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/oceanbase_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/oceanbase_handler/icon.svg +4 -0
- mindsdb/integrations/handlers/oceanbase_handler/oceanbase_handler.py +48 -0
- mindsdb/integrations/handlers/oceanbase_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/oceanbase_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/oceanbase_handler/tests/test_oceanbase_handler.py +56 -0
- mindsdb/integrations/handlers/oilpriceapi_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/oilpriceapi_handler/__init__.py +28 -0
- mindsdb/integrations/handlers/oilpriceapi_handler/connection_args.py +18 -0
- mindsdb/integrations/handlers/oilpriceapi_handler/icon.svg +7 -0
- mindsdb/integrations/handlers/oilpriceapi_handler/oilpriceapi.py +45 -0
- mindsdb/integrations/handlers/oilpriceapi_handler/oilpriceapi_handler.py +100 -0
- mindsdb/integrations/handlers/oilpriceapi_handler/oilpriceapi_tables.py +208 -0
- mindsdb/integrations/handlers/ollama_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/ollama_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/ollama_handler/icon.png +0 -0
- mindsdb/integrations/handlers/ollama_handler/ollama_handler.py +171 -0
- mindsdb/integrations/handlers/openai_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/openai_handler/__init__.py +22 -0
- mindsdb/integrations/handlers/openai_handler/constants.py +36 -0
- mindsdb/integrations/handlers/openai_handler/creation_args.py +14 -0
- mindsdb/integrations/handlers/openai_handler/helpers.py +197 -0
- mindsdb/integrations/handlers/openai_handler/icon.svg +10 -0
- mindsdb/integrations/handlers/openai_handler/model_using_args.py +5 -0
- mindsdb/integrations/handlers/openai_handler/openai_handler.py +1188 -0
- mindsdb/integrations/handlers/openai_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/openai_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/openai_handler/tests/test_openai_handler.py +509 -0
- mindsdb/integrations/handlers/openbb_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/openbb_handler/__init__.py +27 -0
- mindsdb/integrations/handlers/openbb_handler/icon.svg +3 -0
- mindsdb/integrations/handlers/openbb_handler/openbb_handler.py +119 -0
- mindsdb/integrations/handlers/openbb_handler/openbb_tables.py +337 -0
- mindsdb/integrations/handlers/openbb_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/opengauss_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/opengauss_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/opengauss_handler/connection_args.py +36 -0
- mindsdb/integrations/handlers/opengauss_handler/icon.svg +6 -0
- mindsdb/integrations/handlers/opengauss_handler/opengauss_handler.py +11 -0
- mindsdb/integrations/handlers/opengauss_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/opengauss_handler/tests/test_opengauss_handler.py +45 -0
- mindsdb/integrations/handlers/openstreetmap_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/openstreetmap_handler/__init__.py +27 -0
- mindsdb/integrations/handlers/openstreetmap_handler/icon.svg +10 -0
- mindsdb/integrations/handlers/openstreetmap_handler/openstreetmap_handler.py +90 -0
- mindsdb/integrations/handlers/openstreetmap_handler/openstreetmap_tables.py +243 -0
- mindsdb/integrations/handlers/openstreetmap_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/openstreetmap_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/openstreetmap_handler/tests/test_openstreetmap_handler.py +37 -0
- mindsdb/integrations/handlers/oracle_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/oracle_handler/__init__.py +28 -0
- mindsdb/integrations/handlers/oracle_handler/connection_args.py +70 -0
- mindsdb/integrations/handlers/oracle_handler/icon.svg +3 -0
- mindsdb/integrations/handlers/oracle_handler/oracle_handler.py +246 -0
- mindsdb/integrations/handlers/oracle_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/oracle_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/oracle_handler/tests/test_oracle_handler.py +32 -0
- mindsdb/integrations/handlers/orioledb_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/orioledb_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/orioledb_handler/connection_args.py +36 -0
- mindsdb/integrations/handlers/orioledb_handler/icon.svg +6 -0
- mindsdb/integrations/handlers/orioledb_handler/orioledb_handler.py +11 -0
- mindsdb/integrations/handlers/orioledb_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/orioledb_handler/tests/test_orioledb_handler.py +56 -0
- mindsdb/integrations/handlers/palm_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/palm_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/palm_handler/icon.svg +9 -0
- mindsdb/integrations/handlers/palm_handler/palm_handler.py +448 -0
- mindsdb/integrations/handlers/palm_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/paypal_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/paypal_handler/__init__.py +27 -0
- mindsdb/integrations/handlers/paypal_handler/icon.svg +5 -0
- mindsdb/integrations/handlers/paypal_handler/paypal_handler.py +145 -0
- mindsdb/integrations/handlers/paypal_handler/paypal_tables.py +283 -0
- mindsdb/integrations/handlers/paypal_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/pgvector_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/pgvector_handler/__init__.py +29 -0
- mindsdb/integrations/handlers/pgvector_handler/connection_args.py +54 -0
- mindsdb/integrations/handlers/pgvector_handler/icon.svg +23 -0
- mindsdb/integrations/handlers/pgvector_handler/pgvector_handler.py +447 -0
- mindsdb/integrations/handlers/pgvector_handler/requirements.txt +0 -0
- mindsdb/integrations/handlers/phoenix_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/phoenix_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/phoenix_handler/connection_args.py +50 -0
- mindsdb/integrations/handlers/phoenix_handler/icon.png +0 -0
- mindsdb/integrations/handlers/phoenix_handler/phoenix_handler.py +229 -0
- mindsdb/integrations/handlers/phoenix_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/phoenix_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/phoenix_handler/tests/test_phoenix_handler.py +33 -0
- mindsdb/integrations/handlers/pinecone_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/pinecone_handler/__init__.py +29 -0
- mindsdb/integrations/handlers/pinecone_handler/connection_args.py +53 -0
- mindsdb/integrations/handlers/pinecone_handler/icon.svg +21 -0
- mindsdb/integrations/handlers/pinecone_handler/pinecone_handler.py +304 -0
- mindsdb/integrations/handlers/pinecone_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/pinecone_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/pinot_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/pinot_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/pinot_handler/connection_args.py +49 -0
- mindsdb/integrations/handlers/pinot_handler/icon.svg +7 -0
- mindsdb/integrations/handlers/pinot_handler/pinot_handler.py +223 -0
- mindsdb/integrations/handlers/pinot_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/pinot_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/pinot_handler/tests/test_pinot_handler.py +36 -0
- mindsdb/integrations/handlers/pirateweather_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/pirateweather_handler/__init__.py +29 -0
- mindsdb/integrations/handlers/pirateweather_handler/connection_args.py +14 -0
- mindsdb/integrations/handlers/pirateweather_handler/icon.png +0 -0
- mindsdb/integrations/handlers/pirateweather_handler/pirateweather_handler.py +236 -0
- mindsdb/integrations/handlers/plaid_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/plaid_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/plaid_handler/icon.svg +3 -0
- mindsdb/integrations/handlers/plaid_handler/plaid_handler.py +225 -0
- mindsdb/integrations/handlers/plaid_handler/plaid_tables.py +159 -0
- mindsdb/integrations/handlers/plaid_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/plaid_handler/utils.py +9 -0
- mindsdb/integrations/handlers/planetscale_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/planetscale_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/planetscale_handler/connection_args.py +36 -0
- mindsdb/integrations/handlers/planetscale_handler/icon.svg +3 -0
- mindsdb/integrations/handlers/planetscale_handler/planetscale_handler.py +14 -0
- mindsdb/integrations/handlers/planetscale_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/popularity_recommender_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/popularity_recommender_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/popularity_recommender_handler/icon.svg +10 -0
- mindsdb/integrations/handlers/popularity_recommender_handler/popularity_recommender_handler.py +103 -0
- mindsdb/integrations/handlers/popularity_recommender_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/portkey_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/portkey_handler/__init__.py +22 -0
- mindsdb/integrations/handlers/portkey_handler/icon.svg +9 -0
- mindsdb/integrations/handlers/portkey_handler/portkey_handler.py +79 -0
- mindsdb/integrations/handlers/portkey_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/postgres_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/postgres_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/postgres_handler/connection_args.py +65 -0
- mindsdb/integrations/handlers/postgres_handler/icon.svg +23 -0
- mindsdb/integrations/handlers/postgres_handler/postgres_handler.py +396 -0
- mindsdb/integrations/handlers/postgres_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/postgres_handler/tests/test_postgres_handler.py +172 -0
- mindsdb/integrations/handlers/pycaret_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/pycaret_handler/__init__.py +22 -0
- mindsdb/integrations/handlers/pycaret_handler/icon.png +0 -0
- mindsdb/integrations/handlers/pycaret_handler/pycaret_handler.py +116 -0
- mindsdb/integrations/handlers/pycaret_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/pycaret_handler/test/__init__.py +0 -0
- mindsdb/integrations/handlers/pycaret_handler/test/test_pycaret.py +242 -0
- mindsdb/integrations/handlers/pypi_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/pypi_handler/__init__.py +28 -0
- mindsdb/integrations/handlers/pypi_handler/api.py +152 -0
- mindsdb/integrations/handlers/pypi_handler/icon.svg +123 -0
- mindsdb/integrations/handlers/pypi_handler/pypi_handler.py +73 -0
- mindsdb/integrations/handlers/pypi_handler/pypi_tables.py +263 -0
- mindsdb/integrations/handlers/qdrant_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/qdrant_handler/__init__.py +29 -0
- mindsdb/integrations/handlers/qdrant_handler/connection_args.py +75 -0
- mindsdb/integrations/handlers/qdrant_handler/icon.svg +10 -0
- mindsdb/integrations/handlers/qdrant_handler/qdrant_handler.py +402 -0
- mindsdb/integrations/handlers/qdrant_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/questdb_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/questdb_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/questdb_handler/icon.svg +25 -0
- mindsdb/integrations/handlers/questdb_handler/questdb_handler.py +72 -0
- mindsdb/integrations/handlers/questdb_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/questdb_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/questdb_handler/tests/test_questdb_handler.py +35 -0
- mindsdb/integrations/handlers/quickbooks_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/quickbooks_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/quickbooks_handler/icon.svg +11 -0
- mindsdb/integrations/handlers/quickbooks_handler/quickbooks_handler.py +97 -0
- mindsdb/integrations/handlers/quickbooks_handler/quickbooks_table.py +374 -0
- mindsdb/integrations/handlers/quickbooks_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/rag_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/rag_handler/__init__.py +29 -0
- mindsdb/integrations/handlers/rag_handler/exceptions.py +26 -0
- mindsdb/integrations/handlers/rag_handler/icon.svg +13 -0
- mindsdb/integrations/handlers/rag_handler/ingest.py +185 -0
- mindsdb/integrations/handlers/rag_handler/rag.py +147 -0
- mindsdb/integrations/handlers/rag_handler/rag_handler.py +144 -0
- mindsdb/integrations/handlers/rag_handler/requirements.txt +6 -0
- mindsdb/integrations/handlers/rag_handler/settings.py +479 -0
- mindsdb/integrations/handlers/ray_serve_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/ray_serve_handler/__init__.py +18 -0
- mindsdb/integrations/handlers/ray_serve_handler/icon.svg +3 -0
- mindsdb/integrations/handlers/ray_serve_handler/ray_serve_handler.py +66 -0
- mindsdb/integrations/handlers/reddit_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/reddit_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/reddit_handler/icon.svg +11 -0
- mindsdb/integrations/handlers/reddit_handler/reddit_handler.py +106 -0
- mindsdb/integrations/handlers/reddit_handler/reddit_tables.py +195 -0
- mindsdb/integrations/handlers/reddit_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/redshift_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/redshift_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/redshift_handler/connection_args.py +58 -0
- mindsdb/integrations/handlers/redshift_handler/icon.svg +9 -0
- mindsdb/integrations/handlers/redshift_handler/redshift_handler.py +69 -0
- mindsdb/integrations/handlers/redshift_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/redshift_handler/tests/test_redshift_handler.py +154 -0
- mindsdb/integrations/handlers/replicate_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/replicate_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/replicate_handler/assets/Arjuna.png +0 -0
- mindsdb/integrations/handlers/replicate_handler/assets/groot.png +0 -0
- mindsdb/integrations/handlers/replicate_handler/assets/warrior.png +0 -0
- mindsdb/integrations/handlers/replicate_handler/icon.svg +5 -0
- mindsdb/integrations/handlers/replicate_handler/replicate_handler.py +162 -0
- mindsdb/integrations/handlers/replicate_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/rocket_chat_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/rocket_chat_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/rocket_chat_handler/icon.svg +6 -0
- mindsdb/integrations/handlers/rocket_chat_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/rocket_chat_handler/rocket_chat_handler.py +153 -0
- mindsdb/integrations/handlers/rocket_chat_handler/rocket_chat_tables.py +201 -0
- mindsdb/integrations/handlers/rockset_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/rockset_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/rockset_handler/connection_args.py +45 -0
- mindsdb/integrations/handlers/rockset_handler/icon.svg +5 -0
- mindsdb/integrations/handlers/rockset_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/rockset_handler/rockset_handler.py +11 -0
- mindsdb/integrations/handlers/rockset_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/rockset_handler/tests/test.png +0 -0
- mindsdb/integrations/handlers/rockset_handler/tests/test2.png +0 -0
- mindsdb/integrations/handlers/rockset_handler/tests/test_rockset_handler.py +32 -0
- mindsdb/integrations/handlers/s3_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/s3_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/s3_handler/connection_args.py +47 -0
- mindsdb/integrations/handlers/s3_handler/icon.svg +15 -0
- mindsdb/integrations/handlers/s3_handler/s3_handler.py +454 -0
- mindsdb/integrations/handlers/s3_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/s3_handler/tests/test_s3_handler.py +37 -0
- mindsdb/integrations/handlers/salesforce_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/salesforce_handler/__init__.py +30 -0
- mindsdb/integrations/handlers/salesforce_handler/connection_args.py +39 -0
- mindsdb/integrations/handlers/salesforce_handler/icon.svg +1 -0
- mindsdb/integrations/handlers/salesforce_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/salesforce_handler/salesforce_handler.py +180 -0
- mindsdb/integrations/handlers/salesforce_handler/salesforce_tables.py +129 -0
- mindsdb/integrations/handlers/sap_erp_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/sap_erp_handler/__init__.py +27 -0
- mindsdb/integrations/handlers/sap_erp_handler/api.py +79 -0
- mindsdb/integrations/handlers/sap_erp_handler/icon.svg +13 -0
- mindsdb/integrations/handlers/sap_erp_handler/sap_erp_handler.py +161 -0
- mindsdb/integrations/handlers/sap_erp_handler/sap_erp_tables.py +1928 -0
- mindsdb/integrations/handlers/sap_erp_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/scylla_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/scylla_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/scylla_handler/connection_args.py +50 -0
- mindsdb/integrations/handlers/scylla_handler/icon.svg +17 -0
- mindsdb/integrations/handlers/scylla_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/scylla_handler/scylla_handler.py +205 -0
- mindsdb/integrations/handlers/scylla_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/scylla_handler/tests/test_scylla_handler.py +38 -0
- mindsdb/integrations/handlers/sendinblue_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/sendinblue_handler/__init__.py +27 -0
- mindsdb/integrations/handlers/sendinblue_handler/icon.svg +3 -0
- mindsdb/integrations/handlers/sendinblue_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/sendinblue_handler/sendinblue_handler.py +94 -0
- mindsdb/integrations/handlers/sendinblue_handler/sendinblue_tables.py +276 -0
- mindsdb/integrations/handlers/sentence_transformers_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/sentence_transformers_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/sentence_transformers_handler/icon.svg +21 -0
- mindsdb/integrations/handlers/sentence_transformers_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/sentence_transformers_handler/sentence_transformers_handler.py +75 -0
- mindsdb/integrations/handlers/sentence_transformers_handler/settings.py +12 -0
- mindsdb/integrations/handlers/serpstack_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/serpstack_handler/__init__.py +27 -0
- mindsdb/integrations/handlers/serpstack_handler/icon.svg +86 -0
- mindsdb/integrations/handlers/serpstack_handler/serpstack_handler.py +123 -0
- mindsdb/integrations/handlers/serpstack_handler/serpstack_tables.py +260 -0
- mindsdb/integrations/handlers/sharepoint_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/sharepoint_handler/__init__.py +27 -0
- mindsdb/integrations/handlers/sharepoint_handler/icon.svg +23 -0
- mindsdb/integrations/handlers/sharepoint_handler/sharepoint_api.py +579 -0
- mindsdb/integrations/handlers/sharepoint_handler/sharepoint_handler.py +147 -0
- mindsdb/integrations/handlers/sharepoint_handler/sharepoint_tables.py +581 -0
- mindsdb/integrations/handlers/sharepoint_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/sharepoint_handler/tests/test_sharepoint_handler.py +53 -0
- mindsdb/integrations/handlers/sharepoint_handler/utils.py +163 -0
- mindsdb/integrations/handlers/sheets_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/sheets_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/sheets_handler/connection_args.py +20 -0
- mindsdb/integrations/handlers/sheets_handler/icon.svg +55 -0
- mindsdb/integrations/handlers/sheets_handler/sheets_handler.py +176 -0
- mindsdb/integrations/handlers/sheets_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/sheets_handler/tests/test_sheets_handler.py +33 -0
- mindsdb/integrations/handlers/shopify_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/shopify_handler/__init__.py +27 -0
- mindsdb/integrations/handlers/shopify_handler/icon.svg +5 -0
- mindsdb/integrations/handlers/shopify_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/shopify_handler/shopify_handler.py +143 -0
- mindsdb/integrations/handlers/shopify_handler/shopify_tables.py +1083 -0
- mindsdb/integrations/handlers/singlestore_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/singlestore_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/singlestore_handler/icon.svg +16 -0
- mindsdb/integrations/handlers/singlestore_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/singlestore_handler/singlestore_handler.py +12 -0
- mindsdb/integrations/handlers/singlestore_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/singlestore_handler/tests/test_singlestore_handler.py +42 -0
- mindsdb/integrations/handlers/slack_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/slack_handler/__init__.py +28 -0
- mindsdb/integrations/handlers/slack_handler/connection_args.py +26 -0
- mindsdb/integrations/handlers/slack_handler/icon.svg +13 -0
- mindsdb/integrations/handlers/slack_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/slack_handler/slack_handler.py +339 -0
- mindsdb/integrations/handlers/slack_handler/slack_tables.py +718 -0
- mindsdb/integrations/handlers/slack_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/slack_handler/tests/test_slack.py +27 -0
- mindsdb/integrations/handlers/snowflake_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/snowflake_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/snowflake_handler/connection_args.py +63 -0
- mindsdb/integrations/handlers/snowflake_handler/icon.svg +10 -0
- mindsdb/integrations/handlers/snowflake_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/snowflake_handler/snowflake_handler.py +280 -0
- mindsdb/integrations/handlers/snowflake_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/snowflake_handler/tests/test_snowflake_handler.py +230 -0
- mindsdb/integrations/handlers/solace_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/solace_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/solace_handler/icon.svg +3 -0
- mindsdb/integrations/handlers/solace_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/solace_handler/solace_handler.py +169 -0
- mindsdb/integrations/handlers/solr_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/solr_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/solr_handler/connection_args.py +46 -0
- mindsdb/integrations/handlers/solr_handler/icon.svg +10 -0
- mindsdb/integrations/handlers/solr_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/solr_handler/solr_handler.py +176 -0
- mindsdb/integrations/handlers/solr_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/solr_handler/tests/test_solr_handler.py +38 -0
- mindsdb/integrations/handlers/spacy_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/spacy_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/spacy_handler/icon.svg +3 -0
- mindsdb/integrations/handlers/spacy_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/spacy_handler/spacy_handler.py +194 -0
- mindsdb/integrations/handlers/sqlany_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/sqlany_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/sqlany_handler/connection_args.py +46 -0
- mindsdb/integrations/handlers/sqlany_handler/icon.svg +13 -0
- mindsdb/integrations/handlers/sqlany_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/sqlany_handler/sqlany_handler.py +179 -0
- mindsdb/integrations/handlers/sqlite_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/sqlite_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/sqlite_handler/connection_args.py +16 -0
- mindsdb/integrations/handlers/sqlite_handler/icon.svg +12 -0
- mindsdb/integrations/handlers/sqlite_handler/sqlite_handler.py +184 -0
- mindsdb/integrations/handlers/sqlite_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/sqlite_handler/tests/test_sqlite_handler.py +32 -0
- mindsdb/integrations/handlers/sqreamdb_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/sqreamdb_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/sqreamdb_handler/connection_args.py +48 -0
- mindsdb/integrations/handlers/sqreamdb_handler/icon.svg +21 -0
- mindsdb/integrations/handlers/sqreamdb_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/sqreamdb_handler/sqreamdb_handler.py +154 -0
- mindsdb/integrations/handlers/sqreamdb_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/sqreamdb_handler/tests/test_sqreamdb_handler.py +45 -0
- mindsdb/integrations/handlers/stabilityai_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/stabilityai_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/stabilityai_handler/icon.svg +10 -0
- mindsdb/integrations/handlers/stabilityai_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/stabilityai_handler/stabilityai.py +186 -0
- mindsdb/integrations/handlers/stabilityai_handler/stabilityai_handler.py +172 -0
- mindsdb/integrations/handlers/starrocks_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/starrocks_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/starrocks_handler/icon.svg +9 -0
- mindsdb/integrations/handlers/starrocks_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/starrocks_handler/starrocks_handler.py +48 -0
- mindsdb/integrations/handlers/starrocks_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/starrocks_handler/tests/test_starrocks_handler.py +56 -0
- mindsdb/integrations/handlers/statsforecast_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/statsforecast_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/statsforecast_handler/icon.svg +5 -0
- mindsdb/integrations/handlers/statsforecast_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/statsforecast_handler/requirements_extra.txt +1 -0
- mindsdb/integrations/handlers/statsforecast_handler/statsforecast_handler.py +192 -0
- mindsdb/integrations/handlers/strapi_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/strapi_handler/__init__.py +28 -0
- mindsdb/integrations/handlers/strapi_handler/icon.svg +7 -0
- mindsdb/integrations/handlers/strapi_handler/strapi_handler.py +153 -0
- mindsdb/integrations/handlers/strapi_handler/strapi_tables.py +131 -0
- mindsdb/integrations/handlers/strapi_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/strapi_handler/tests/test_strapi_handler.py +51 -0
- mindsdb/integrations/handlers/strava_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/strava_handler/__init__.py +27 -0
- mindsdb/integrations/handlers/strava_handler/icon.svg +12 -0
- mindsdb/integrations/handlers/strava_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/strava_handler/strava_handler.py +113 -0
- mindsdb/integrations/handlers/strava_handler/strava_tables.py +247 -0
- mindsdb/integrations/handlers/stripe_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/stripe_handler/__init__.py +27 -0
- mindsdb/integrations/handlers/stripe_handler/icon.svg +4 -0
- mindsdb/integrations/handlers/stripe_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/stripe_handler/stripe_handler.py +102 -0
- mindsdb/integrations/handlers/stripe_handler/stripe_tables.py +508 -0
- mindsdb/integrations/handlers/supabase_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/supabase_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/supabase_handler/icon.svg +15 -0
- mindsdb/integrations/handlers/supabase_handler/supabase_handler.py +11 -0
- mindsdb/integrations/handlers/supabase_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/supabase_handler/tests/test_supabase_handler.py +46 -0
- mindsdb/integrations/handlers/surrealdb_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/surrealdb_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/surrealdb_handler/connection_args.py +52 -0
- mindsdb/integrations/handlers/surrealdb_handler/icon.svg +9 -0
- mindsdb/integrations/handlers/surrealdb_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/surrealdb_handler/surrealdb_handler.py +196 -0
- mindsdb/integrations/handlers/surrealdb_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/surrealdb_handler/tests/test_surrealdb_handler.py +57 -0
- mindsdb/integrations/handlers/surrealdb_handler/utils/__init__.py +0 -0
- mindsdb/integrations/handlers/surrealdb_handler/utils/surreal_get_info.py +20 -0
- mindsdb/integrations/handlers/symbl_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/symbl_handler/__init__.py +28 -0
- mindsdb/integrations/handlers/symbl_handler/connection_args.py +25 -0
- mindsdb/integrations/handlers/symbl_handler/icon.svg +4 -0
- mindsdb/integrations/handlers/symbl_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/symbl_handler/symbl_handler.py +106 -0
- mindsdb/integrations/handlers/symbl_handler/symbl_tables.py +648 -0
- mindsdb/integrations/handlers/tdengine_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/tdengine_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/tdengine_handler/connection_args.py +36 -0
- mindsdb/integrations/handlers/tdengine_handler/icon.svg +59 -0
- mindsdb/integrations/handlers/tdengine_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/tdengine_handler/tdengine_handler.py +146 -0
- mindsdb/integrations/handlers/tdengine_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/tdengine_handler/tests/test_tdengine_handler.py +48 -0
- mindsdb/integrations/handlers/teradata_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/teradata_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/teradata_handler/connection_args.py +39 -0
- mindsdb/integrations/handlers/teradata_handler/icon.svg +4 -0
- mindsdb/integrations/handlers/teradata_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/teradata_handler/teradata_handler.py +245 -0
- mindsdb/integrations/handlers/tidb_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/tidb_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/tidb_handler/connection_args.py +36 -0
- mindsdb/integrations/handlers/tidb_handler/icon.svg +5 -0
- mindsdb/integrations/handlers/tidb_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/tidb_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/tidb_handler/tests/test_tidb_handler.py +45 -0
- mindsdb/integrations/handlers/tidb_handler/tidb_handler.py +11 -0
- mindsdb/integrations/handlers/timegpt_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/timegpt_handler/__init__.py +18 -0
- mindsdb/integrations/handlers/timegpt_handler/icon.svg +5 -0
- mindsdb/integrations/handlers/timegpt_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/timegpt_handler/timegpt_handler.py +205 -0
- mindsdb/integrations/handlers/timescaledb_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/timescaledb_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/timescaledb_handler/icon.svg +9 -0
- mindsdb/integrations/handlers/timescaledb_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/timescaledb_handler/tests/test_timescaledb_handler.py +47 -0
- mindsdb/integrations/handlers/timescaledb_handler/timescaledb_handler.py +46 -0
- mindsdb/integrations/handlers/tpot_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/tpot_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/tpot_handler/icon.png +0 -0
- mindsdb/integrations/handlers/tpot_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/tpot_handler/tpot_handler.py +80 -0
- mindsdb/integrations/handlers/trino_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/trino_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/trino_handler/icon.svg +23 -0
- mindsdb/integrations/handlers/trino_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/trino_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/trino_handler/tests/test_trino_handler.py +48 -0
- mindsdb/integrations/handlers/trino_handler/trino_config_provider.py +12 -0
- mindsdb/integrations/handlers/trino_handler/trino_handler.py +182 -0
- mindsdb/integrations/handlers/tripadvisor_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/tripadvisor_handler/__init__.py +27 -0
- mindsdb/integrations/handlers/tripadvisor_handler/icon.svg +4 -0
- mindsdb/integrations/handlers/tripadvisor_handler/tripadvisor_api.py +215 -0
- mindsdb/integrations/handlers/tripadvisor_handler/tripadvisor_handler.py +275 -0
- mindsdb/integrations/handlers/tripadvisor_handler/tripadvisor_table.py +477 -0
- mindsdb/integrations/handlers/twelve_labs_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/twelve_labs_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/twelve_labs_handler/icon.svg +7 -0
- mindsdb/integrations/handlers/twelve_labs_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/twelve_labs_handler/settings.py +271 -0
- mindsdb/integrations/handlers/twelve_labs_handler/twelve_labs_api_client.py +567 -0
- mindsdb/integrations/handlers/twelve_labs_handler/twelve_labs_handler.py +285 -0
- mindsdb/integrations/handlers/twilio_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/twilio_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/twilio_handler/icon.svg +11 -0
- mindsdb/integrations/handlers/twilio_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/twilio_handler/twilio_handler.py +385 -0
- mindsdb/integrations/handlers/twitter_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/twitter_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/twitter_handler/icon.svg +10 -0
- mindsdb/integrations/handlers/twitter_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/twitter_handler/twitter_handler.py +471 -0
- mindsdb/integrations/handlers/unify_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/unify_handler/__init__.py +22 -0
- mindsdb/integrations/handlers/unify_handler/creation_args.py +14 -0
- mindsdb/integrations/handlers/unify_handler/icon.svg +25 -0
- mindsdb/integrations/handlers/unify_handler/model_using_args.py +5 -0
- mindsdb/integrations/handlers/unify_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/unify_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/unify_handler/tests/test_unify_handler.py +60 -0
- mindsdb/integrations/handlers/unify_handler/unify_handler.py +67 -0
- mindsdb/integrations/handlers/vertex_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/vertex_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/vertex_handler/icon.png +0 -0
- mindsdb/integrations/handlers/vertex_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/vertex_handler/vertex_client.py +95 -0
- mindsdb/integrations/handlers/vertex_handler/vertex_handler.py +87 -0
- mindsdb/integrations/handlers/vertica_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/vertica_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/vertica_handler/connection_args.py +41 -0
- mindsdb/integrations/handlers/vertica_handler/icon.svg +8 -0
- mindsdb/integrations/handlers/vertica_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/vertica_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/vertica_handler/tests/test_vertica_handler.py +53 -0
- mindsdb/integrations/handlers/vertica_handler/vertica_handler.py +160 -0
- mindsdb/integrations/handlers/vitess_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/vitess_handler/__init__.py +20 -0
- mindsdb/integrations/handlers/vitess_handler/icon.svg +23 -0
- mindsdb/integrations/handlers/vitess_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/vitess_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/vitess_handler/tests/test_vitess_handler.py +56 -0
- mindsdb/integrations/handlers/vitess_handler/vitess_handler.py +48 -0
- mindsdb/integrations/handlers/weaviate_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/weaviate_handler/__init__.py +29 -0
- mindsdb/integrations/handlers/weaviate_handler/connection_args.py +29 -0
- mindsdb/integrations/handlers/weaviate_handler/icon.svg +197 -0
- mindsdb/integrations/handlers/weaviate_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/weaviate_handler/weaviate_handler.py +652 -0
- mindsdb/integrations/handlers/web_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/web_handler/__init__.py +24 -0
- mindsdb/integrations/handlers/web_handler/icon.svg +11 -0
- mindsdb/integrations/handlers/web_handler/requirements.txt +3 -0
- mindsdb/integrations/handlers/web_handler/urlcrawl_helpers.py +343 -0
- mindsdb/integrations/handlers/web_handler/web_handler.py +91 -0
- mindsdb/integrations/handlers/webz_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/webz_handler/__init__.py +28 -0
- mindsdb/integrations/handlers/webz_handler/icon.svg +4 -0
- mindsdb/integrations/handlers/webz_handler/requirements.txt +3 -0
- mindsdb/integrations/handlers/webz_handler/webz_handler.py +175 -0
- mindsdb/integrations/handlers/webz_handler/webz_tables.py +218 -0
- mindsdb/integrations/handlers/whatsapp_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/whatsapp_handler/__init__.py +28 -0
- mindsdb/integrations/handlers/whatsapp_handler/icon.svg +19 -0
- mindsdb/integrations/handlers/whatsapp_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/whatsapp_handler/whatsapp_handler.py +420 -0
- mindsdb/integrations/handlers/writer_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/writer_handler/__init__.py +30 -0
- mindsdb/integrations/handlers/writer_handler/evaluate.py +362 -0
- mindsdb/integrations/handlers/writer_handler/icon.svg +10 -0
- mindsdb/integrations/handlers/writer_handler/ingest.py +11 -0
- mindsdb/integrations/handlers/writer_handler/rag.py +14 -0
- mindsdb/integrations/handlers/writer_handler/requirements.txt +4 -0
- mindsdb/integrations/handlers/writer_handler/settings.py +86 -0
- mindsdb/integrations/handlers/writer_handler/writer_handler.py +188 -0
- mindsdb/integrations/handlers/xata_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/xata_handler/__init__.py +29 -0
- mindsdb/integrations/handlers/xata_handler/connection_args.py +35 -0
- mindsdb/integrations/handlers/xata_handler/icon.svg +29 -0
- mindsdb/integrations/handlers/xata_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/xata_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/xata_handler/xata_handler.py +347 -0
- mindsdb/integrations/handlers/youtube_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/youtube_handler/__init__.py +27 -0
- mindsdb/integrations/handlers/youtube_handler/icon.svg +11 -0
- mindsdb/integrations/handlers/youtube_handler/requirements.txt +2 -0
- mindsdb/integrations/handlers/youtube_handler/youtube_handler.py +164 -0
- mindsdb/integrations/handlers/youtube_handler/youtube_tables.py +448 -0
- mindsdb/integrations/handlers/yugabyte_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/yugabyte_handler/__init__.py +19 -0
- mindsdb/integrations/handlers/yugabyte_handler/icon.svg +4 -0
- mindsdb/integrations/handlers/yugabyte_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/yugabyte_handler/tests/test_yugabyte_handler.py +49 -0
- mindsdb/integrations/handlers/yugabyte_handler/yugabyte_handler.py +60 -0
- mindsdb/integrations/handlers/zendesk_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/zendesk_handler/__init__.py +28 -0
- mindsdb/integrations/handlers/zendesk_handler/connection_args.py +33 -0
- mindsdb/integrations/handlers/zendesk_handler/icon.svg +1 -0
- mindsdb/integrations/handlers/zendesk_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/zendesk_handler/zendesk_handler.py +89 -0
- mindsdb/integrations/handlers/zendesk_handler/zendesk_tables.py +463 -0
- mindsdb/integrations/handlers/zipcodebase_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/zipcodebase_handler/__init__.py +28 -0
- mindsdb/integrations/handlers/zipcodebase_handler/connection_args.py +18 -0
- mindsdb/integrations/handlers/zipcodebase_handler/icon.svg +4 -0
- mindsdb/integrations/handlers/zipcodebase_handler/tests/__init__.py +0 -0
- mindsdb/integrations/handlers/zipcodebase_handler/zipcodebase.py +67 -0
- mindsdb/integrations/handlers/zipcodebase_handler/zipcodebase_handler.py +107 -0
- mindsdb/integrations/handlers/zipcodebase_handler/zipcodebase_tables.py +499 -0
- mindsdb/integrations/handlers/zotero_handler/__about__.py +9 -0
- mindsdb/integrations/handlers/zotero_handler/__init__.py +21 -0
- mindsdb/integrations/handlers/zotero_handler/icon.svg +102 -0
- mindsdb/integrations/handlers/zotero_handler/requirements.txt +1 -0
- mindsdb/integrations/handlers/zotero_handler/zotero_handler.py +109 -0
- mindsdb/integrations/handlers/zotero_handler/zotero_tables.py +157 -0
- mindsdb/integrations/libs/__init__.py +3 -0
- mindsdb/integrations/libs/api_handler.py +436 -0
- mindsdb/integrations/libs/api_handler_exceptions.py +18 -0
- mindsdb/integrations/libs/base.py +355 -0
- mindsdb/integrations/libs/const.py +23 -0
- mindsdb/integrations/libs/llm/__init__.py +0 -0
- mindsdb/integrations/libs/llm/config.py +106 -0
- mindsdb/integrations/libs/llm/utils.py +603 -0
- mindsdb/integrations/libs/ml_exec_base.py +453 -0
- mindsdb/integrations/libs/ml_handler_process/__init__.py +8 -0
- mindsdb/integrations/libs/ml_handler_process/create_engine_process.py +28 -0
- mindsdb/integrations/libs/ml_handler_process/create_validation_process.py +14 -0
- mindsdb/integrations/libs/ml_handler_process/describe_process.py +117 -0
- mindsdb/integrations/libs/ml_handler_process/func_call_process.py +26 -0
- mindsdb/integrations/libs/ml_handler_process/handlers_cacher.py +28 -0
- mindsdb/integrations/libs/ml_handler_process/learn_process.py +156 -0
- mindsdb/integrations/libs/ml_handler_process/predict_process.py +35 -0
- mindsdb/integrations/libs/ml_handler_process/update_engine_process.py +28 -0
- mindsdb/integrations/libs/ml_handler_process/update_process.py +27 -0
- mindsdb/integrations/libs/process_cache.py +430 -0
- mindsdb/integrations/libs/realtime_chat_handler.py +33 -0
- mindsdb/integrations/libs/response.py +95 -0
- mindsdb/integrations/libs/storage_handler.py +88 -0
- mindsdb/integrations/libs/vectordatabase_handler.py +534 -0
- mindsdb/integrations/utilities/__init__.py +0 -0
- mindsdb/integrations/utilities/datasets/__init__.py +0 -0
- mindsdb/integrations/utilities/datasets/dataset.py +73 -0
- mindsdb/integrations/utilities/datasets/question_answering/fda_style_qa.csv +21 -0
- mindsdb/integrations/utilities/datasets/question_answering/squad_v2_val_100_sample.csv +106 -0
- mindsdb/integrations/utilities/date_utils.py +79 -0
- mindsdb/integrations/utilities/handler_utils.py +70 -0
- mindsdb/integrations/utilities/handlers/__init__.py +0 -0
- mindsdb/integrations/utilities/handlers/api_utilities/__init__.py +1 -0
- mindsdb/integrations/utilities/handlers/api_utilities/microsoft/__init__.py +1 -0
- mindsdb/integrations/utilities/handlers/api_utilities/microsoft/ms_graph_api_utilities.py +138 -0
- mindsdb/integrations/utilities/handlers/auth_utilities/__init__.py +2 -0
- mindsdb/integrations/utilities/handlers/auth_utilities/exceptions.py +11 -0
- mindsdb/integrations/utilities/handlers/auth_utilities/google/__init__.py +2 -0
- mindsdb/integrations/utilities/handlers/auth_utilities/google/google_service_account_oauth_utilities.py +59 -0
- mindsdb/integrations/utilities/handlers/auth_utilities/google/google_user_oauth_utilities.py +108 -0
- mindsdb/integrations/utilities/handlers/auth_utilities/microsoft/__init__.py +1 -0
- mindsdb/integrations/utilities/handlers/auth_utilities/microsoft/ms_graph_api_auth_utilities.py +128 -0
- mindsdb/integrations/utilities/handlers/query_utilities/__init__.py +4 -0
- mindsdb/integrations/utilities/handlers/query_utilities/base_query_utilities.py +63 -0
- mindsdb/integrations/utilities/handlers/query_utilities/delete_query_utilities.py +44 -0
- mindsdb/integrations/utilities/handlers/query_utilities/exceptions.py +17 -0
- mindsdb/integrations/utilities/handlers/query_utilities/insert_query_utilities.py +71 -0
- mindsdb/integrations/utilities/handlers/query_utilities/select_query_utilities.py +134 -0
- mindsdb/integrations/utilities/handlers/query_utilities/update_query_utilities.py +67 -0
- mindsdb/integrations/utilities/handlers/validation_utilities/__init__.py +1 -0
- mindsdb/integrations/utilities/handlers/validation_utilities/parameter_validation_utilities.py +18 -0
- mindsdb/integrations/utilities/install.py +134 -0
- mindsdb/integrations/utilities/query_traversal.py +239 -0
- mindsdb/integrations/utilities/rag/__init__.py +0 -0
- mindsdb/integrations/utilities/rag/chains/__init__.py +0 -0
- mindsdb/integrations/utilities/rag/chains/map_reduce_summarizer_chain.py +218 -0
- mindsdb/integrations/utilities/rag/config_loader.py +77 -0
- mindsdb/integrations/utilities/rag/loaders/__init__.py +0 -0
- mindsdb/integrations/utilities/rag/loaders/file_loader.py +44 -0
- mindsdb/integrations/utilities/rag/loaders/vector_store_loader/MDBVectorStore.py +54 -0
- mindsdb/integrations/utilities/rag/loaders/vector_store_loader/__init__.py +0 -0
- mindsdb/integrations/utilities/rag/loaders/vector_store_loader/pgvector.py +84 -0
- mindsdb/integrations/utilities/rag/loaders/vector_store_loader/vector_store_loader.py +60 -0
- mindsdb/integrations/utilities/rag/pipelines/__init__.py +0 -0
- mindsdb/integrations/utilities/rag/pipelines/rag.py +253 -0
- mindsdb/integrations/utilities/rag/rag_pipeline_builder.py +83 -0
- mindsdb/integrations/utilities/rag/rerankers/__init__.py +0 -0
- mindsdb/integrations/utilities/rag/rerankers/reranker_compressor.py +156 -0
- mindsdb/integrations/utilities/rag/retrievers/__init__.py +0 -0
- mindsdb/integrations/utilities/rag/retrievers/auto_retriever.py +117 -0
- mindsdb/integrations/utilities/rag/retrievers/base.py +10 -0
- mindsdb/integrations/utilities/rag/retrievers/multi_vector_retriever.py +101 -0
- mindsdb/integrations/utilities/rag/retrievers/sql_retriever.py +149 -0
- mindsdb/integrations/utilities/rag/settings.py +511 -0
- mindsdb/integrations/utilities/rag/splitters/__init__.py +0 -0
- mindsdb/integrations/utilities/rag/splitters/file_splitter.py +132 -0
- mindsdb/integrations/utilities/rag/utils.py +52 -0
- mindsdb/integrations/utilities/rag/vector_store.py +99 -0
- mindsdb/integrations/utilities/sql_utils.py +224 -0
- mindsdb/integrations/utilities/test_utils.py +30 -0
- mindsdb/integrations/utilities/time_series_utils.py +191 -0
- mindsdb/integrations/utilities/utils.py +32 -0
- mindsdb/interfaces/__init__.py +1 -0
- mindsdb/interfaces/agents/__init__.py +0 -0
- mindsdb/interfaces/agents/agents_controller.py +435 -0
- mindsdb/interfaces/agents/callback_handlers.py +130 -0
- mindsdb/interfaces/agents/constants.py +179 -0
- mindsdb/interfaces/agents/langchain_agent.py +676 -0
- mindsdb/interfaces/agents/langfuse_callback_handler.py +163 -0
- mindsdb/interfaces/agents/mindsdb_chat_model.py +196 -0
- mindsdb/interfaces/agents/mindsdb_database_agent.py +54 -0
- mindsdb/interfaces/agents/safe_output_parser.py +51 -0
- mindsdb/interfaces/chatbot/__init__.py +1 -0
- mindsdb/interfaces/chatbot/chatbot_controller.py +409 -0
- mindsdb/interfaces/chatbot/chatbot_executor.py +226 -0
- mindsdb/interfaces/chatbot/chatbot_task.py +174 -0
- mindsdb/interfaces/chatbot/memory.py +223 -0
- mindsdb/interfaces/chatbot/model_executor.py +107 -0
- mindsdb/interfaces/chatbot/polling.py +233 -0
- mindsdb/interfaces/chatbot/types.py +38 -0
- mindsdb/interfaces/database/__init__.py +0 -0
- mindsdb/interfaces/database/database.py +122 -0
- mindsdb/interfaces/database/integrations.py +931 -0
- mindsdb/interfaces/database/log.py +297 -0
- mindsdb/interfaces/database/projects.py +397 -0
- mindsdb/interfaces/database/views.py +139 -0
- mindsdb/interfaces/file/__init__.py +0 -0
- mindsdb/interfaces/file/file_controller.py +146 -0
- mindsdb/interfaces/functions/__init__.py +0 -0
- mindsdb/interfaces/functions/controller.py +207 -0
- mindsdb/interfaces/jobs/__init__.py +0 -0
- mindsdb/interfaces/jobs/jobs_controller.py +549 -0
- mindsdb/interfaces/jobs/scheduler.py +143 -0
- mindsdb/interfaces/knowledge_base/__init__.py +0 -0
- mindsdb/interfaces/knowledge_base/controller.py +899 -0
- mindsdb/interfaces/knowledge_base/preprocessing/__init__.py +0 -0
- mindsdb/interfaces/knowledge_base/preprocessing/constants.py +13 -0
- mindsdb/interfaces/knowledge_base/preprocessing/document_loader.py +176 -0
- mindsdb/interfaces/knowledge_base/preprocessing/document_preprocessor.py +401 -0
- mindsdb/interfaces/knowledge_base/preprocessing/models.py +108 -0
- mindsdb/interfaces/model/__init__.py +0 -0
- mindsdb/interfaces/model/functions.py +155 -0
- mindsdb/interfaces/model/model_controller.py +488 -0
- mindsdb/interfaces/query_context/__init__.py +0 -0
- mindsdb/interfaces/query_context/context_controller.py +289 -0
- mindsdb/interfaces/query_context/last_query.py +266 -0
- mindsdb/interfaces/skills/__init__.py +1 -0
- mindsdb/interfaces/skills/custom/__init__.py +0 -0
- mindsdb/interfaces/skills/custom/text2sql/__init__.py +0 -0
- mindsdb/interfaces/skills/custom/text2sql/mindsdb_sql_tool.py +37 -0
- mindsdb/interfaces/skills/custom/text2sql/mindsdb_sql_toolkit.py +88 -0
- mindsdb/interfaces/skills/retrieval_tool.py +110 -0
- mindsdb/interfaces/skills/skill_tool.py +255 -0
- mindsdb/interfaces/skills/skills_controller.py +175 -0
- mindsdb/interfaces/skills/sql_agent.py +256 -0
- mindsdb/interfaces/storage/__init__.py +1 -0
- mindsdb/interfaces/storage/db.py +597 -0
- mindsdb/interfaces/storage/fs.py +631 -0
- mindsdb/interfaces/storage/json.py +97 -0
- mindsdb/interfaces/storage/model_fs.py +282 -0
- mindsdb/interfaces/tabs/__init__.py +0 -0
- mindsdb/interfaces/tabs/tabs_controller.py +291 -0
- mindsdb/interfaces/tasks/__init__.py +0 -0
- mindsdb/interfaces/tasks/task.py +16 -0
- mindsdb/interfaces/tasks/task_monitor.py +150 -0
- mindsdb/interfaces/tasks/task_thread.py +55 -0
- mindsdb/interfaces/triggers/__init__.py +0 -0
- mindsdb/interfaces/triggers/trigger_task.py +95 -0
- mindsdb/interfaces/triggers/triggers_controller.py +167 -0
- mindsdb/metrics/__init__.py +0 -0
- mindsdb/metrics/metrics.py +50 -0
- mindsdb/metrics/server.py +26 -0
- mindsdb/migrations/__init__.py +0 -0
- mindsdb/migrations/alembic.ini +65 -0
- mindsdb/migrations/env.py +87 -0
- mindsdb/migrations/migrate.py +53 -0
- mindsdb/migrations/versions/2021-11-30_17c3d2384711_init.py +178 -0
- mindsdb/migrations/versions/2022-01-26_47f97b83cee4_views.py +38 -0
- mindsdb/migrations/versions/2022-02-09_27c5aca9e47e_db_files.py +256 -0
- mindsdb/migrations/versions/2022-05-25_d74c189b87e6_predictor_integration.py +156 -0
- mindsdb/migrations/versions/2022-07-08_999bceb904df_integration_args.py +106 -0
- mindsdb/migrations/versions/2022-07-15_b5b53e0ea7f8_training_data_rows_columns_count.py +29 -0
- mindsdb/migrations/versions/2022-07-22_6e834843e7e9_training_time.py +33 -0
- mindsdb/migrations/versions/2022-08-19_976f15a37e6a_predictors_versioning.py +42 -0
- mindsdb/migrations/versions/2022-08-25_6a54ba55872e_view_integration.py +36 -0
- mindsdb/migrations/versions/2022-08-29_473e8f239481_straighten.py +81 -0
- mindsdb/migrations/versions/2022-09-06_96d5fef10caa_data_integration_id.py +69 -0
- mindsdb/migrations/versions/2022-09-08_87b2df2b83e1_predictor_status.py +74 -0
- mindsdb/migrations/versions/2022-09-19_3d5e70105df7_content_storage.py +59 -0
- mindsdb/migrations/versions/2022-09-29_cada7d2be947_json_storage.py +90 -0
- mindsdb/migrations/versions/2022-10-14_43c52d23845a_projects.py +115 -0
- mindsdb/migrations/versions/2022-11-07_1e60096fc817_predictor_version.py +66 -0
- mindsdb/migrations/versions/2022-11-11_d429095b570f_data_integration_id.py +106 -0
- mindsdb/migrations/versions/2022-12-26_459218b0844c_fix_unique_constraint.py +34 -0
- mindsdb/migrations/versions/2023-02-02_b6d0a47294ac_jobs.py +56 -0
- mindsdb/migrations/versions/2023-02-17_ee63d868fa84_predictor_integration_null.py +42 -0
- mindsdb/migrations/versions/2023-02-25_3154382dab17_training_progress.py +36 -0
- mindsdb/migrations/versions/2023-02-27_ef04cdbe51ed_jobs_user_class.py +33 -0
- mindsdb/migrations/versions/2023-04-11_b8be148dbc85_jobs_history_query.py +35 -0
- mindsdb/migrations/versions/2023-05-24_6d748f2c7b0b_remove_streams.py +46 -0
- mindsdb/migrations/versions/2023-05-31_aaecd7012a78_chatbot.py +41 -0
- mindsdb/migrations/versions/2023-06-16_9d6271bb2c38_update_chat_bots_table.py +28 -0
- mindsdb/migrations/versions/2023-06-19_b5bf593ba659_create_chat_bots_history_table.py +35 -0
- mindsdb/migrations/versions/2023-06-27_607709e1615b_update_project_names.py +60 -0
- mindsdb/migrations/versions/2023-07-13_a57506731839_triggers.py +54 -0
- mindsdb/migrations/versions/2023-07-19_ad04ee0bd385_chatbot_to_task.py +38 -0
- mindsdb/migrations/versions/2023-08-29_b0382f5be48d_predictor_hostname.py +26 -0
- mindsdb/migrations/versions/2023-08-31_4c26ad04eeaa_add_skills_table.py +32 -0
- mindsdb/migrations/versions/2023-09-06_d44ab65a6a35_add_agents_table.py +35 -0
- mindsdb/migrations/versions/2023-09-06_e187961e844a_add_agent_skills_table.py +29 -0
- mindsdb/migrations/versions/2023-09-18_011e6f2dd9c2_backfill_agent_id.py +82 -0
- mindsdb/migrations/versions/2023-09-18_f16d4ab03091_add_agent_id.py +28 -0
- mindsdb/migrations/versions/2023-09-20_309db3d07cf4_add_knowledge_base.py +54 -0
- mindsdb/migrations/versions/2023-10-03_6cb02dfd7f61_query_context.py +38 -0
- mindsdb/migrations/versions/2023-11-01_c67822e96833_jobs_active.py +33 -0
- mindsdb/migrations/versions/2023-12-25_4b3c9d63e89c_predictor_index.py +44 -0
- mindsdb/migrations/versions/2024-02-02_5a5c49313e52_job_condition.py +32 -0
- mindsdb/migrations/versions/2024-02-12_9461892bd889_llm_log.py +44 -0
- mindsdb/migrations/versions/2024-04-25_2958416fbe75_drop_semaphor.py +36 -0
- mindsdb/migrations/versions/2024-06-06_cbedc4968d5d_store_llm_data.py +34 -0
- mindsdb/migrations/versions/2024-07-09_bfc6f44f5bc9_agent_model_optional.py +50 -0
- mindsdb/migrations/versions/2024-07-19_45eb2eb61f70_add_provider_to_agent.py +47 -0
- mindsdb/migrations/versions/2024-08-12_8e17ff6b75e9_agents_deleted_at.py +42 -0
- mindsdb/migrations/versions/2024-10-07_6c57ed39a82b_added_webhook_token_to_chat_bots.py +27 -0
- mindsdb/migrations/versions/2024-11-15_9d559f68d535_add_llm_log_columns.py +41 -0
- mindsdb/migrations/versions/2024-11-19_0f89b523f346_agent_skills_parameters.py +28 -0
- mindsdb/migrations/versions/2024-11-28_a8a3fac369e7_llm_log_json_in_out.py +103 -0
- mindsdb/migrations/versions/2024-11-29_f6dc924079fa_predictor_training_metadata.py +44 -0
- mindsdb/migrations/versions/__init__.py +0 -0
- mindsdb/utilities/__init__.py +0 -0
- mindsdb/utilities/auth.py +73 -0
- mindsdb/utilities/cache.py +282 -0
- mindsdb/utilities/config.py +530 -0
- mindsdb/utilities/context.py +57 -0
- mindsdb/utilities/context_executor.py +59 -0
- mindsdb/utilities/exception.py +29 -0
- mindsdb/utilities/fs.py +153 -0
- mindsdb/utilities/functions.py +197 -0
- mindsdb/utilities/hooks/__init__.py +34 -0
- mindsdb/utilities/hooks/profiling.py +74 -0
- mindsdb/utilities/json_encoder.py +33 -0
- mindsdb/utilities/log.py +97 -0
- mindsdb/utilities/log_controller.py +39 -0
- mindsdb/utilities/ml_task_queue/__init__.py +57 -0
- mindsdb/utilities/ml_task_queue/base.py +14 -0
- mindsdb/utilities/ml_task_queue/const.py +26 -0
- mindsdb/utilities/ml_task_queue/consumer.py +252 -0
- mindsdb/utilities/ml_task_queue/producer.py +81 -0
- mindsdb/utilities/ml_task_queue/task.py +82 -0
- mindsdb/utilities/ml_task_queue/utils.py +124 -0
- mindsdb/utilities/otel.py +72 -0
- mindsdb/utilities/profiler/__init__.py +19 -0
- mindsdb/utilities/profiler/profiler.py +144 -0
- mindsdb/utilities/ps.py +78 -0
- mindsdb/utilities/render/__init__.py +0 -0
- mindsdb/utilities/render/sqlalchemy_render.py +831 -0
- mindsdb/utilities/security.py +54 -0
- mindsdb/utilities/sentry.py +46 -0
- mindsdb/utilities/telemetry.py +44 -0
- mindsdb/utilities/wizards.py +49 -0
- MindsDB-1.3.1.dist-info/LICENSE +0 -21
- MindsDB-1.3.1.dist-info/METADATA +0 -112
- MindsDB-1.3.1.dist-info/RECORD +0 -55
- mindsdb/config/__init__.py +0 -32
- mindsdb/config/helpers.py +0 -21
- mindsdb/external_libs/stats.py +0 -61
- mindsdb/libs/__init__.py +0 -6
- mindsdb/libs/backends/lightwood.py +0 -180
- mindsdb/libs/backends/ludwig.py +0 -456
- mindsdb/libs/constants/mindsdb.py +0 -81
- mindsdb/libs/controllers/predictor.py +0 -583
- mindsdb/libs/controllers/transaction.py +0 -254
- mindsdb/libs/data_sources/file_ds.py +0 -196
- mindsdb/libs/data_types/data_source.py +0 -59
- mindsdb/libs/data_types/mindsdb_logger.py +0 -127
- mindsdb/libs/data_types/probability_evaluation.py +0 -56
- mindsdb/libs/data_types/transaction_data.py +0 -15
- mindsdb/libs/data_types/transaction_output_data.py +0 -29
- mindsdb/libs/data_types/transaction_output_row.py +0 -35
- mindsdb/libs/helpers/explain_prediction.py +0 -114
- mindsdb/libs/helpers/file_helpers.py +0 -66
- mindsdb/libs/helpers/general_helpers.py +0 -276
- mindsdb/libs/helpers/multi_data_source.py +0 -28
- mindsdb/libs/helpers/parser.py +0 -161
- mindsdb/libs/helpers/probabilistic_validator.py +0 -198
- mindsdb/libs/helpers/sqlite_helpers.py +0 -33
- mindsdb/libs/helpers/text_helpers.py +0 -79
- mindsdb/libs/helpers/train_helpers.py +0 -4
- mindsdb/libs/phases/base_module.py +0 -62
- mindsdb/libs/phases/data_extractor/data_extractor.py +0 -233
- mindsdb/libs/phases/data_transformer/data_transformer.py +0 -103
- mindsdb/libs/phases/model_analyzer/helpers/column_evaluator.py +0 -120
- mindsdb/libs/phases/model_analyzer/model_analyzer.py +0 -119
- mindsdb/libs/phases/model_interface/model_interface.py +0 -31
- mindsdb/libs/phases/stats_generator/scores.py +0 -377
- mindsdb/libs/phases/stats_generator/stats_generator.py +0 -691
- mindsdb/scraps.py +0 -133
- {MindsDB-1.3.1.dist-info → MindsDB-24.12.4.0.dist-info}/top_level.txt +0 -0
- /mindsdb/{external_libs → api}/__init__.py +0 -0
- /mindsdb/{libs/backends → api/common}/__init__.py +0 -0
- /mindsdb/{libs/constants → api/executor/data_types}/__init__.py +0 -0
- /mindsdb/{libs/controllers → api/executor/datahub/classes}/__init__.py +0 -0
- /mindsdb/{libs/data_sources → api/executor/sql_query}/__init__.py +0 -0
- /mindsdb/{libs/data_types → api/executor/utilities}/__init__.py +0 -0
- /mindsdb/{libs/helpers → api/http}/__init__.py +0 -0
- /mindsdb/{libs/phases → api/http/namespaces}/__init__.py +0 -0
- /mindsdb/{libs/phases/data_extractor → api/http/namespaces/configs}/__init__.py +0 -0
- /mindsdb/{libs/phases/data_transformer → api/mongo}/__init__.py +0 -0
- /mindsdb/{libs/phases/model_analyzer → api/mongo/utilities}/__init__.py +0 -0
- /mindsdb/{libs/phases/model_analyzer/helpers → api/mysql}/__init__.py +0 -0
- /mindsdb/{libs/phases/model_interface → api/mysql/mysql_proxy}/__init__.py +0 -0
- /mindsdb/{libs/phases/stats_generator → api/mysql/mysql_proxy/classes}/__init__.py +0 -0
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
import ast
|
|
2
|
+
from collections import defaultdict
|
|
3
|
+
from typing import List
|
|
4
|
+
|
|
5
|
+
import nltk
|
|
6
|
+
import pandas as pd
|
|
7
|
+
from nltk import word_tokenize
|
|
8
|
+
from nltk.translate.bleu_score import ( # todo investigate why this always returns 0, not used for now
|
|
9
|
+
sentence_bleu,
|
|
10
|
+
)
|
|
11
|
+
from nltk.translate.meteor_score import meteor_score
|
|
12
|
+
from rouge_score import rouge_scorer
|
|
13
|
+
from scipy.spatial import distance
|
|
14
|
+
|
|
15
|
+
from mindsdb.integrations.handlers.writer_handler.settings import (
|
|
16
|
+
WriterHandlerParameters,
|
|
17
|
+
)
|
|
18
|
+
from mindsdb.utilities import log
|
|
19
|
+
|
|
20
|
+
# todo use polars for this for speed
|
|
21
|
+
|
|
22
|
+
logger = log.getLogger(__name__)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class WriterEvaluator:
|
|
26
|
+
def __init__(self, args: WriterHandlerParameters, df: pd.DataFrame, rag):
|
|
27
|
+
|
|
28
|
+
self.args = args
|
|
29
|
+
self.df = df
|
|
30
|
+
self.rag = rag(self.args)
|
|
31
|
+
|
|
32
|
+
self.metric_map = {
|
|
33
|
+
"cosine_similarity": self.calculate_cosine_similarities,
|
|
34
|
+
"accuracy": self.get_matches,
|
|
35
|
+
"rouge": self.calculate_rouge,
|
|
36
|
+
"bleu": self.calculate_bleu,
|
|
37
|
+
"meteor": self.calculate_meteor,
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
self.retrieval_metrics = self.args.retrieval_evaluation_metrics
|
|
41
|
+
self.generator_metrics = self.args.generation_evaluation_metrics
|
|
42
|
+
|
|
43
|
+
self.mean_evaluation_metrics = defaultdict(list)
|
|
44
|
+
|
|
45
|
+
if args.evaluation_type == "e2e":
|
|
46
|
+
# todo check if this is fine for cloud, better to download once and load from disk
|
|
47
|
+
nltk.download("wordnet")
|
|
48
|
+
|
|
49
|
+
def calculate_retrieval_metrics(
|
|
50
|
+
self,
|
|
51
|
+
df: pd.DataFrame,
|
|
52
|
+
context_embeddings,
|
|
53
|
+
retrieved_context_embeddings,
|
|
54
|
+
prefix="retrieval_",
|
|
55
|
+
):
|
|
56
|
+
"""Calculate retrieval metrics"""
|
|
57
|
+
|
|
58
|
+
for metric in self.retrieval_metrics:
|
|
59
|
+
col_name = f"{prefix}{metric}"
|
|
60
|
+
if metric == "cosine_similarity":
|
|
61
|
+
df[col_name] = self.metric_map[metric](
|
|
62
|
+
context_embeddings, retrieved_context_embeddings
|
|
63
|
+
)
|
|
64
|
+
elif metric == "accuracy":
|
|
65
|
+
col_name = f"{prefix}match"
|
|
66
|
+
df[col_name] = self.get_matches(
|
|
67
|
+
gt_embeddings=context_embeddings,
|
|
68
|
+
test_embeddings=retrieved_context_embeddings,
|
|
69
|
+
threshold=self.args.retriever_match_threshold,
|
|
70
|
+
)
|
|
71
|
+
else:
|
|
72
|
+
raise ValueError(f"metric {metric} not supported")
|
|
73
|
+
|
|
74
|
+
self.store_mean_metric(col_name=col_name, mean_metric=df[col_name].mean())
|
|
75
|
+
|
|
76
|
+
return df
|
|
77
|
+
|
|
78
|
+
def calculate_generation_metrics(
|
|
79
|
+
self,
|
|
80
|
+
df: pd.DataFrame,
|
|
81
|
+
generated_answer_embeddings,
|
|
82
|
+
reference_answer_embeddings,
|
|
83
|
+
prefix="generator_",
|
|
84
|
+
):
|
|
85
|
+
"""Calculate generation metrics"""
|
|
86
|
+
|
|
87
|
+
for metric in self.generator_metrics:
|
|
88
|
+
col_name = f"{prefix}{metric}"
|
|
89
|
+
if metric == "cosine_similarity":
|
|
90
|
+
|
|
91
|
+
df[col_name] = self.calculate_cosine_similarities(
|
|
92
|
+
generated_answer_embeddings, reference_answer_embeddings
|
|
93
|
+
)
|
|
94
|
+
elif metric == "accuracy":
|
|
95
|
+
col_name = f"{prefix}match"
|
|
96
|
+
df[col_name] = self.get_matches(
|
|
97
|
+
gt_embeddings=reference_answer_embeddings,
|
|
98
|
+
test_embeddings=generated_answer_embeddings,
|
|
99
|
+
threshold=self.args.generator_match_threshold,
|
|
100
|
+
)
|
|
101
|
+
elif metric == "rouge":
|
|
102
|
+
df[col_name] = df.apply(
|
|
103
|
+
lambda x: self.metric_map[metric](
|
|
104
|
+
x["generated_answers"], x["reference_answers"]
|
|
105
|
+
),
|
|
106
|
+
axis=1,
|
|
107
|
+
)
|
|
108
|
+
self.extract_rogue_scores(df, rogue_scores_col=col_name)
|
|
109
|
+
elif metric == "bleu":
|
|
110
|
+
df[col_name] = df.apply(
|
|
111
|
+
lambda x: self.metric_map[metric](
|
|
112
|
+
x["tokenized_generated_answers"],
|
|
113
|
+
x["tokenized_reference_answers"],
|
|
114
|
+
),
|
|
115
|
+
axis=1,
|
|
116
|
+
)
|
|
117
|
+
elif metric == "meteor":
|
|
118
|
+
df[col_name] = df.apply(
|
|
119
|
+
lambda x: self.calculate_meteor(
|
|
120
|
+
x["tokenized_generated_answers"],
|
|
121
|
+
x["tokenized_reference_answers"],
|
|
122
|
+
),
|
|
123
|
+
axis=1,
|
|
124
|
+
)
|
|
125
|
+
else:
|
|
126
|
+
raise ValueError(f"metric {metric} not supported")
|
|
127
|
+
|
|
128
|
+
if metric != "rouge":
|
|
129
|
+
|
|
130
|
+
self.store_mean_metric(
|
|
131
|
+
col_name=col_name, mean_metric=df[col_name].mean()
|
|
132
|
+
)
|
|
133
|
+
|
|
134
|
+
return df
|
|
135
|
+
|
|
136
|
+
def embed_texts(self, texts: List[str]) -> List[list]:
|
|
137
|
+
"""Embed a list of texts"""
|
|
138
|
+
return self.rag.embeddings_model.embed_documents(texts)
|
|
139
|
+
|
|
140
|
+
def query_vector_store(self, question: str) -> List:
|
|
141
|
+
"""Query the vector store"""
|
|
142
|
+
return self.rag.query_vector_store(question)
|
|
143
|
+
|
|
144
|
+
@staticmethod
|
|
145
|
+
def extract_returned_text(vector_store_response: List) -> List:
|
|
146
|
+
# todo: this is a hack, we need to fix this so it works with multiple context ie top_k>1
|
|
147
|
+
# todo handle empty response
|
|
148
|
+
return [doc.page_content for doc in vector_store_response][0]
|
|
149
|
+
|
|
150
|
+
def evaluation_prompt(self, question: str, context: str):
|
|
151
|
+
"""Create prompt for evaluating RAG"""
|
|
152
|
+
|
|
153
|
+
if self.args.summarize_context:
|
|
154
|
+
|
|
155
|
+
return self.rag.summarize_context(
|
|
156
|
+
question=question, combined_context=context
|
|
157
|
+
)
|
|
158
|
+
|
|
159
|
+
return self.rag.prompt_template.format(question=question, context=context)
|
|
160
|
+
|
|
161
|
+
def get_evaluation_prompts(self, df: pd.DataFrame) -> List[str]:
|
|
162
|
+
"""Create prompts for each question and context pair in the dataframe"""
|
|
163
|
+
return [
|
|
164
|
+
self.evaluation_prompt(question, context)
|
|
165
|
+
for question, context in zip(df["question"], df["retrieved_context"])
|
|
166
|
+
]
|
|
167
|
+
|
|
168
|
+
def extract_generated_texts(self, responses: List[str]):
|
|
169
|
+
"""Extract generated text from LLM response"""
|
|
170
|
+
|
|
171
|
+
results = []
|
|
172
|
+
for i, item in enumerate(responses):
|
|
173
|
+
|
|
174
|
+
text = self.rag.extract_generated_text(item)
|
|
175
|
+
|
|
176
|
+
results.append(text)
|
|
177
|
+
return results
|
|
178
|
+
|
|
179
|
+
@staticmethod
|
|
180
|
+
def extract_reference_answers(df: pd.DataFrame) -> List[str]:
|
|
181
|
+
"""Get reference answers for each question in the dataframe"""
|
|
182
|
+
|
|
183
|
+
# todo: this is a hack, we need to fix this so it works with multiple answers ie top_k>1
|
|
184
|
+
answers = df["answers"].tolist()
|
|
185
|
+
extracted_answers = []
|
|
186
|
+
|
|
187
|
+
for answer in answers:
|
|
188
|
+
try:
|
|
189
|
+
extracted_answers.append(ast.literal_eval(answer)["text"][0])
|
|
190
|
+
except IndexError as e:
|
|
191
|
+
logger.error(e)
|
|
192
|
+
extracted_answers.append("")
|
|
193
|
+
continue
|
|
194
|
+
|
|
195
|
+
return extracted_answers
|
|
196
|
+
|
|
197
|
+
@staticmethod
|
|
198
|
+
def _calculate_cosine_similarity(
|
|
199
|
+
gt_embeddings: List[float], test_embeddings: List[float]
|
|
200
|
+
) -> float:
|
|
201
|
+
"""Calculate cosine similarity between a context and retrieved context embedding"""
|
|
202
|
+
cosine_sim = 1 - distance.cosine(gt_embeddings, test_embeddings)
|
|
203
|
+
|
|
204
|
+
return cosine_sim
|
|
205
|
+
|
|
206
|
+
def calculate_cosine_similarities(
|
|
207
|
+
self,
|
|
208
|
+
gt_embeddings: List[List[float]],
|
|
209
|
+
test_embeddings: List[List[float]],
|
|
210
|
+
):
|
|
211
|
+
"""Calculate cosine similarity for each ground truth and retrieved/generated pair for a given question"""
|
|
212
|
+
|
|
213
|
+
return [
|
|
214
|
+
self._calculate_cosine_similarity(
|
|
215
|
+
context_embedding, retrieved_context_embedding
|
|
216
|
+
)
|
|
217
|
+
for context_embedding, retrieved_context_embedding in zip(
|
|
218
|
+
gt_embeddings, test_embeddings
|
|
219
|
+
)
|
|
220
|
+
]
|
|
221
|
+
|
|
222
|
+
@staticmethod
|
|
223
|
+
def check_match(cosine_similarity: float, threshold: float = 0.7) -> int:
|
|
224
|
+
return int(cosine_similarity >= threshold)
|
|
225
|
+
|
|
226
|
+
def get_matches(
|
|
227
|
+
self, gt_embeddings, test_embeddings, threshold: float = 0.7
|
|
228
|
+
) -> List[int]:
|
|
229
|
+
"""Get matches for each ground truth and retrieved/generated pair for a given question"""
|
|
230
|
+
|
|
231
|
+
cosine_similarities = self.calculate_cosine_similarities(
|
|
232
|
+
gt_embeddings=gt_embeddings, test_embeddings=test_embeddings
|
|
233
|
+
)
|
|
234
|
+
|
|
235
|
+
matches = [
|
|
236
|
+
self.check_match(cosine_similarity, threshold=threshold)
|
|
237
|
+
for cosine_similarity in cosine_similarities
|
|
238
|
+
]
|
|
239
|
+
|
|
240
|
+
return matches
|
|
241
|
+
|
|
242
|
+
@staticmethod
|
|
243
|
+
def _tokenize(text: str) -> List[str]:
|
|
244
|
+
"""Tokenize a text"""
|
|
245
|
+
return word_tokenize(text)
|
|
246
|
+
|
|
247
|
+
@staticmethod
|
|
248
|
+
def calculate_rouge(generated: str, reference: str) -> dict:
|
|
249
|
+
|
|
250
|
+
scorer = rouge_scorer.RougeScorer(["rouge1", "rougeL"], use_stemmer=True)
|
|
251
|
+
score = scorer.score(generated, reference)
|
|
252
|
+
return score
|
|
253
|
+
|
|
254
|
+
def extract_rogue_scores(
|
|
255
|
+
self, df: pd.DataFrame, rogue_scores_col: str = "rouge_scores"
|
|
256
|
+
):
|
|
257
|
+
"""Extract rouge scores from dataframe"""
|
|
258
|
+
rouge_metrics = ["rouge1", "rougeL"]
|
|
259
|
+
supported_metrics = ["precision", "recall", "fmeasure"]
|
|
260
|
+
|
|
261
|
+
for rouge_metric in rouge_metrics:
|
|
262
|
+
for supported_metric in supported_metrics:
|
|
263
|
+
col_name = f"{rouge_metric}_{supported_metric}"
|
|
264
|
+
df[col_name] = df.apply(
|
|
265
|
+
lambda x: getattr(
|
|
266
|
+
x[rogue_scores_col][rouge_metric], supported_metric
|
|
267
|
+
),
|
|
268
|
+
axis=1,
|
|
269
|
+
)
|
|
270
|
+
|
|
271
|
+
self.store_mean_metric(
|
|
272
|
+
col_name=col_name, mean_metric=df[col_name].mean()
|
|
273
|
+
)
|
|
274
|
+
|
|
275
|
+
def store_mean_metric(self, col_name: str, mean_metric: float):
|
|
276
|
+
"""Calculate mean metric for each metric"""
|
|
277
|
+
|
|
278
|
+
self.mean_evaluation_metrics[f"mean_{col_name}"].append(mean_metric)
|
|
279
|
+
|
|
280
|
+
@staticmethod
|
|
281
|
+
def calculate_bleu(
|
|
282
|
+
generated_tokens: List[str], reference_tokens: List[str]
|
|
283
|
+
) -> float:
|
|
284
|
+
return sentence_bleu([reference_tokens], generated_tokens)
|
|
285
|
+
|
|
286
|
+
@staticmethod
|
|
287
|
+
def calculate_meteor(
|
|
288
|
+
generated_tokens: List[str], reference_tokens: List[str]
|
|
289
|
+
) -> float:
|
|
290
|
+
return meteor_score([reference_tokens], generated_tokens)
|
|
291
|
+
|
|
292
|
+
def evaluate_retrieval(self):
|
|
293
|
+
"""Evaluate the retrieval model"""
|
|
294
|
+
|
|
295
|
+
df = self.df.copy(deep=True)
|
|
296
|
+
|
|
297
|
+
# get question answering results
|
|
298
|
+
df["retrieved_context"] = df.apply(
|
|
299
|
+
lambda x: self.extract_returned_text(
|
|
300
|
+
self.query_vector_store(x["question"])
|
|
301
|
+
),
|
|
302
|
+
axis=1,
|
|
303
|
+
)
|
|
304
|
+
|
|
305
|
+
# embed context and retrieved context
|
|
306
|
+
context_embeddings = self.embed_texts(df["context"].tolist())
|
|
307
|
+
retrieved_context_embeddings = self.embed_texts(
|
|
308
|
+
df["retrieved_context"].tolist()
|
|
309
|
+
)
|
|
310
|
+
|
|
311
|
+
df = self.calculate_retrieval_metrics(
|
|
312
|
+
df, context_embeddings, retrieved_context_embeddings
|
|
313
|
+
)
|
|
314
|
+
|
|
315
|
+
return df
|
|
316
|
+
|
|
317
|
+
def evaluate_generation(self, df: pd.DataFrame):
|
|
318
|
+
"""Evaluate the generation model, given the retrieval results df"""
|
|
319
|
+
|
|
320
|
+
prompts = self.get_evaluation_prompts(df)
|
|
321
|
+
|
|
322
|
+
raw_generated_answers = [self.rag.llm(prompt) for prompt in prompts]
|
|
323
|
+
|
|
324
|
+
generated_answers = self.extract_generated_texts(raw_generated_answers)
|
|
325
|
+
reference_answers = self.extract_reference_answers(df)
|
|
326
|
+
|
|
327
|
+
df["generated_answers"] = generated_answers
|
|
328
|
+
df["reference_answers"] = reference_answers
|
|
329
|
+
|
|
330
|
+
# tokenize generated and reference answers
|
|
331
|
+
df["tokenized_generated_answers"] = df.apply(
|
|
332
|
+
lambda x: self._tokenize(x["generated_answers"]), axis=1
|
|
333
|
+
)
|
|
334
|
+
df["tokenized_reference_answers"] = df.apply(
|
|
335
|
+
lambda x: self._tokenize(x["reference_answers"]), axis=1
|
|
336
|
+
)
|
|
337
|
+
|
|
338
|
+
# embed generated answers and reference answers
|
|
339
|
+
generated_answer_embeddings = self.embed_texts(generated_answers)
|
|
340
|
+
|
|
341
|
+
reference_answer_embeddings = self.embed_texts(reference_answers)
|
|
342
|
+
|
|
343
|
+
df = self.calculate_generation_metrics(
|
|
344
|
+
df, generated_answer_embeddings, reference_answer_embeddings
|
|
345
|
+
)
|
|
346
|
+
|
|
347
|
+
return df
|
|
348
|
+
|
|
349
|
+
def evaluate_e2e(self):
|
|
350
|
+
"""Evaluate the end-to-end evaluation"""
|
|
351
|
+
retrieval_df = self.evaluate_retrieval()
|
|
352
|
+
e2e_df = self.evaluate_generation(retrieval_df)
|
|
353
|
+
|
|
354
|
+
return e2e_df
|
|
355
|
+
|
|
356
|
+
def evaluate(self):
|
|
357
|
+
if self.args.evaluation_type == "retrieval":
|
|
358
|
+
return self.evaluate_retrieval()
|
|
359
|
+
elif self.args.evaluation_type == "e2e":
|
|
360
|
+
return self.evaluate_e2e()
|
|
361
|
+
else:
|
|
362
|
+
raise ValueError(f"evaluation_type must be either 'retrieval' or 'e2e'")
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_215_471)">
|
|
3
|
+
<path d="M18.6 0.100025C14.58 0.390025 10.78 1.85003 7.70004 4.31003C6.74004 5.06003 4.89004 6.93003 4.19004 7.85003C2.07004 10.61 0.720042 13.87 0.250042 17.4C-0.0299581 19.47 0.100042 22.55 0.560042 24.5C2.10004 31.04 7.08004 36.6 13.35 38.77C15.51 39.51 17.49 39.82 20.14 39.83C22.02 39.84 22.25 39.82 23.71 39.52C25.71 39.11 27.15 38.64 28.65 37.9C30.95 36.78 32.41 35.69 34.41 33.63C36.96 30.99 38.55 28.11 39.4 24.55C40.39 20.41 39.89 15.46 38.09 11.62C36.76 8.77003 34.82 6.36003 32.15 4.24003C28.39 1.25003 23.48 -0.249975 18.6 0.100025ZM15.1 15.6C15.42 16.89 16.02 19.39 16.45 21.15C16.87 22.91 17.44 25.25 17.71 26.35C17.98 27.45 18.2 28.41 18.2 28.47C18.2 28.57 17.6 28.6 15.55 28.6C13.51 28.6 12.88 28.57 12.85 28.47C12.83 28.41 12.59 27.4 12.31 26.25C11.78 24.04 10.52 18.83 9.69004 15.42C9.42004 14.3 9.20004 13.34 9.20004 13.29C9.20004 13.23 10.28 13.21 11.86 13.22L14.53 13.25L15.1 15.6ZM22.97 14.2C23.09 14.72 23.42 16.07 23.7 17.2C23.97 18.33 24.4 20.1 24.65 21.15C24.91 22.19 25.4 24.24 25.76 25.7C26.11 27.16 26.4 28.41 26.4 28.47C26.4 28.57 25.8 28.6 23.75 28.6H21.11L21.01 28.22C20.95 28.02 20.64 26.72 20.3 25.35C19.13 20.51 18.7 18.72 18.05 16.07C17.69 14.59 17.4 13.35 17.4 13.29C17.4 13.23 18.41 13.21 20.07 13.22L22.74 13.25L22.97 14.2ZM30.9 13.24C30.9 13.34 28.29 24.05 28.25 24.08C28.23 24.1 28.18 24.02 28.15 23.89C28.12 23.76 27.92 22.93 27.71 22.05C27.49 21.17 27.22 20.04 27.1 19.55C26.98 19.05 26.59 17.46 26.24 16.01C25.89 14.56 25.6 13.34 25.6 13.29C25.6 13.24 26.77 13.2 28.25 13.2C29.71 13.2 30.9 13.22 30.9 13.24Z" fill="black"/>
|
|
4
|
+
</g>
|
|
5
|
+
<defs>
|
|
6
|
+
<clipPath id="clip0_215_471">
|
|
7
|
+
<rect width="40" height="40" fill="white"/>
|
|
8
|
+
</clipPath>
|
|
9
|
+
</defs>
|
|
10
|
+
</svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import pandas as pd
|
|
2
|
+
|
|
3
|
+
from mindsdb.integrations.handlers.rag_handler.ingest import RAGIngestor
|
|
4
|
+
from mindsdb.integrations.handlers.writer_handler.settings import (
|
|
5
|
+
WriterHandlerParameters,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class WriterIngestor(RAGIngestor):
|
|
10
|
+
def __init__(self, args: WriterHandlerParameters, df: pd.DataFrame):
|
|
11
|
+
super().__init__(args, df)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from langchain_community.llms import Writer
|
|
2
|
+
|
|
3
|
+
from mindsdb.integrations.handlers.rag_handler.rag import RAGQuestionAnswerer
|
|
4
|
+
from mindsdb.integrations.handlers.writer_handler.settings import (
|
|
5
|
+
WriterHandlerParameters,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class QuestionAnswerer(RAGQuestionAnswerer):
|
|
10
|
+
def __init__(self, args: WriterHandlerParameters):
|
|
11
|
+
|
|
12
|
+
super().__init__(args)
|
|
13
|
+
|
|
14
|
+
self.llm = Writer(**args.llm_params.model_dump())
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
from typing import List, Union
|
|
2
|
+
from pydantic import BaseModel, Extra, field_validator
|
|
3
|
+
|
|
4
|
+
from mindsdb.integrations.handlers.rag_handler.settings import (
|
|
5
|
+
DEFAULT_EMBEDDINGS_MODEL,
|
|
6
|
+
RAGBaseParameters,
|
|
7
|
+
)
|
|
8
|
+
from langchain_core.callbacks import StreamingStdOutCallbackHandler
|
|
9
|
+
|
|
10
|
+
EVAL_COLUMN_NAMES = (
|
|
11
|
+
"question",
|
|
12
|
+
"answers",
|
|
13
|
+
"context",
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
SUPPORTED_EVALUATION_TYPES = ("retrieval", "e2e")
|
|
17
|
+
|
|
18
|
+
GENERATION_METRICS = ("rouge", "meteor", "cosine_similarity", "accuracy")
|
|
19
|
+
RETRIEVAL_METRICS = ("cosine_similarity", "accuracy")
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# todo make a separate class for evaluation parameters
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class WriterLLMParameters(BaseModel):
|
|
26
|
+
"""Model parameters for the Writer LLM API interface"""
|
|
27
|
+
|
|
28
|
+
writer_api_key: str
|
|
29
|
+
writer_org_id: str = None
|
|
30
|
+
base_url: str = None
|
|
31
|
+
model_id: str = "palmyra-x"
|
|
32
|
+
callbacks: List[StreamingStdOutCallbackHandler] = [StreamingStdOutCallbackHandler()]
|
|
33
|
+
max_tokens: int = 1024
|
|
34
|
+
temperature: float = 0.0
|
|
35
|
+
top_p: float = 1
|
|
36
|
+
stop: List[str] = []
|
|
37
|
+
best_of: int = 5
|
|
38
|
+
verbose: bool = False
|
|
39
|
+
|
|
40
|
+
class Config:
|
|
41
|
+
extra = Extra.forbid
|
|
42
|
+
arbitrary_types_allowed = True
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class WriterHandlerParameters(RAGBaseParameters):
|
|
46
|
+
"""Model parameters for create model"""
|
|
47
|
+
|
|
48
|
+
llm_params: WriterLLMParameters
|
|
49
|
+
generation_evaluation_metrics: List[str] = list(GENERATION_METRICS)
|
|
50
|
+
retrieval_evaluation_metrics: List[str] = list(RETRIEVAL_METRICS)
|
|
51
|
+
evaluation_type: str = "e2e"
|
|
52
|
+
n_rows_evaluation: int = None # if None, evaluate on all rows
|
|
53
|
+
retriever_match_threshold: float = 0.7
|
|
54
|
+
generator_match_threshold: float = 0.8
|
|
55
|
+
evaluate_dataset: Union[List[dict], str] = "squad_v2_val_100_sample"
|
|
56
|
+
|
|
57
|
+
class Config:
|
|
58
|
+
extra = Extra.forbid
|
|
59
|
+
arbitrary_types_allowed = True
|
|
60
|
+
use_enum_values = True
|
|
61
|
+
|
|
62
|
+
@field_validator("generation_evaluation_metrics")
|
|
63
|
+
def generation_evaluation_metrics_must_be_supported(cls, v):
|
|
64
|
+
for metric in v:
|
|
65
|
+
if metric not in GENERATION_METRICS:
|
|
66
|
+
raise ValueError(
|
|
67
|
+
f"generation_evaluation_metrics must be one of {', '.join(str(v) for v in GENERATION_METRICS)}, got {metric}"
|
|
68
|
+
)
|
|
69
|
+
return v
|
|
70
|
+
|
|
71
|
+
@field_validator("retrieval_evaluation_metrics")
|
|
72
|
+
def retrieval_evaluation_metrics_must_be_supported(cls, v):
|
|
73
|
+
for metric in v:
|
|
74
|
+
if metric not in GENERATION_METRICS:
|
|
75
|
+
raise ValueError(
|
|
76
|
+
f"retrieval_evaluation_metrics must be one of {', '.join(str(v) for v in RETRIEVAL_METRICS)}, got {metric}"
|
|
77
|
+
)
|
|
78
|
+
return v
|
|
79
|
+
|
|
80
|
+
@field_validator("evaluation_type")
|
|
81
|
+
def evaluation_type_must_be_supported(cls, v):
|
|
82
|
+
if v not in SUPPORTED_EVALUATION_TYPES:
|
|
83
|
+
raise ValueError(
|
|
84
|
+
f"evaluation_type must be one of `retrieval` or `e2e`, got {v}"
|
|
85
|
+
)
|
|
86
|
+
return v
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
from typing import Dict, Optional
|
|
2
|
+
|
|
3
|
+
import pandas as pd
|
|
4
|
+
|
|
5
|
+
from mindsdb.integrations.handlers.writer_handler.evaluate import WriterEvaluator
|
|
6
|
+
from mindsdb.integrations.handlers.writer_handler.ingest import WriterIngestor
|
|
7
|
+
from mindsdb.integrations.handlers.writer_handler.rag import QuestionAnswerer
|
|
8
|
+
from mindsdb.integrations.handlers.writer_handler.settings import (
|
|
9
|
+
DEFAULT_EMBEDDINGS_MODEL,
|
|
10
|
+
EVAL_COLUMN_NAMES,
|
|
11
|
+
WriterHandlerParameters,
|
|
12
|
+
WriterLLMParameters,
|
|
13
|
+
)
|
|
14
|
+
from mindsdb.integrations.libs.base import BaseMLEngine
|
|
15
|
+
from mindsdb.integrations.utilities.datasets.dataset import (
|
|
16
|
+
load_dataset,
|
|
17
|
+
validate_dataframe,
|
|
18
|
+
)
|
|
19
|
+
from mindsdb.utilities import log
|
|
20
|
+
|
|
21
|
+
# these require no additional arguments
|
|
22
|
+
|
|
23
|
+
logger = log.getLogger(__name__)
|
|
24
|
+
|
|
25
|
+
def extract_llm_params(args):
|
|
26
|
+
"""extract llm params from input query args"""
|
|
27
|
+
|
|
28
|
+
llm_params = {}
|
|
29
|
+
for param in WriterLLMParameters.model_fields:
|
|
30
|
+
if param in args:
|
|
31
|
+
llm_params[param] = args.pop(param)
|
|
32
|
+
|
|
33
|
+
args["llm_params"] = llm_params
|
|
34
|
+
|
|
35
|
+
return args
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class WriterHandler(BaseMLEngine):
|
|
39
|
+
"""
|
|
40
|
+
WriterHandler is a MindsDB integration with Writer API LLMs that allows users to run question answering
|
|
41
|
+
on their data by providing a question.
|
|
42
|
+
|
|
43
|
+
The User is able to provide data that provides context for the questions, see create() method for more details.
|
|
44
|
+
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
name = "writer"
|
|
48
|
+
|
|
49
|
+
def __init__(self, *args, **kwargs):
|
|
50
|
+
super().__init__(*args, **kwargs)
|
|
51
|
+
self.generative = True
|
|
52
|
+
|
|
53
|
+
@staticmethod
|
|
54
|
+
def create_validation(target, args=None, **kwargs):
|
|
55
|
+
if "using" not in args:
|
|
56
|
+
raise Exception(
|
|
57
|
+
"Writer engine requires a USING clause! Refer to its documentation for more details."
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
def create(
|
|
61
|
+
self,
|
|
62
|
+
target: str,
|
|
63
|
+
df: pd.DataFrame = pd.DataFrame(),
|
|
64
|
+
args: Optional[Dict] = None,
|
|
65
|
+
):
|
|
66
|
+
"""
|
|
67
|
+
Dispatch is running embeddings and storing in a VectorDB, unless user already has embeddings persisted
|
|
68
|
+
"""
|
|
69
|
+
|
|
70
|
+
input_args = extract_llm_params(args["using"])
|
|
71
|
+
|
|
72
|
+
if "evaluate_dataset" not in input_args and df is not None:
|
|
73
|
+
# if user doesn't provide an evaluation dataset, use the input df from create query
|
|
74
|
+
input_args["evaluate_dataset"] = df.to_dict(orient="records")
|
|
75
|
+
|
|
76
|
+
args = WriterHandlerParameters(**input_args)
|
|
77
|
+
|
|
78
|
+
# create folder for vector store to persist embeddings
|
|
79
|
+
args.vector_store_storage_path = self.engine_storage.folder_get(
|
|
80
|
+
args.vector_store_folder_name
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
if df is not None and args.run_embeddings:
|
|
84
|
+
if "context_columns" not in args:
|
|
85
|
+
# if no context columns provided, use all columns in df
|
|
86
|
+
logger.info("No context columns provided, using all columns in df")
|
|
87
|
+
args.context_columns = df.columns.tolist()
|
|
88
|
+
|
|
89
|
+
if "embeddings_model_name" not in args:
|
|
90
|
+
logger.info(
|
|
91
|
+
f"No embeddings model provided in query, using default model: {DEFAULT_EMBEDDINGS_MODEL}"
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
ingestor = WriterIngestor(args=args, df=df)
|
|
95
|
+
ingestor.embeddings_to_vectordb()
|
|
96
|
+
|
|
97
|
+
else:
|
|
98
|
+
logger.info("Skipping embeddings and ingestion into Chroma VectorDB")
|
|
99
|
+
|
|
100
|
+
export_args = args.dict(exclude={"llm_params"})
|
|
101
|
+
# 'callbacks' aren't json serializable, we do this to avoid errors
|
|
102
|
+
export_args["llm_params"] = args.llm_params.dict(exclude={"callbacks"})
|
|
103
|
+
|
|
104
|
+
# for mindsdb cloud, store data in shared file system
|
|
105
|
+
# for cloud version of mindsdb to make it be usable by all mindsdb nodes
|
|
106
|
+
self.engine_storage.folder_sync(args.vector_store_folder_name)
|
|
107
|
+
|
|
108
|
+
self.model_storage.json_set("args", export_args)
|
|
109
|
+
|
|
110
|
+
def predict(self, df: pd.DataFrame = None, args: dict = None):
|
|
111
|
+
"""
|
|
112
|
+
Dispatch is performed depending on the underlying model type. Currently, only question answering
|
|
113
|
+
is supported.
|
|
114
|
+
"""
|
|
115
|
+
|
|
116
|
+
input_args = self.model_storage.json_get("args")
|
|
117
|
+
args = WriterHandlerParameters(**input_args)
|
|
118
|
+
|
|
119
|
+
if args.evaluation_type:
|
|
120
|
+
# if user adds a WHERE clause with 'run_evaluation = true', run evaluation
|
|
121
|
+
if "run_evaluation" in df.columns and df["run_evaluation"].tolist()[0]:
|
|
122
|
+
return self.evaluate(args)
|
|
123
|
+
else:
|
|
124
|
+
logger.info(
|
|
125
|
+
"Skipping evaluation, running prediction only. "
|
|
126
|
+
"to run evaluation, add a WHERE clause with 'run_evaluation = true'"
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
args.vector_store_storage_path = self.engine_storage.folder_get(
|
|
130
|
+
args.vector_store_folder_name
|
|
131
|
+
)
|
|
132
|
+
|
|
133
|
+
# get question answering results
|
|
134
|
+
question_answerer = QuestionAnswerer(args=args)
|
|
135
|
+
|
|
136
|
+
# get question from sql query
|
|
137
|
+
# e.g. where question = 'What is the capital of France?'
|
|
138
|
+
response = question_answerer.query(df["question"].tolist()[0])
|
|
139
|
+
|
|
140
|
+
return pd.DataFrame(response)
|
|
141
|
+
|
|
142
|
+
def evaluate(self, args: WriterHandlerParameters):
|
|
143
|
+
|
|
144
|
+
if isinstance(args.evaluate_dataset, list):
|
|
145
|
+
# if user provides a list of dicts, convert to dataframe and validate
|
|
146
|
+
evaluate_df = validate_dataframe(
|
|
147
|
+
pd.DataFrame(args.evaluate_dataset), EVAL_COLUMN_NAMES
|
|
148
|
+
)
|
|
149
|
+
else:
|
|
150
|
+
evaluate_df = load_dataset(
|
|
151
|
+
ml_task_type="question_answering", dataset_name=args.evaluate_dataset
|
|
152
|
+
)
|
|
153
|
+
args.context_columns = "context"
|
|
154
|
+
|
|
155
|
+
if args.n_rows_evaluation:
|
|
156
|
+
# if user specifies n_rows_evaluation in create, only use that many rows
|
|
157
|
+
evaluate_df = evaluate_df.head(args.n_rows_evaluation)
|
|
158
|
+
|
|
159
|
+
ingestor = WriterIngestor(df=evaluate_df, args=args)
|
|
160
|
+
ingestor.embeddings_to_vectordb()
|
|
161
|
+
|
|
162
|
+
evaluator = WriterEvaluator(args=args, df=evaluate_df, rag=QuestionAnswerer)
|
|
163
|
+
df = evaluator.evaluate()
|
|
164
|
+
|
|
165
|
+
evaluation_metrics = dict(
|
|
166
|
+
mean_evaluation_metrics=evaluator.mean_evaluation_metrics,
|
|
167
|
+
evaluation_df=df.to_dict(orient="records"),
|
|
168
|
+
)
|
|
169
|
+
|
|
170
|
+
self.model_storage.json_set("evaluation", evaluation_metrics)
|
|
171
|
+
|
|
172
|
+
return df
|
|
173
|
+
|
|
174
|
+
def describe(self, attribute: Optional[str] = None) -> pd.DataFrame:
|
|
175
|
+
"""
|
|
176
|
+
Describe the model, or a specific attribute of the model
|
|
177
|
+
"""
|
|
178
|
+
|
|
179
|
+
if attribute == "evaluation_output":
|
|
180
|
+
evaluation = self.model_storage.json_get("evaluation")
|
|
181
|
+
return pd.DataFrame(evaluation["evaluation_df"])
|
|
182
|
+
elif attribute == "mean_evaluation_metrics":
|
|
183
|
+
evaluation = self.model_storage.json_get("evaluation")
|
|
184
|
+
return pd.DataFrame(evaluation["mean_evaluation_metrics"])
|
|
185
|
+
else:
|
|
186
|
+
raise ValueError(
|
|
187
|
+
f"Attribute {attribute} not supported, try 'evaluation_output' or 'mean_evaluation_metrics'"
|
|
188
|
+
)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
__title__ = "MindsDB Xata handler"
|
|
2
|
+
__package_name__ = "mindsdb_xata_handler"
|
|
3
|
+
__version__ = "0.0.1"
|
|
4
|
+
__description__ = "MindsDB handler for Xata"
|
|
5
|
+
__author__ = "Aditya Azad"
|
|
6
|
+
__github__ = "https://github.com/mindsdb/mindsdb"
|
|
7
|
+
__pypi__ = "https://pypi.org/project/mindsdb/"
|
|
8
|
+
__license__ = "MIT"
|
|
9
|
+
__copyright__ = "Copyright 2023 - mindsdb"
|