airbyte-cdk 0.51.11__tar.gz → 0.51.12__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/PKG-INFO +1 -1
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/destinations/vector_db_based/config.py +16 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/destinations/vector_db_based/document_processor.py +10 -6
- airbyte-cdk-0.51.12/airbyte_cdk/destinations/vector_db_based/embedder.py +164 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/destinations/vector_db_based/indexer.py +1 -3
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/destinations/vector_db_based/test_utils.py +1 -1
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/destinations/vector_db_based/writer.py +9 -3
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk.egg-info/PKG-INFO +1 -1
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/setup.py +1 -1
- airbyte-cdk-0.51.11/airbyte_cdk/destinations/vector_db_based/embedder.py +0 -109
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/LICENSE.txt +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/README.md +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/config_observation.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/connector.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/connector_builder/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/connector_builder/connector_builder_handler.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/connector_builder/main.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/connector_builder/message_grouper.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/connector_builder/models.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/destinations/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/destinations/destination.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/destinations/vector_db_based/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/destinations/vector_db_based/batcher.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/destinations/vector_db_based/utils.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/entrypoint.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/exception_handler.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/logger.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/models/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/models/airbyte_protocol.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/models/well_known_types.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/py.typed +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/abstract_source.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/config.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/connector_state_manager.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/auth/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/auth/declarative_authenticator.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/auth/oauth.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/auth/token.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/auth/token_provider.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/checks/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/checks/check_stream.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/checks/connection_checker.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/create_partial.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/datetime/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/datetime/datetime_parser.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/datetime/min_max_datetime.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/declarative_component_schema.yaml +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/declarative_source.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/declarative_stream.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/decoders/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/decoders/decoder.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/decoders/json_decoder.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/exceptions.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/extractors/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/extractors/dpath_extractor.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/extractors/http_selector.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/extractors/record_extractor.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/extractors/record_filter.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/extractors/record_selector.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/incremental/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/incremental/cursor.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/incremental/datetime_based_cursor.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/incremental/per_partition_cursor.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/interpolation/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/interpolation/filters.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/interpolation/interpolated_boolean.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/interpolation/interpolated_mapping.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/interpolation/interpolated_nested_mapping.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/interpolation/interpolated_string.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/interpolation/interpolation.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/interpolation/jinja.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/interpolation/macros.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/manifest_declarative_source.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/models/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/models/declarative_component_schema.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/parsers/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/parsers/class_types_registry.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/parsers/custom_exceptions.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/parsers/default_implementation_registry.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/parsers/manifest_component_transformer.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/parsers/manifest_reference_resolver.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/partition_routers/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/partition_routers/list_partition_router.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/partition_routers/single_partition_router.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/partition_routers/substream_partition_router.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/error_handlers/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategies/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategies/constant_backoff_strategy.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategies/exponential_backoff_strategy.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategies/header_helper.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategies/wait_time_from_header_backoff_strategy.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategies/wait_until_time_from_header_backoff_strategy.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/error_handlers/backoff_strategy.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/error_handlers/composite_error_handler.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/error_handlers/default_error_handler.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/error_handlers/error_handler.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/error_handlers/http_response_filter.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/error_handlers/response_action.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/error_handlers/response_status.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/http_requester.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/paginators/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/paginators/default_paginator.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/paginators/no_pagination.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/paginators/paginator.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/paginators/strategies/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/paginators/strategies/cursor_pagination_strategy.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/paginators/strategies/offset_increment.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/paginators/strategies/page_increment.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/paginators/strategies/pagination_strategy.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/paginators/strategies/stop_condition.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/request_option.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/request_options/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/request_options/interpolated_nested_request_input_provider.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/request_options/interpolated_request_input_provider.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/request_options/interpolated_request_options_provider.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/request_options/request_options_provider.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/request_path.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/requesters/requester.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/retrievers/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/retrievers/retriever.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/schema/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/schema/default_schema_loader.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/schema/inline_schema_loader.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/schema/json_file_schema_loader.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/schema/schema_loader.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/spec/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/spec/spec.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/stream_slicers/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/stream_slicers/cartesian_product_stream_slicer.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/stream_slicers/stream_slicer.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/transformations/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/transformations/add_fields.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/transformations/remove_fields.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/transformations/transformation.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/types.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/yaml_declarative_source.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/deprecated/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/deprecated/base_source.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/deprecated/client.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/embedded/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/embedded/base_integration.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/embedded/catalog.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/embedded/runner.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/embedded/tools.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/availability_strategy/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/availability_strategy/abstract_file_based_availability_strategy.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/availability_strategy/default_file_based_availability_strategy.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/config/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/config/abstract_file_based_spec.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/config/avro_format.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/config/csv_format.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/config/file_based_stream_config.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/config/jsonl_format.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/config/parquet_format.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/discovery_policy/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/discovery_policy/abstract_discovery_policy.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/discovery_policy/default_discovery_policy.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/exceptions.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/file_based_source.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/file_based_stream_reader.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/file_types/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/file_types/avro_parser.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/file_types/csv_parser.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/file_types/file_type_parser.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/file_types/jsonl_parser.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/file_types/parquet_parser.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/remote_file.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/schema_helpers.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/schema_validation_policies/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/schema_validation_policies/abstract_schema_validation_policy.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/schema_validation_policies/default_schema_validation_policies.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/stream/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/stream/abstract_file_based_stream.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/stream/cursor/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/stream/cursor/abstract_file_based_cursor.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/stream/cursor/default_file_based_cursor.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/stream/default_file_based_stream.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/file_based/types.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/http_logger.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/message/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/message/repository.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/singer/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/singer/singer_helpers.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/singer/source.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/source.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/streams/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/streams/availability_strategy.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/streams/core.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/streams/http/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/streams/http/auth/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/streams/http/auth/core.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/streams/http/auth/oauth.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/streams/http/auth/token.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/streams/http/availability_strategy.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/streams/http/exceptions.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/streams/http/http.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/streams/http/rate_limiting.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/streams/http/requests_native_auth/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/streams/http/requests_native_auth/abstract_oauth.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/streams/http/requests_native_auth/abstract_token.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/streams/http/requests_native_auth/oauth.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/streams/http/requests_native_auth/token.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/streams/utils/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/streams/utils/stream_helper.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/utils/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/utils/casing.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/utils/catalog_helpers.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/utils/record_helper.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/utils/schema_helpers.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/utils/schema_models.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/utils/slice_logger.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/utils/transform.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/utils/types.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/utils/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/utils/airbyte_secrets_utils.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/utils/datetime_format_inferrer.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/utils/event_timing.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/utils/mapping_helpers.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/utils/schema_inferrer.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/utils/spec_schema_transformations.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/utils/stream_status_utils.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/utils/traced_exception.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk.egg-info/SOURCES.txt +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk.egg-info/dependency_links.txt +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk.egg-info/requires.txt +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk.egg-info/top_level.txt +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/pyproject.toml +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/setup.cfg +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/source_declarative_manifest/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/source_declarative_manifest/main.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/connector_builder/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/connector_builder/test_connector_builder_handler.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/connector_builder/test_message_grouper.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/connector_builder/utils.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/destinations/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/destinations/test_destination.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/singer/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/singer/test_singer_helpers.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/singer/test_singer_source.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/auth/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/auth/test_oauth.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/auth/test_session_token_auth.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/auth/test_token_auth.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/auth/test_token_provider.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/checks/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/checks/test_check_stream.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/decoders/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/decoders/test_json_decoder.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/external_component.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/extractors/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/extractors/test_dpath_extractor.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/extractors/test_record_filter.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/extractors/test_record_selector.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/incremental/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/incremental/test_datetime_based_cursor.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/incremental/test_per_partition_cursor.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/incremental/test_per_partition_cursor_integration.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/interpolation/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/interpolation/test_filters.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/interpolation/test_interpolated_boolean.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/interpolation/test_interpolated_mapping.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/interpolation/test_interpolated_nested_mapping.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/interpolation/test_interpolated_string.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/interpolation/test_jinja.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/interpolation/test_macros.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/parsers/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/parsers/test_manifest_component_transformer.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/parsers/test_manifest_reference_resolver.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/parsers/test_model_to_component_factory.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/parsers/testing_components.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/partition_routers/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/partition_routers/test_list_partition_router.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/partition_routers/test_single_partition_router.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/partition_routers/test_substream_partition_router.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/requesters/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/requesters/error_handlers/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/requesters/error_handlers/backoff_strategies/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/requesters/error_handlers/backoff_strategies/test_constant_backoff.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/requesters/error_handlers/backoff_strategies/test_exponential_backoff.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/requesters/error_handlers/backoff_strategies/test_header_helper.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/requesters/error_handlers/backoff_strategies/test_wait_time_from_header.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/requesters/error_handlers/backoff_strategies/test_wait_until_time_from_header.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/requesters/error_handlers/test_composite_error_handler.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/requesters/error_handlers/test_default_error_handler.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/requesters/error_handlers/test_http_response_filter.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/requesters/error_handlers/test_response_status.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/requesters/paginators/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/requesters/paginators/test_cursor_pagination_strategy.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/requesters/paginators/test_default_paginator.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/requesters/paginators/test_no_paginator.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/requesters/paginators/test_offset_increment.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/requesters/paginators/test_page_increment.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/requesters/paginators/test_request_option.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/requesters/paginators/test_stop_condition.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/requesters/request_options/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/requesters/request_options/test_interpolated_request_options_provider.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/requesters/test_http_requester.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/requesters/test_interpolated_request_input_provider.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/retrievers/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/retrievers/test_simple_retriever.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/schema/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/schema/source_test/SourceTest.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/schema/source_test/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/schema/test_default_schema_loader.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/schema/test_inline_schema_loader.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/schema/test_json_file_schema_loader.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/states/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/stream_slicers/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/stream_slicers/test_cartesian_product_stream_slicer.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/test_create_partial.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/test_declarative_stream.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/test_manifest_declarative_source.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/declarative/test_yaml_declarative_source.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/availability_strategy/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/availability_strategy/test_default_file_based_availability_strategy.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/config/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/config/test_abstract_file_based_spec.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/config/test_csv_format.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/config/test_file_based_stream_config.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/file_types/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/file_types/test_avro_parser.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/file_types/test_csv_parser.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/file_types/test_jsonl_parser.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/file_types/test_parquet_parser.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/helpers.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/in_memory_files_source.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/scenarios/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/scenarios/avro_scenarios.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/scenarios/check_scenarios.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/scenarios/csv_scenarios.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/scenarios/incremental_scenarios.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/scenarios/jsonl_scenarios.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/scenarios/parquet_scenarios.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/scenarios/scenario_builder.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/scenarios/user_input_schema_scenarios.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/scenarios/validation_policy_scenarios.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/stream/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/stream/test_default_file_based_cursor.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/stream/test_default_file_based_stream.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/test_file_based_stream_reader.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/test_scenarios.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/file_based/test_schema_helpers.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/fixtures/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/fixtures/source_test_fixture.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/message/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/message/test_repository.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/streams/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/streams/http/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/streams/http/auth/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/streams/http/auth/test_auth.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/streams/http/requests_native_auth/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/streams/http/requests_native_auth/test_requests_native_auth.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/streams/http/test_availability_strategy.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/streams/http/test_http.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/streams/test_availability_strategy.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/streams/test_streams_core.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/test_abstract_source.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/test_config.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/test_connector_state_manager.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/test_http_logger.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/test_integration_source.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/sources/test_source.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/utils/__init__.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/utils/test_datetime_format_inferrer.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/utils/test_mapping_helpers.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/utils/test_schema_inferrer.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/utils/test_secret_utils.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/utils/test_stream_status_utils.py +0 -0
- {airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/unit_tests/utils/test_traced_exception.py +0 -0
{airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/destinations/vector_db_based/config.py
RENAMED
@@ -59,6 +59,22 @@ class FakeEmbeddingConfigModel(BaseModel):
|
|
59
59
|
}
|
60
60
|
|
61
61
|
|
62
|
+
class FromFieldEmbeddingConfigModel(BaseModel):
|
63
|
+
mode: Literal["from_field"] = Field("from_field", const=True)
|
64
|
+
field_name: str = Field(
|
65
|
+
..., title="Field name", description="Name of the field in the record that contains the embedding", examples=["embedding", "vector"]
|
66
|
+
)
|
67
|
+
dimensions: int = Field(
|
68
|
+
..., title="Embedding dimensions", description="The number of dimensions the embedding model is generating", examples=[1536, 384]
|
69
|
+
)
|
70
|
+
|
71
|
+
class Config:
|
72
|
+
title = "From Field"
|
73
|
+
schema_extra = {
|
74
|
+
"description": "Use a field in the record as the embedding. This is useful if you already have an embedding for your data and want to store it in the vector store."
|
75
|
+
}
|
76
|
+
|
77
|
+
|
62
78
|
class CohereEmbeddingConfigModel(BaseModel):
|
63
79
|
mode: Literal["cohere"] = Field("cohere", const=True)
|
64
80
|
cohere_key: str = Field(..., title="Cohere API key", airbyte_secret=True)
|
@@ -9,6 +9,7 @@ from typing import Any, Dict, List, Mapping, Optional, Tuple, Union
|
|
9
9
|
import dpath.util
|
10
10
|
from airbyte_cdk.destinations.vector_db_based.config import ProcessingConfigModel
|
11
11
|
from airbyte_cdk.models import AirbyteRecordMessage, AirbyteStream, ConfiguredAirbyteCatalog, ConfiguredAirbyteStream, DestinationSyncMode
|
12
|
+
from airbyte_cdk.utils.traced_exception import AirbyteTracedException, FailureType
|
12
13
|
from langchain.document_loaders.base import Document
|
13
14
|
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
14
15
|
from langchain.utils import stringify_dict
|
@@ -21,8 +22,8 @@ METADATA_RECORD_ID_FIELD = "_ab_record_id"
|
|
21
22
|
class Chunk:
|
22
23
|
page_content: str
|
23
24
|
metadata: Dict[str, Any]
|
24
|
-
|
25
|
-
|
25
|
+
record: AirbyteRecordMessage
|
26
|
+
embedding: Optional[List[float]] = None
|
26
27
|
|
27
28
|
|
28
29
|
class DocumentProcessor:
|
@@ -66,11 +67,14 @@ class DocumentProcessor:
|
|
66
67
|
"""
|
67
68
|
doc = self._generate_document(record)
|
68
69
|
if doc is None:
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
70
|
+
text_fields = ", ".join(self.text_fields) if self.text_fields else "all fields"
|
71
|
+
raise AirbyteTracedException(
|
72
|
+
internal_message="No text fields found in record",
|
73
|
+
message=f"Record {str(record.data)[:250]}... does not contain any of the configured text fields: {text_fields}. Please check your processing configuration, there has to be at least one text field set in each record.",
|
74
|
+
failure_type=FailureType.config_error,
|
73
75
|
)
|
76
|
+
chunks = [
|
77
|
+
Chunk(page_content=chunk_document.page_content, metadata=chunk_document.metadata, record=record)
|
74
78
|
for chunk_document in self._split_document(doc)
|
75
79
|
]
|
76
80
|
id_to_delete = doc.metadata[METADATA_RECORD_ID_FIELD] if METADATA_RECORD_ID_FIELD in doc.metadata else None
|
@@ -0,0 +1,164 @@
|
|
1
|
+
#
|
2
|
+
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
|
3
|
+
#
|
4
|
+
|
5
|
+
from abc import ABC, abstractmethod
|
6
|
+
from typing import List, Optional
|
7
|
+
|
8
|
+
from airbyte_cdk.destinations.vector_db_based.config import (
|
9
|
+
CohereEmbeddingConfigModel,
|
10
|
+
FakeEmbeddingConfigModel,
|
11
|
+
FromFieldEmbeddingConfigModel,
|
12
|
+
OpenAIEmbeddingConfigModel,
|
13
|
+
)
|
14
|
+
from airbyte_cdk.destinations.vector_db_based.document_processor import Chunk
|
15
|
+
from airbyte_cdk.destinations.vector_db_based.utils import format_exception
|
16
|
+
from airbyte_cdk.utils.traced_exception import AirbyteTracedException, FailureType
|
17
|
+
from langchain.embeddings.cohere import CohereEmbeddings
|
18
|
+
from langchain.embeddings.fake import FakeEmbeddings
|
19
|
+
from langchain.embeddings.openai import OpenAIEmbeddings
|
20
|
+
|
21
|
+
|
22
|
+
class Embedder(ABC):
|
23
|
+
"""
|
24
|
+
Embedder is an abstract class that defines the interface for embedding text.
|
25
|
+
|
26
|
+
The Indexer class uses the Embedder class to internally embed text - each indexer is responsible to pass the text of all documents to the embedder and store the resulting embeddings in the destination.
|
27
|
+
The destination connector is responsible to create an embedder instance and pass it to the writer.
|
28
|
+
The CDK defines basic embedders that should be supported in each destination. It is possible to implement custom embedders for special destinations if needed.
|
29
|
+
"""
|
30
|
+
|
31
|
+
def __init__(self) -> None:
|
32
|
+
pass
|
33
|
+
|
34
|
+
@abstractmethod
|
35
|
+
def check(self) -> Optional[str]:
|
36
|
+
pass
|
37
|
+
|
38
|
+
@abstractmethod
|
39
|
+
def embed_chunks(self, chunks: List[Chunk]) -> List[Optional[List[float]]]:
|
40
|
+
"""
|
41
|
+
Embed the text of each chunk and return the resulting embedding vectors.
|
42
|
+
If a chunk cannot be embedded or is configured to not be embedded, return None for that chunk.
|
43
|
+
"""
|
44
|
+
pass
|
45
|
+
|
46
|
+
@property
|
47
|
+
@abstractmethod
|
48
|
+
def embedding_dimensions(self) -> int:
|
49
|
+
pass
|
50
|
+
|
51
|
+
|
52
|
+
OPEN_AI_VECTOR_SIZE = 1536
|
53
|
+
|
54
|
+
|
55
|
+
class OpenAIEmbedder(Embedder):
|
56
|
+
def __init__(self, config: OpenAIEmbeddingConfigModel):
|
57
|
+
super().__init__()
|
58
|
+
# Client is set internally
|
59
|
+
self.embeddings = OpenAIEmbeddings(openai_api_key=config.openai_key, chunk_size=8191, max_retries=15) # type: ignore
|
60
|
+
|
61
|
+
def check(self) -> Optional[str]:
|
62
|
+
try:
|
63
|
+
self.embeddings.embed_query("test")
|
64
|
+
except Exception as e:
|
65
|
+
return format_exception(e)
|
66
|
+
return None
|
67
|
+
|
68
|
+
def embed_chunks(self, chunks: List[Chunk]) -> List[List[float]]:
|
69
|
+
return self.embeddings.embed_documents([chunk.page_content for chunk in chunks])
|
70
|
+
|
71
|
+
@property
|
72
|
+
def embedding_dimensions(self) -> int:
|
73
|
+
# vector size produced by text-embedding-ada-002 model
|
74
|
+
return OPEN_AI_VECTOR_SIZE
|
75
|
+
|
76
|
+
|
77
|
+
COHERE_VECTOR_SIZE = 1024
|
78
|
+
|
79
|
+
|
80
|
+
class CohereEmbedder(Embedder):
|
81
|
+
def __init__(self, config: CohereEmbeddingConfigModel):
|
82
|
+
super().__init__()
|
83
|
+
# Client is set internally
|
84
|
+
self.embeddings = CohereEmbeddings(cohere_api_key=config.cohere_key, model="embed-english-light-v2.0") # type: ignore
|
85
|
+
|
86
|
+
def check(self) -> Optional[str]:
|
87
|
+
try:
|
88
|
+
self.embeddings.embed_query("test")
|
89
|
+
except Exception as e:
|
90
|
+
return format_exception(e)
|
91
|
+
return None
|
92
|
+
|
93
|
+
def embed_chunks(self, chunks: List[Chunk]) -> List[List[float]]:
|
94
|
+
return self.embeddings.embed_documents([chunk.page_content for chunk in chunks])
|
95
|
+
|
96
|
+
@property
|
97
|
+
def embedding_dimensions(self) -> int:
|
98
|
+
# vector size produced by text-embedding-ada-002 model
|
99
|
+
return COHERE_VECTOR_SIZE
|
100
|
+
|
101
|
+
|
102
|
+
class FakeEmbedder(Embedder):
|
103
|
+
def __init__(self, config: FakeEmbeddingConfigModel):
|
104
|
+
super().__init__()
|
105
|
+
self.embeddings = FakeEmbeddings(size=OPEN_AI_VECTOR_SIZE)
|
106
|
+
|
107
|
+
def check(self) -> Optional[str]:
|
108
|
+
try:
|
109
|
+
self.embeddings.embed_query("test")
|
110
|
+
except Exception as e:
|
111
|
+
return format_exception(e)
|
112
|
+
return None
|
113
|
+
|
114
|
+
def embed_chunks(self, chunks: List[Chunk]) -> List[List[float]]:
|
115
|
+
return self.embeddings.embed_documents([chunk.page_content for chunk in chunks])
|
116
|
+
|
117
|
+
@property
|
118
|
+
def embedding_dimensions(self) -> int:
|
119
|
+
# use same vector size as for OpenAI embeddings to keep it realistic
|
120
|
+
return OPEN_AI_VECTOR_SIZE
|
121
|
+
|
122
|
+
|
123
|
+
class FromFieldEmbedder(Embedder):
|
124
|
+
def __init__(self, config: FromFieldEmbeddingConfigModel):
|
125
|
+
super().__init__()
|
126
|
+
self.config = config
|
127
|
+
|
128
|
+
def check(self) -> Optional[str]:
|
129
|
+
return None
|
130
|
+
|
131
|
+
def embed_chunks(self, chunks: List[Chunk]) -> List[List[float]]:
|
132
|
+
"""
|
133
|
+
From each chunk, pull the embedding from the field specified in the config.
|
134
|
+
Check that the field exists, is a list of numbers and is the correct size. If not, raise an AirbyteTracedException explaining the problem.
|
135
|
+
"""
|
136
|
+
embeddings = []
|
137
|
+
for chunk in chunks:
|
138
|
+
data = chunk.record.data
|
139
|
+
if self.config.field_name not in data:
|
140
|
+
raise AirbyteTracedException(
|
141
|
+
internal_message="Embedding vector field not found",
|
142
|
+
failure_type=FailureType.config_error,
|
143
|
+
message=f"Record {str(data)[:250]}... in stream {chunk.record.stream} does not contain embedding vector field {self.config.field_name}. Please check your embedding configuration, the embedding vector field has to be set correctly on every record.",
|
144
|
+
)
|
145
|
+
field = data[self.config.field_name]
|
146
|
+
if not isinstance(field, list) or not all(isinstance(x, (int, float)) for x in field):
|
147
|
+
raise AirbyteTracedException(
|
148
|
+
internal_message="Embedding vector field not a list of numbers",
|
149
|
+
failure_type=FailureType.config_error,
|
150
|
+
message=f"Record {str(data)[:250]}... in stream {chunk.record.stream} does contain embedding vector field {self.config.field_name}, but it is not a list of numbers. Please check your embedding configuration, the embedding vector field has to be a list of numbers of length {self.config.dimensions} on every record.",
|
151
|
+
)
|
152
|
+
if len(field) != self.config.dimensions:
|
153
|
+
raise AirbyteTracedException(
|
154
|
+
internal_message="Embedding vector field has wrong length",
|
155
|
+
failure_type=FailureType.config_error,
|
156
|
+
message=f"Record {str(data)[:250]}... in stream {chunk.record.stream} does contain embedding vector field {self.config.field_name}, but it has length {len(field)} instead of the configured {self.config.dimensions}. Please check your embedding configuration, the embedding vector field has to be a list of numbers of length {self.config.dimensions} on every record.",
|
157
|
+
)
|
158
|
+
embeddings.append(field)
|
159
|
+
|
160
|
+
return embeddings
|
161
|
+
|
162
|
+
@property
|
163
|
+
def embedding_dimensions(self) -> int:
|
164
|
+
return self.config.dimensions
|
{airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/destinations/vector_db_based/indexer.py
RENAMED
@@ -7,7 +7,6 @@ from abc import ABC, abstractmethod
|
|
7
7
|
from typing import Any, Generator, Iterable, List, Optional, Tuple, TypeVar
|
8
8
|
|
9
9
|
from airbyte_cdk.destinations.vector_db_based.document_processor import Chunk
|
10
|
-
from airbyte_cdk.destinations.vector_db_based.embedder import Embedder
|
11
10
|
from airbyte_cdk.models import AirbyteMessage, ConfiguredAirbyteCatalog
|
12
11
|
|
13
12
|
|
@@ -19,9 +18,8 @@ class Indexer(ABC):
|
|
19
18
|
In a destination connector, implement a custom indexer by extending this class and implementing the abstract methods.
|
20
19
|
"""
|
21
20
|
|
22
|
-
def __init__(self, config: Any
|
21
|
+
def __init__(self, config: Any):
|
23
22
|
self.config = config
|
24
|
-
self.embedder = embedder
|
25
23
|
pass
|
26
24
|
|
27
25
|
def pre_sync(self, catalog: ConfiguredAirbyteCatalog) -> None:
|
{airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/destinations/vector_db_based/test_utils.py
RENAMED
@@ -48,6 +48,6 @@ class BaseIntegrationTest(unittest.TestCase):
|
|
48
48
|
type=Type.RECORD, record=AirbyteRecordMessage(stream=stream, data={"str_col": str_value, "int_col": int_value}, emitted_at=0)
|
49
49
|
)
|
50
50
|
|
51
|
-
def setUp(self):
|
51
|
+
def setUp(self) -> None:
|
52
52
|
with open("secrets/config.json", "r") as f:
|
53
53
|
self.config = json.loads(f.read())
|
{airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/destinations/vector_db_based/writer.py
RENAMED
@@ -8,24 +8,27 @@ from typing import Iterable, List
|
|
8
8
|
from airbyte_cdk.destinations.vector_db_based.batcher import Batcher
|
9
9
|
from airbyte_cdk.destinations.vector_db_based.config import ProcessingConfigModel
|
10
10
|
from airbyte_cdk.destinations.vector_db_based.document_processor import Chunk, DocumentProcessor
|
11
|
+
from airbyte_cdk.destinations.vector_db_based.embedder import Embedder
|
11
12
|
from airbyte_cdk.destinations.vector_db_based.indexer import Indexer
|
12
13
|
from airbyte_cdk.models import AirbyteMessage, AirbyteRecordMessage, ConfiguredAirbyteCatalog, Type
|
13
14
|
|
14
15
|
|
15
16
|
class Writer:
|
16
17
|
"""
|
17
|
-
The Writer class is orchestrating the document processor, the batcher and the indexer:
|
18
|
+
The Writer class is orchestrating the document processor, the batcher, the embedder and the indexer:
|
18
19
|
* Incoming records are collected using the batcher
|
19
20
|
* The document processor generates documents from all records in the batch
|
20
|
-
* The
|
21
|
+
* The embedder embeds the documents
|
22
|
+
* The indexer indexes the resulting documents and their embeddings in the destination
|
21
23
|
|
22
24
|
The destination connector is responsible to create a writer instance and pass the input messages iterable to the write method.
|
23
25
|
The batch size can be configured by the destination connector to give the freedom of either letting the user configure it or hardcoding it to a sensible value depending on the destination.
|
24
26
|
"""
|
25
27
|
|
26
|
-
def __init__(self, processing_config: ProcessingConfigModel, indexer: Indexer, batch_size: int) -> None:
|
28
|
+
def __init__(self, processing_config: ProcessingConfigModel, indexer: Indexer, embedder: Embedder, batch_size: int) -> None:
|
27
29
|
self.processing_config = processing_config
|
28
30
|
self.indexer = indexer
|
31
|
+
self.embedder = embedder
|
29
32
|
self.batcher = Batcher(batch_size, lambda batch: self._process_batch(batch))
|
30
33
|
|
31
34
|
def _process_batch(self, batch: List[AirbyteRecordMessage]) -> None:
|
@@ -36,6 +39,9 @@ class Writer:
|
|
36
39
|
documents.extend(record_documents)
|
37
40
|
if record_id_to_delete is not None:
|
38
41
|
ids_to_delete.append(record_id_to_delete)
|
42
|
+
embeddings = self.embedder.embed_chunks(documents)
|
43
|
+
for i, document in enumerate(documents):
|
44
|
+
document.embedding = embeddings[i]
|
39
45
|
self.indexer.index(documents, ids_to_delete)
|
40
46
|
|
41
47
|
def write(self, configured_catalog: ConfiguredAirbyteCatalog, input_messages: Iterable[AirbyteMessage]) -> Iterable[AirbyteMessage]:
|
@@ -26,7 +26,7 @@ setup(
|
|
26
26
|
name="airbyte-cdk",
|
27
27
|
# The version of the airbyte-cdk package is used at runtime to validate manifests. That validation must be
|
28
28
|
# updated if our semver format changes such as using release candidate versions.
|
29
|
-
version="0.51.
|
29
|
+
version="0.51.12",
|
30
30
|
description="A framework for writing Airbyte Connectors.",
|
31
31
|
long_description=README,
|
32
32
|
long_description_content_type="text/markdown",
|
@@ -1,109 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
|
3
|
-
#
|
4
|
-
|
5
|
-
from abc import ABC, abstractmethod
|
6
|
-
from typing import List, Optional
|
7
|
-
|
8
|
-
from airbyte_cdk.destinations.vector_db_based.config import CohereEmbeddingConfigModel, FakeEmbeddingConfigModel, OpenAIEmbeddingConfigModel
|
9
|
-
from airbyte_cdk.destinations.vector_db_based.utils import format_exception
|
10
|
-
from langchain.embeddings.cohere import CohereEmbeddings
|
11
|
-
from langchain.embeddings.fake import FakeEmbeddings
|
12
|
-
from langchain.embeddings.openai import OpenAIEmbeddings
|
13
|
-
|
14
|
-
|
15
|
-
class Embedder(ABC):
|
16
|
-
"""
|
17
|
-
Embedder is an abstract class that defines the interface for embedding text.
|
18
|
-
|
19
|
-
The Indexer class uses the Embedder class to internally embed text - each indexer is responsible to pass the text of all documents to the embedder and store the resulting embeddings in the destination.
|
20
|
-
The destination connector is responsible to create an embedder instance and pass it to the indexer.
|
21
|
-
The CDK defines basic embedders that should be supported in each destination. It is possible to implement custom embedders for special destinations if needed.
|
22
|
-
"""
|
23
|
-
|
24
|
-
def __init__(self) -> None:
|
25
|
-
pass
|
26
|
-
|
27
|
-
@abstractmethod
|
28
|
-
def check(self) -> Optional[str]:
|
29
|
-
pass
|
30
|
-
|
31
|
-
@abstractmethod
|
32
|
-
def embed_texts(self, texts: List[str]) -> List[List[float]]:
|
33
|
-
pass
|
34
|
-
|
35
|
-
@property
|
36
|
-
@abstractmethod
|
37
|
-
def embedding_dimensions(self) -> int:
|
38
|
-
pass
|
39
|
-
|
40
|
-
|
41
|
-
OPEN_AI_VECTOR_SIZE = 1536
|
42
|
-
|
43
|
-
|
44
|
-
class OpenAIEmbedder(Embedder):
|
45
|
-
def __init__(self, config: OpenAIEmbeddingConfigModel):
|
46
|
-
super().__init__()
|
47
|
-
# Client is set internally
|
48
|
-
self.embeddings = OpenAIEmbeddings(openai_api_key=config.openai_key, chunk_size=8191, max_retries=15) # type: ignore
|
49
|
-
|
50
|
-
def check(self) -> Optional[str]:
|
51
|
-
try:
|
52
|
-
self.embeddings.embed_query("test")
|
53
|
-
except Exception as e:
|
54
|
-
return format_exception(e)
|
55
|
-
return None
|
56
|
-
|
57
|
-
def embed_texts(self, texts: List[str]) -> List[List[float]]:
|
58
|
-
return self.embeddings.embed_documents(texts)
|
59
|
-
|
60
|
-
@property
|
61
|
-
def embedding_dimensions(self) -> int:
|
62
|
-
# vector size produced by text-embedding-ada-002 model
|
63
|
-
return OPEN_AI_VECTOR_SIZE
|
64
|
-
|
65
|
-
|
66
|
-
COHERE_VECTOR_SIZE = 1024
|
67
|
-
|
68
|
-
|
69
|
-
class CohereEmbedder(Embedder):
|
70
|
-
def __init__(self, config: CohereEmbeddingConfigModel):
|
71
|
-
super().__init__()
|
72
|
-
# Client is set internally
|
73
|
-
self.embeddings = CohereEmbeddings(cohere_api_key=config.cohere_key, model="embed-english-light-v2.0") # type: ignore
|
74
|
-
|
75
|
-
def check(self) -> Optional[str]:
|
76
|
-
try:
|
77
|
-
self.embeddings.embed_query("test")
|
78
|
-
except Exception as e:
|
79
|
-
return format_exception(e)
|
80
|
-
return None
|
81
|
-
|
82
|
-
def embed_texts(self, texts: List[str]) -> List[List[float]]:
|
83
|
-
return self.embeddings.embed_documents(texts)
|
84
|
-
|
85
|
-
@property
|
86
|
-
def embedding_dimensions(self) -> int:
|
87
|
-
# vector size produced by text-embedding-ada-002 model
|
88
|
-
return COHERE_VECTOR_SIZE
|
89
|
-
|
90
|
-
|
91
|
-
class FakeEmbedder(Embedder):
|
92
|
-
def __init__(self, config: FakeEmbeddingConfigModel):
|
93
|
-
super().__init__()
|
94
|
-
self.embeddings = FakeEmbeddings(size=OPEN_AI_VECTOR_SIZE)
|
95
|
-
|
96
|
-
def check(self) -> Optional[str]:
|
97
|
-
try:
|
98
|
-
self.embeddings.embed_query("test")
|
99
|
-
except Exception as e:
|
100
|
-
return format_exception(e)
|
101
|
-
return None
|
102
|
-
|
103
|
-
def embed_texts(self, texts: List[str]) -> List[List[float]]:
|
104
|
-
return self.embeddings.embed_documents(texts)
|
105
|
-
|
106
|
-
@property
|
107
|
-
def embedding_dimensions(self) -> int:
|
108
|
-
# use same vector size as for OpenAI embeddings to keep it realistic
|
109
|
-
return OPEN_AI_VECTOR_SIZE
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/connector_builder/message_grouper.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/destinations/vector_db_based/__init__.py
RENAMED
File without changes
|
{airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/destinations/vector_db_based/batcher.py
RENAMED
File without changes
|
{airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/destinations/vector_db_based/utils.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/auth/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/auth/token_provider.py
RENAMED
File without changes
|
{airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/checks/__init__.py
RENAMED
File without changes
|
{airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/checks/check_stream.py
RENAMED
File without changes
|
File without changes
|
{airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/create_partial.py
RENAMED
File without changes
|
{airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/datetime/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/declarative_source.py
RENAMED
File without changes
|
{airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/declarative_stream.py
RENAMED
File without changes
|
{airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/decoders/__init__.py
RENAMED
File without changes
|
{airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/decoders/decoder.py
RENAMED
File without changes
|
{airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/decoders/json_decoder.py
RENAMED
File without changes
|
File without changes
|
{airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/extractors/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/incremental/__init__.py
RENAMED
File without changes
|
{airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/incremental/cursor.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/interpolation/filters.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/interpolation/jinja.py
RENAMED
File without changes
|
{airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/interpolation/macros.py
RENAMED
File without changes
|
File without changes
|
{airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/models/__init__.py
RENAMED
File without changes
|
File without changes
|
{airbyte-cdk-0.51.11 → airbyte-cdk-0.51.12}/airbyte_cdk/sources/declarative/parsers/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|