corvic-engine 0.3.0rc42__tar.gz → 0.3.0rc43__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/Cargo.lock +2 -2
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/Cargo.toml +1 -1
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/PKG-INFO +1 -1
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/pyproject.toml +2 -2
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/model/_completion_model.py +46 -16
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/model/_proto_orm_convert.py +2 -4
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/model/_space.py +56 -39
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/orm/__init__.py +4 -2
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/orm/base.py +4 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/system/_dimension_reduction.py +37 -5
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/system/in_memory_executor.py +8 -3
- corvic_engine-0.3.0rc43/python/corvic_generated/model/v1alpha/models_pb2.py +68 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/model/v1alpha/models_pb2.pyi +5 -6
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/orm/v1/agent_pb2.py +2 -2
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/orm/v1/agent_pb2.pyi +2 -0
- corvic_engine-0.3.0rc43/python/corvic_generated/orm/v1/completion_model_pb2.py +30 -0
- corvic_engine-0.3.0rc43/python/corvic_generated/orm/v1/completion_model_pb2.pyi +33 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/platform/v1/platform_pb2.py +11 -5
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/platform/v1/platform_pb2.pyi +10 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/platform/v1/platform_pb2_grpc.py +33 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/platform/v1/platform_pb2_grpc.pyi +14 -0
- corvic_engine-0.3.0rc43/python/corvic_generated/status/v1/event_pb2_grpc.py +4 -0
- corvic_engine-0.3.0rc43/python/corvic_generated/status/v1/event_pb2_grpc.pyi +17 -0
- corvic_engine-0.3.0rc42/python/corvic_generated/model/v1alpha/models_pb2.py +0 -67
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/LICENSE +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/README.md +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/Cargo.toml +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/buf/validate/expression_pb2.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/buf/validate/expression_pb2.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/buf/validate/expression_pb2_grpc.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/buf/validate/expression_pb2_grpc.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/buf/validate/priv/private_pb2.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/buf/validate/priv/private_pb2.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/buf/validate/priv/private_pb2_grpc.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/buf/validate/priv/private_pb2_grpc.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/buf/validate/validate_pb2.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/buf/validate/validate_pb2.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/buf/validate/validate_pb2_grpc.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/buf/validate/validate_pb2_grpc.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/context/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/context/py.typed +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/embed/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/embed/node2vec.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/embed/py.typed +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/embedding_metric/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/embedding_metric/embeddings.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/embedding_metric/py.typed +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/engine/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/engine/_native.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/engine/py.typed +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/model/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/model/_agent.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/model/_base_model.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/model/_defaults.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/model/_errors.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/model/_feature_type.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/model/_feature_view.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/model/_pipeline.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/model/_resource.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/model/_room.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/model/_source.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/model/py.typed +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/op_graph/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/op_graph/_schema.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/op_graph/_transformations.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/op_graph/aggregation.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/op_graph/encoders.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/op_graph/errors.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/op_graph/feature_types.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/op_graph/ops.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/op_graph/py.typed +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/op_graph/row_filters/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/op_graph/row_filters/_jsonlogic.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/op_graph/row_filters/_row_filters.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/op_graph/sample_strategy.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/orm/_proto_columns.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/orm/errors.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/orm/func/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/orm/func/utc_func.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/orm/func/uuid_func.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/orm/ids.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/orm/keys.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/orm/mixins.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/orm/py.typed +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/pa_scalar/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/pa_scalar/_const.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/pa_scalar/_from_value.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/pa_scalar/_temporal.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/pa_scalar/_to_value.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/pa_scalar/_types.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/pa_scalar/py.typed +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/proto_wrapper/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/proto_wrapper/_errors.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/proto_wrapper/_wrappers.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/proto_wrapper/py.typed +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/result/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/result/py.typed +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/sql/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/sql/parse_ops.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/sql/py.typed +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/system/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/system/_embedder.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/system/_image_embedder.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/system/_planner.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/system/_text_embedder.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/system/client.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/system/op_graph_executor.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/system/py.typed +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/system/staging.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/system/storage.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/system_sqlite/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/system_sqlite/client.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/system_sqlite/fs_blob_store.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/system_sqlite/py.typed +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/system_sqlite/rdbms_blob_store.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/system_sqlite/staging.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/table/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/table/py.typed +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/table/table.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/version/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/version/py.typed +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/well_known_types/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/well_known_types/py.typed +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/algorithm/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/algorithm/graph/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/algorithm/graph/v1/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/algorithm/graph/v1/graph_pb2.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/algorithm/graph/v1/graph_pb2.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/algorithm/graph/v1/graph_pb2_grpc.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/algorithm/graph/v1/graph_pb2_grpc.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/chat/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/chat/v1/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/chat/v1/service_pb2.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/chat/v1/service_pb2.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/chat/v1/service_pb2_grpc.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/chat/v1/service_pb2_grpc.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/completion/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/completion/v1/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/completion/v1/service_pb2.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/completion/v1/service_pb2.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/completion/v1/service_pb2_grpc.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/completion/v1/service_pb2_grpc.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/config/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/config/v1/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/config/v1/settings_pb2.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/config/v1/settings_pb2.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/config/v1/settings_pb2_grpc.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/config/v1/settings_pb2_grpc.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/embedding/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/embedding/v1/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/embedding/v1/models_pb2.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/embedding/v1/models_pb2.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/embedding/v1/models_pb2_grpc.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/embedding/v1/models_pb2_grpc.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/feature/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/feature/v1/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/feature/v1/experiment_pb2.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/feature/v1/experiment_pb2.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/feature/v1/experiment_pb2_grpc.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/feature/v1/experiment_pb2_grpc.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/feature/v1/space_pb2.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/feature/v1/space_pb2.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/feature/v1/space_pb2_grpc.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/feature/v1/space_pb2_grpc.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/feature/v2/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/feature/v2/feature_view_pb2.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/feature/v2/feature_view_pb2.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/feature/v2/feature_view_pb2_grpc.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/feature/v2/feature_view_pb2_grpc.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/feature/v2/space_pb2.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/feature/v2/space_pb2.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/feature/v2/space_pb2_grpc.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/feature/v2/space_pb2_grpc.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v1/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v1/service_pb2.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v1/service_pb2.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v1/service_pb2_grpc.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v1/service_pb2_grpc.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v2/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v2/pipeline_pb2.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v2/pipeline_pb2.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v2/pipeline_pb2_grpc.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v2/pipeline_pb2_grpc.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v2/quick_mode_pb2.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v2/quick_mode_pb2.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v2/quick_mode_pb2_grpc.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v2/quick_mode_pb2_grpc.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v2/resource_pb2.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v2/resource_pb2.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v2/resource_pb2_grpc.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v2/resource_pb2_grpc.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v2/room_pb2.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v2/room_pb2.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v2/room_pb2_grpc.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v2/room_pb2_grpc.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v2/source_pb2.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v2/source_pb2.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v2/source_pb2_grpc.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v2/source_pb2_grpc.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v2/table_pb2.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v2/table_pb2.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v2/table_pb2_grpc.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/ingest/v2/table_pb2_grpc.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/model/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/model/v1alpha/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/model/v1alpha/models_pb2_grpc.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/model/v1alpha/models_pb2_grpc.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/orm/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/orm/v1/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/orm/v1/agent_pb2_grpc.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/orm/v1/agent_pb2_grpc.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/orm/v1/common_pb2.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/orm/v1/common_pb2.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/orm/v1/common_pb2_grpc.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/orm/v1/common_pb2_grpc.pyi +0 -0
- /corvic_engine-0.3.0rc42/python/corvic_generated/orm/v1/feature_view_pb2_grpc.py → /corvic_engine-0.3.0rc43/python/corvic_generated/orm/v1/completion_model_pb2_grpc.py +0 -0
- /corvic_engine-0.3.0rc42/python/corvic_generated/orm/v1/feature_view_pb2_grpc.pyi → /corvic_engine-0.3.0rc43/python/corvic_generated/orm/v1/completion_model_pb2_grpc.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/orm/v1/feature_view_pb2.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/orm/v1/feature_view_pb2.pyi +0 -0
- /corvic_engine-0.3.0rc42/python/corvic_generated/orm/v1/pipeline_pb2_grpc.py → /corvic_engine-0.3.0rc43/python/corvic_generated/orm/v1/feature_view_pb2_grpc.py +0 -0
- /corvic_engine-0.3.0rc42/python/corvic_generated/orm/v1/pipeline_pb2_grpc.pyi → /corvic_engine-0.3.0rc43/python/corvic_generated/orm/v1/feature_view_pb2_grpc.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/orm/v1/pipeline_pb2.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/orm/v1/pipeline_pb2.pyi +0 -0
- /corvic_engine-0.3.0rc42/python/corvic_generated/orm/v1/space_pb2_grpc.py → /corvic_engine-0.3.0rc43/python/corvic_generated/orm/v1/pipeline_pb2_grpc.py +0 -0
- /corvic_engine-0.3.0rc42/python/corvic_generated/orm/v1/space_pb2_grpc.pyi → /corvic_engine-0.3.0rc43/python/corvic_generated/orm/v1/pipeline_pb2_grpc.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/orm/v1/space_pb2.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/orm/v1/space_pb2.pyi +0 -0
- /corvic_engine-0.3.0rc42/python/corvic_generated/status/v1/event_pb2_grpc.py → /corvic_engine-0.3.0rc43/python/corvic_generated/orm/v1/space_pb2_grpc.py +0 -0
- /corvic_engine-0.3.0rc42/python/corvic_generated/status/v1/event_pb2_grpc.pyi → /corvic_engine-0.3.0rc43/python/corvic_generated/orm/v1/space_pb2_grpc.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/orm/v1/table_pb2.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/orm/v1/table_pb2.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/orm/v1/table_pb2_grpc.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/orm/v1/table_pb2_grpc.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/platform/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/platform/v1/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/query/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/query/v1/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/query/v1/query_pb2.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/query/v1/query_pb2.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/query/v1/query_pb2_grpc.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/query/v1/query_pb2_grpc.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/status/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/status/v1/__init__.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/status/v1/event_pb2.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/status/v1/event_pb2.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/status/v1/service_pb2.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/status/v1/service_pb2.pyi +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/status/v1/service_pb2_grpc.py +0 -0
- {corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/status/v1/service_pb2_grpc.pyi +0 -0
@@ -22,7 +22,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
|
22
22
|
|
23
23
|
[[package]]
|
24
24
|
name = "corvic-engine"
|
25
|
-
version = "0.3.0-rc.
|
25
|
+
version = "0.3.0-rc.43"
|
26
26
|
dependencies = [
|
27
27
|
"numpy",
|
28
28
|
"pyo3",
|
@@ -63,7 +63,7 @@ checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0"
|
|
63
63
|
|
64
64
|
[[package]]
|
65
65
|
name = "engine-walk"
|
66
|
-
version = "0.3.0-rc.
|
66
|
+
version = "0.3.0-rc.43"
|
67
67
|
dependencies = [
|
68
68
|
"version_check",
|
69
69
|
]
|
@@ -20,7 +20,7 @@ authors = [
|
|
20
20
|
]
|
21
21
|
readme = "README.md"
|
22
22
|
description = "Seamless embedding generation and retrieval."
|
23
|
-
version = "0.3.0-rc.
|
23
|
+
version = "0.3.0-rc.43" # sync this with tool.poetry.version below
|
24
24
|
|
25
25
|
# TODO(ddn): Pull dependencies from tool.poetry.dependencies. We use maturin as
|
26
26
|
# the build system but poetry for the development environment.
|
@@ -74,7 +74,7 @@ packages = [
|
|
74
74
|
]
|
75
75
|
description = ""
|
76
76
|
authors = []
|
77
|
-
version = "0.3.0-rc.
|
77
|
+
version = "0.3.0-rc.43"
|
78
78
|
|
79
79
|
[tool.poetry.scripts]
|
80
80
|
check = "corvic_check.cli:main"
|
{corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/model/_completion_model.py
RENAMED
@@ -5,7 +5,7 @@ from __future__ import annotations
|
|
5
5
|
import copy
|
6
6
|
import datetime
|
7
7
|
from collections.abc import Iterable, Sequence
|
8
|
-
from typing import TypeAlias
|
8
|
+
from typing import Literal, TypeAlias
|
9
9
|
|
10
10
|
from sqlalchemy import orm as sa_orm
|
11
11
|
|
@@ -19,6 +19,7 @@ from corvic.model._proto_orm_convert import (
|
|
19
19
|
)
|
20
20
|
from corvic.result import InvalidArgumentError, NotFoundError, Ok
|
21
21
|
from corvic_generated.model.v1alpha import models_pb2
|
22
|
+
from corvic_generated.orm.v1 import completion_model_pb2
|
22
23
|
|
23
24
|
CompletionModelID: TypeAlias = orm.CompletionModelID
|
24
25
|
OrgID: TypeAlias = orm.OrgID
|
@@ -62,12 +63,46 @@ class CompletionModel(
|
|
62
63
|
return OrgID(self.proto_self.org_id)
|
63
64
|
|
64
65
|
@property
|
65
|
-
def
|
66
|
-
|
66
|
+
def provider(self) -> Literal["openai-generic", "azure-openai"] | None:
|
67
|
+
match self.proto_self.parameters.WhichOneof("params"):
|
68
|
+
case "azure_openai_parameters":
|
69
|
+
return "azure-openai"
|
70
|
+
case "generic_openai_parameters":
|
71
|
+
return "openai-generic"
|
72
|
+
case _:
|
73
|
+
return None
|
67
74
|
|
68
75
|
@property
|
69
|
-
def
|
70
|
-
|
76
|
+
def parameters(
|
77
|
+
self,
|
78
|
+
) -> (
|
79
|
+
completion_model_pb2.AzureOpenAIParameters
|
80
|
+
| completion_model_pb2.GenericOpenAIParameters
|
81
|
+
| None
|
82
|
+
):
|
83
|
+
match self.provider:
|
84
|
+
case "azure-openai":
|
85
|
+
return self.azure_openai_parameters
|
86
|
+
case "openai-generic":
|
87
|
+
return self.generic_openai_parameters
|
88
|
+
case None:
|
89
|
+
return None
|
90
|
+
|
91
|
+
@property
|
92
|
+
def azure_openai_parameters(
|
93
|
+
self,
|
94
|
+
) -> completion_model_pb2.AzureOpenAIParameters | None:
|
95
|
+
if self.proto_self.parameters.HasField("azure_openai_parameters"):
|
96
|
+
return self.proto_self.parameters.azure_openai_parameters
|
97
|
+
return None
|
98
|
+
|
99
|
+
@property
|
100
|
+
def generic_openai_parameters(
|
101
|
+
self,
|
102
|
+
) -> completion_model_pb2.GenericOpenAIParameters | None:
|
103
|
+
if self.proto_self.parameters.HasField("generic_openai_parameters"):
|
104
|
+
return self.proto_self.parameters.generic_openai_parameters
|
105
|
+
return None
|
71
106
|
|
72
107
|
@property
|
73
108
|
def secret_api_key(self) -> str:
|
@@ -83,8 +118,7 @@ class CompletionModel(
|
|
83
118
|
*,
|
84
119
|
name: str,
|
85
120
|
description: str,
|
86
|
-
|
87
|
-
endpoint: str,
|
121
|
+
parameters: completion_model_pb2.CompletionModelParameters,
|
88
122
|
secret_api_key: str,
|
89
123
|
client: system.Client | None = None,
|
90
124
|
):
|
@@ -94,8 +128,7 @@ class CompletionModel(
|
|
94
128
|
models_pb2.CompletionModel(
|
95
129
|
name=name,
|
96
130
|
description=description,
|
97
|
-
|
98
|
-
endpoint=endpoint,
|
131
|
+
parameters=parameters,
|
99
132
|
secret_api_key=secret_api_key,
|
100
133
|
),
|
101
134
|
)
|
@@ -153,14 +186,11 @@ class CompletionModel(
|
|
153
186
|
proto_self.description = description
|
154
187
|
return CompletionModel(self.client, proto_self)
|
155
188
|
|
156
|
-
def
|
157
|
-
|
158
|
-
|
159
|
-
return CompletionModel(self.client, proto_self)
|
160
|
-
|
161
|
-
def with_endpoint(self, endpoint: str) -> CompletionModel:
|
189
|
+
def with_parameters(
|
190
|
+
self, parameters: completion_model_pb2.CompletionModelParameters
|
191
|
+
) -> CompletionModel:
|
162
192
|
proto_self = copy.deepcopy(self.proto_self)
|
163
|
-
proto_self.
|
193
|
+
proto_self.parameters.CopyFrom(parameters)
|
164
194
|
return CompletionModel(self.client, proto_self)
|
165
195
|
|
166
196
|
def with_secret_api_key(self, secret_api_key: str) -> CompletionModel:
|
{corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/model/_proto_orm_convert.py
RENAMED
@@ -225,8 +225,7 @@ def completion_model_orm_to_proto(
|
|
225
225
|
name=completion_model_orm.name,
|
226
226
|
description=completion_model_orm.description,
|
227
227
|
org_id=str(completion_model_orm.org_id),
|
228
|
-
|
229
|
-
endpoint=completion_model_orm.endpoint,
|
228
|
+
parameters=completion_model_orm.parameters,
|
230
229
|
secret_api_key=completion_model_orm.secret_api_key,
|
231
230
|
created_at=timestamp_orm_to_proto(completion_model_orm.created_at),
|
232
231
|
)
|
@@ -543,8 +542,7 @@ def completion_model_proto_to_orm(
|
|
543
542
|
id=ids.obj_id,
|
544
543
|
name=proto_obj.name,
|
545
544
|
description=proto_obj.description,
|
546
|
-
|
547
|
-
endpoint=proto_obj.endpoint,
|
545
|
+
parameters=proto_obj.parameters,
|
548
546
|
secret_api_key=proto_obj.secret_api_key,
|
549
547
|
)
|
550
548
|
|
@@ -782,50 +782,67 @@ class TabularSpace(Space):
|
|
782
782
|
|
783
783
|
embedding_column_tmp_name = f"__embed-{uuid.uuid4()}"
|
784
784
|
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
785
|
+
# Avoid 0 padding for spaces with small numbers of columns
|
786
|
+
target_list_length = min(parameters.ndim, len(embedding_column_tmp_names))
|
787
|
+
|
788
|
+
def reduce_dimension(
|
789
|
+
op: op_graph.Op,
|
790
|
+
embedding_column_tmp_name=embedding_column_tmp_name,
|
791
|
+
target_list_length=target_list_length,
|
792
|
+
):
|
793
|
+
return op.truncate_list(
|
794
|
+
list_column_name=embedding_column_tmp_name,
|
795
|
+
target_list_length=target_list_length,
|
796
|
+
padding_value=0,
|
797
797
|
)
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
798
|
+
|
799
|
+
def select_columns(
|
800
|
+
op: op_graph.Op,
|
801
|
+
pk_field=pk_field,
|
802
|
+
embedding_column_tmp_name=embedding_column_tmp_name,
|
803
|
+
):
|
804
|
+
return op.select_columns([pk_field.name, embedding_column_tmp_name])
|
805
|
+
|
806
|
+
def update_feature_types(
|
807
|
+
op: op_graph.Op,
|
808
|
+
embedding_column_tmp_name=embedding_column_tmp_name,
|
809
|
+
):
|
810
|
+
return op.update_feature_types(
|
811
|
+
{embedding_column_tmp_name: op_graph.feature_type.embedding()}
|
805
812
|
)
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
813
|
+
|
814
|
+
def rename_columns(
|
815
|
+
op: op_graph.Op,
|
816
|
+
pk_field=pk_field,
|
817
|
+
embedding_column_tmp_name=embedding_column_tmp_name,
|
818
|
+
):
|
819
|
+
return op.rename_columns(
|
820
|
+
{
|
821
|
+
pk_field.name: "entity_id",
|
822
|
+
embedding_column_tmp_name: "embedding",
|
823
|
+
}
|
811
824
|
)
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
)
|
825
|
+
|
826
|
+
def add_literal_column(
|
827
|
+
op: op_graph.Op,
|
828
|
+
output_source=output_source,
|
829
|
+
):
|
830
|
+
return op.add_literal_column(
|
831
|
+
"source_id",
|
832
|
+
str(output_source.id),
|
833
|
+
pa.string(),
|
821
834
|
)
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
)
|
835
|
+
|
836
|
+
op = (
|
837
|
+
op.concat_list(
|
838
|
+
column_names=embedding_column_tmp_names,
|
839
|
+
concat_list_column_name=embedding_column_tmp_name,
|
828
840
|
)
|
841
|
+
.and_then(reduce_dimension)
|
842
|
+
.and_then(select_columns)
|
843
|
+
.and_then(update_feature_types)
|
844
|
+
.and_then(rename_columns)
|
845
|
+
.and_then(add_literal_column)
|
829
846
|
)
|
830
847
|
|
831
848
|
match op:
|
@@ -48,6 +48,7 @@ from corvic.orm.mixins import (
|
|
48
48
|
from corvic_generated.orm.v1 import (
|
49
49
|
agent_pb2,
|
50
50
|
common_pb2,
|
51
|
+
completion_model_pb2,
|
51
52
|
feature_view_pb2,
|
52
53
|
pipeline_pb2,
|
53
54
|
space_pb2,
|
@@ -580,8 +581,9 @@ class CompletionModel(SoftDeleteMixin, BelongsToOrgMixin, Base):
|
|
580
581
|
id: sa_orm.Mapped[CompletionModelID | None] = primary_key_identity_column()
|
581
582
|
name: sa_orm.Mapped[str] = sa_orm.mapped_column(sa.Text, default=None)
|
582
583
|
description: sa_orm.Mapped[str] = sa_orm.mapped_column(sa.Text, default=None)
|
583
|
-
|
584
|
-
|
584
|
+
parameters: sa_orm.Mapped[completion_model_pb2.CompletionModelParameters | None] = (
|
585
|
+
sa_orm.mapped_column(default=None)
|
586
|
+
)
|
585
587
|
secret_api_key: sa_orm.Mapped[str] = sa_orm.mapped_column(sa.Text, default=None)
|
586
588
|
|
587
589
|
@property
|
@@ -41,6 +41,7 @@ from corvic.orm.keys import (
|
|
41
41
|
from corvic_generated.orm.v1 import (
|
42
42
|
agent_pb2,
|
43
43
|
common_pb2,
|
44
|
+
completion_model_pb2,
|
44
45
|
feature_view_pb2,
|
45
46
|
pipeline_pb2,
|
46
47
|
space_pb2,
|
@@ -112,6 +113,9 @@ class Base(sa_orm.MappedAsDataclass, sa_orm.DeclarativeBase):
|
|
112
113
|
pipeline_pb2.PipelineTransformation()
|
113
114
|
),
|
114
115
|
event_pb2.Event: ProtoMessageDecorator(event_pb2.Event()),
|
116
|
+
completion_model_pb2.CompletionModelParameters: ProtoMessageDecorator(
|
117
|
+
completion_model_pb2.CompletionModelParameters()
|
118
|
+
),
|
115
119
|
# ID types
|
116
120
|
OrgID: StrIDDecorator(OrgID()),
|
117
121
|
RoomID: IntIDDecorator(RoomID()),
|
{corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/system/_dimension_reduction.py
RENAMED
@@ -3,11 +3,30 @@ from typing import Any, Protocol
|
|
3
3
|
import numpy as np
|
4
4
|
from numpy.typing import NDArray
|
5
5
|
|
6
|
+
from corvic.result import InvalidArgumentError, Ok
|
7
|
+
|
8
|
+
|
9
|
+
def _validate_embedding_array(
|
10
|
+
embeddings: NDArray[Any],
|
11
|
+
) -> Ok[None] | InvalidArgumentError:
|
12
|
+
embeddings_ndim = 2
|
13
|
+
if embeddings.ndim != embeddings_ndim:
|
14
|
+
return InvalidArgumentError(
|
15
|
+
f"embeddings ndim must be {embeddings_ndim}",
|
16
|
+
ndim=embeddings.ndim,
|
17
|
+
)
|
18
|
+
if not np.issubdtype(embeddings.dtype, np.number):
|
19
|
+
return InvalidArgumentError(
|
20
|
+
"embeddings must have a numerical dtype",
|
21
|
+
dtype=str(embeddings.dtype),
|
22
|
+
)
|
23
|
+
return Ok(None)
|
24
|
+
|
6
25
|
|
7
26
|
class DimensionReducer(Protocol):
|
8
27
|
def reduce_dimensions(
|
9
28
|
self, vectors: NDArray[Any], output_dimensions: int, metric: str
|
10
|
-
) -> NDArray[Any]: ...
|
29
|
+
) -> Ok[NDArray[Any]] | InvalidArgumentError: ...
|
11
30
|
|
12
31
|
|
13
32
|
class UmapDimensionReducer(DimensionReducer):
|
@@ -16,8 +35,16 @@ class UmapDimensionReducer(DimensionReducer):
|
|
16
35
|
vectors: NDArray[Any],
|
17
36
|
output_dimensions: int,
|
18
37
|
metric: str,
|
19
|
-
):
|
38
|
+
) -> Ok[NDArray[Any]] | InvalidArgumentError:
|
39
|
+
match _validate_embedding_array(vectors):
|
40
|
+
case InvalidArgumentError() as err:
|
41
|
+
return err
|
42
|
+
case Ok():
|
43
|
+
pass
|
44
|
+
|
20
45
|
vectors = np.nan_to_num(vectors.astype(np.float32))
|
46
|
+
if vectors.shape[1] == output_dimensions:
|
47
|
+
return Ok(vectors)
|
21
48
|
n_neighbors = 15
|
22
49
|
init = "spectral"
|
23
50
|
# y spectral initialization cannot be used when n_neighbors
|
@@ -45,11 +72,16 @@ class UmapDimensionReducer(DimensionReducer):
|
|
45
72
|
low_memory=False,
|
46
73
|
verbose=False,
|
47
74
|
)
|
48
|
-
return projector.fit_transform(vectors)
|
75
|
+
return Ok(projector.fit_transform(vectors))
|
49
76
|
|
50
77
|
|
51
78
|
class TruncateDimensionReducer(DimensionReducer):
|
52
79
|
def reduce_dimensions(
|
53
80
|
self, vectors: NDArray[Any], output_dimensions: int, metric: str
|
54
|
-
) -> NDArray[Any]:
|
55
|
-
|
81
|
+
) -> Ok[NDArray[Any]] | InvalidArgumentError:
|
82
|
+
match _validate_embedding_array(vectors):
|
83
|
+
case InvalidArgumentError() as err:
|
84
|
+
return err
|
85
|
+
case Ok():
|
86
|
+
pass
|
87
|
+
return Ok(vectors[:, :output_dimensions])
|
{corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic/system/in_memory_executor.py
RENAMED
@@ -583,9 +583,14 @@ class InMemoryExecutor(OpGraphExecutor):
|
|
583
583
|
case InvalidArgumentError() as err:
|
584
584
|
raise err
|
585
585
|
|
586
|
-
|
586
|
+
match self._dimension_reducer.reduce_dimensions(
|
587
587
|
embedding, op.n_components, op.metric
|
588
|
-
)
|
588
|
+
):
|
589
|
+
case Ok(coordinates):
|
590
|
+
pass
|
591
|
+
case InvalidArgumentError() as err:
|
592
|
+
raise err
|
593
|
+
|
589
594
|
coordinates_df = embedding_df.with_columns(
|
590
595
|
pl.Series(
|
591
596
|
name=embedding_column_name,
|
@@ -897,7 +902,7 @@ class InMemoryExecutor(OpGraphExecutor):
|
|
897
902
|
|
898
903
|
encoder = MaxAbsScaler()
|
899
904
|
encoded = encoder.fit_transform(
|
900
|
-
to_encode.to_numpy().reshape(-1, 1)
|
905
|
+
np.nan_to_num(to_encode.to_numpy()).reshape(-1, 1)
|
901
906
|
).flatten()
|
902
907
|
|
903
908
|
case op_graph.encoder.StandardScaler():
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: corvic/model/v1alpha/models.proto
|
4
|
+
# Protobuf Python Version: 4.25.3
|
5
|
+
"""Generated protocol buffer code."""
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
from google.protobuf.internal import builder as _builder
|
10
|
+
# @@protoc_insertion_point(imports)
|
11
|
+
|
12
|
+
_sym_db = _symbol_database.Default()
|
13
|
+
|
14
|
+
|
15
|
+
from corvic_generated.orm.v1 import agent_pb2 as corvic_dot_orm_dot_v1_dot_agent__pb2
|
16
|
+
from corvic_generated.orm.v1 import common_pb2 as corvic_dot_orm_dot_v1_dot_common__pb2
|
17
|
+
from corvic_generated.orm.v1 import completion_model_pb2 as corvic_dot_orm_dot_v1_dot_completion__model__pb2
|
18
|
+
from corvic_generated.orm.v1 import feature_view_pb2 as corvic_dot_orm_dot_v1_dot_feature__view__pb2
|
19
|
+
from corvic_generated.orm.v1 import pipeline_pb2 as corvic_dot_orm_dot_v1_dot_pipeline__pb2
|
20
|
+
from corvic_generated.orm.v1 import space_pb2 as corvic_dot_orm_dot_v1_dot_space__pb2
|
21
|
+
from corvic_generated.orm.v1 import table_pb2 as corvic_dot_orm_dot_v1_dot_table__pb2
|
22
|
+
from corvic_generated.status.v1 import event_pb2 as corvic_dot_status_dot_v1_dot_event__pb2
|
23
|
+
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
|
24
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
25
|
+
|
26
|
+
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!corvic/model/v1alpha/models.proto\x12\x14\x63orvic.model.v1alpha\x1a\x19\x63orvic/orm/v1/agent.proto\x1a\x1a\x63orvic/orm/v1/common.proto\x1a$corvic/orm/v1/completion_model.proto\x1a corvic/orm/v1/feature_view.proto\x1a\x1c\x63orvic/orm/v1/pipeline.proto\x1a\x19\x63orvic/orm/v1/space.proto\x1a\x19\x63orvic/orm/v1/table.proto\x1a\x1c\x63orvic/status/v1/event.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x90\x01\n\x04Room\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x15\n\x06org_id\x18\x03 \x01(\tR\x05orgId\x12>\n\ncreated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\tcreatedAt\x88\x01\x01\x42\r\n\x0b_created_at\"\xc7\x03\n\x08Resource\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12\x1b\n\tmime_type\x18\x04 \x01(\tR\x08mimeType\x12\x10\n\x03url\x18\x05 \x01(\tR\x03url\x12\x12\n\x04size\x18\x06 \x01(\x04R\x04size\x12\x10\n\x03md5\x18\x07 \x01(\tR\x03md5\x12#\n\roriginal_path\x18\x08 \x01(\tR\x0coriginalPath\x12\x17\n\x07room_id\x18\t \x01(\tR\x06roomId\x12\x1d\n\nsource_ids\x18\n \x03(\tR\tsourceIds\x12\x15\n\x06org_id\x18\x0b \x01(\tR\x05orgId\x12\x1f\n\x0bpipeline_id\x18\r \x01(\tR\npipelineId\x12<\n\rrecent_events\x18\x0e \x03(\x0b\x32\x17.corvic.status.v1.EventR\x0crecentEvents\x12>\n\ncreated_at\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\tcreatedAt\x88\x01\x01\x42\r\n\x0b_created_at\"\xb2\x02\n\x06Source\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x43\n\x0etable_op_graph\x18\x03 \x01(\x0b\x32\x1d.corvic.orm.v1.TableComputeOpR\x0ctableOpGraph\x12\x17\n\x07room_id\x18\x04 \x01(\tR\x06roomId\x12\x1f\n\x0bresource_id\x18\x05 \x01(\tR\nresourceId\x12\x15\n\x06org_id\x18\x06 \x01(\tR\x05orgId\x12\x1f\n\x0bpipeline_id\x18\x08 \x01(\tR\npipelineId\x12>\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\tcreatedAt\x88\x01\x01\x42\r\n\x0b_created_at\"\xa9\x05\n\x08Pipeline\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\t \x01(\tR\x0b\x64\x65scription\x12\x17\n\x07room_id\x18\x03 \x01(\tR\x06roomId\x12[\n\x0fresource_inputs\x18\x04 \x03(\x0b\x32\x32.corvic.model.v1alpha.Pipeline.ResourceInputsEntryR\x0eresourceInputs\x12X\n\x0esource_outputs\x18\x05 \x03(\x0b\x32\x31.corvic.model.v1alpha.Pipeline.SourceOutputsEntryR\rsourceOutputs\x12^\n\x17pipeline_transformation\x18\x06 \x01(\x0b\x32%.corvic.orm.v1.PipelineTransformationR\x16pipelineTransformation\x12\x15\n\x06org_id\x18\x07 \x01(\tR\x05orgId\x12>\n\ncreated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\tcreatedAt\x88\x01\x01\x1a\x61\n\x13ResourceInputsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x34\n\x05value\x18\x02 \x01(\x0b\x32\x1e.corvic.model.v1alpha.ResourceR\x05value:\x02\x38\x01\x1a^\n\x12SourceOutputsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x32\n\x05value\x18\x02 \x01(\x0b\x32\x1c.corvic.model.v1alpha.SourceR\x05value:\x02\x38\x01\x42\r\n\x0b_created_at\"\xb1\x02\n\x11\x46\x65\x61tureViewSource\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x34\n\x06source\x18\x02 \x01(\x0b\x32\x1c.corvic.model.v1alpha.SourceR\x06source\x12\x43\n\x0etable_op_graph\x18\x03 \x01(\x0b\x32\x1d.corvic.orm.v1.TableComputeOpR\x0ctableOpGraph\x12+\n\x11\x64rop_disconnected\x18\x04 \x01(\x08R\x10\x64ropDisconnected\x12\x15\n\x06org_id\x18\x05 \x01(\tR\x05orgId\x12>\n\ncreated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\tcreatedAt\x88\x01\x01\x42\r\n\x0b_created_at\"\x9c\x03\n\x0b\x46\x65\x61tureView\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12\x17\n\x07room_id\x18\x04 \x01(\tR\x06roomId\x12P\n\x13\x66\x65\x61ture_view_output\x18\x05 \x01(\x0b\x32 .corvic.orm.v1.FeatureViewOutputR\x11\x66\x65\x61tureViewOutput\x12Y\n\x14\x66\x65\x61ture_view_sources\x18\x06 \x03(\x0b\x32\'.corvic.model.v1alpha.FeatureViewSourceR\x12\x66\x65\x61tureViewSources\x12\x1b\n\tspace_ids\x18\x07 \x03(\tR\x08spaceIds\x12\x15\n\x06org_id\x18\x08 \x01(\tR\x05orgId\x12>\n\ncreated_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\tcreatedAt\x88\x01\x01\x42\r\n\x0b_created_at\"\xdc\x02\n\x05Space\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12\x17\n\x07room_id\x18\x04 \x01(\tR\x06roomId\x12I\n\x10space_parameters\x18\x05 \x01(\x0b\x32\x1e.corvic.orm.v1.SpaceParametersR\x0fspaceParameters\x12&\n\x0f\x66\x65\x61ture_view_id\x18\x06 \x01(\tR\rfeatureViewId\x12\x1b\n\tauto_sync\x18\t \x01(\x08R\x08\x61utoSync\x12\x15\n\x06org_id\x18\x07 \x01(\tR\x05orgId\x12>\n\ncreated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\tcreatedAt\x88\x01\x01\x42\r\n\x0b_created_at\"7\n\x0bUserMessage\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\"\xce\x02\n\x0c\x41gentMessage\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12/\n\x06policy\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructR\x06policy\x12\x18\n\x07\x63ontext\x18\x04 \x01(\tR\x07\x63ontext\x12P\n\x10message_reaction\x18\x05 \x01(\x0e\x32%.corvic.model.v1alpha.MessageReactionR\x0fmessageReaction\x12&\n\x0fuser_message_id\x18\x06 \x01(\tR\ruserMessageId\x12O\n\x12retrieved_entities\x18\x07 \x01(\x0b\x32 .corvic.orm.v1.RetrievedEntitiesR\x11retrievedEntities\"\x8b\x02\n\x0cMessageEntry\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x46\n\x0cuser_message\x18\x02 \x01(\x0b\x32!.corvic.model.v1alpha.UserMessageH\x00R\x0buserMessage\x12I\n\ragent_message\x18\x03 \x01(\x0b\x32\".corvic.model.v1alpha.AgentMessageH\x00R\x0c\x61gentMessage\x12>\n\ncreated_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01R\tcreatedAt\x88\x01\x01\x42\t\n\x07\x63ontentB\r\n\x0b_created_at\"\x85\x02\n\x05\x41gent\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x17\n\x07room_id\x18\x03 \x01(\tR\x06roomId\x12I\n\x10\x61gent_parameters\x18\x04 \x01(\x0b\x32\x1e.corvic.orm.v1.AgentParametersR\x0f\x61gentParameters\x12\x15\n\x06org_id\x18\x05 \x01(\tR\x05orgId\x12>\n\ncreated_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\tcreatedAt\x88\x01\x01\x42\r\n\x0b_created_atJ\x04\x08\x06\x10\x07R\x08messages\"\xad\x02\n\x0f\x43ompletionModel\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12\x15\n\x06org_id\x18\x04 \x01(\tR\x05orgId\x12H\n\nparameters\x18\x05 \x01(\x0b\x32(.corvic.orm.v1.CompletionModelParametersR\nparameters\x12$\n\x0esecret_api_key\x18\x06 \x01(\tR\x0csecretApiKey\x12>\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\tcreatedAt\x88\x01\x01\x42\r\n\x0b_created_at*u\n\x0fMessageReaction\x12 \n\x1cMESSAGE_REACTION_UNSPECIFIED\x10\x00\x12\x1e\n\x1aMESSAGE_REACTION_THUMBS_UP\x10\x01\x12 \n\x1cMESSAGE_REACTION_THUMBS_DOWN\x10\x02\x62\x06proto3')
|
28
|
+
|
29
|
+
_globals = globals()
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'corvic.model.v1alpha.models_pb2', _globals)
|
32
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
33
|
+
DESCRIPTOR._options = None
|
34
|
+
_globals['_PIPELINE_RESOURCEINPUTSENTRY']._options = None
|
35
|
+
_globals['_PIPELINE_RESOURCEINPUTSENTRY']._serialized_options = b'8\001'
|
36
|
+
_globals['_PIPELINE_SOURCEOUTPUTSENTRY']._options = None
|
37
|
+
_globals['_PIPELINE_SOURCEOUTPUTSENTRY']._serialized_options = b'8\001'
|
38
|
+
_globals['_MESSAGEREACTION']._serialized_start=4267
|
39
|
+
_globals['_MESSAGEREACTION']._serialized_end=4384
|
40
|
+
_globals['_ROOM']._serialized_start=364
|
41
|
+
_globals['_ROOM']._serialized_end=508
|
42
|
+
_globals['_RESOURCE']._serialized_start=511
|
43
|
+
_globals['_RESOURCE']._serialized_end=966
|
44
|
+
_globals['_SOURCE']._serialized_start=969
|
45
|
+
_globals['_SOURCE']._serialized_end=1275
|
46
|
+
_globals['_PIPELINE']._serialized_start=1278
|
47
|
+
_globals['_PIPELINE']._serialized_end=1959
|
48
|
+
_globals['_PIPELINE_RESOURCEINPUTSENTRY']._serialized_start=1751
|
49
|
+
_globals['_PIPELINE_RESOURCEINPUTSENTRY']._serialized_end=1848
|
50
|
+
_globals['_PIPELINE_SOURCEOUTPUTSENTRY']._serialized_start=1850
|
51
|
+
_globals['_PIPELINE_SOURCEOUTPUTSENTRY']._serialized_end=1944
|
52
|
+
_globals['_FEATUREVIEWSOURCE']._serialized_start=1962
|
53
|
+
_globals['_FEATUREVIEWSOURCE']._serialized_end=2267
|
54
|
+
_globals['_FEATUREVIEW']._serialized_start=2270
|
55
|
+
_globals['_FEATUREVIEW']._serialized_end=2682
|
56
|
+
_globals['_SPACE']._serialized_start=2685
|
57
|
+
_globals['_SPACE']._serialized_end=3033
|
58
|
+
_globals['_USERMESSAGE']._serialized_start=3035
|
59
|
+
_globals['_USERMESSAGE']._serialized_end=3090
|
60
|
+
_globals['_AGENTMESSAGE']._serialized_start=3093
|
61
|
+
_globals['_AGENTMESSAGE']._serialized_end=3427
|
62
|
+
_globals['_MESSAGEENTRY']._serialized_start=3430
|
63
|
+
_globals['_MESSAGEENTRY']._serialized_end=3697
|
64
|
+
_globals['_AGENT']._serialized_start=3700
|
65
|
+
_globals['_AGENT']._serialized_end=3961
|
66
|
+
_globals['_COMPLETIONMODEL']._serialized_start=3964
|
67
|
+
_globals['_COMPLETIONMODEL']._serialized_end=4265
|
68
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -1,5 +1,6 @@
|
|
1
1
|
from corvic_generated.orm.v1 import agent_pb2 as _agent_pb2
|
2
2
|
from corvic_generated.orm.v1 import common_pb2 as _common_pb2
|
3
|
+
from corvic_generated.orm.v1 import completion_model_pb2 as _completion_model_pb2
|
3
4
|
from corvic_generated.orm.v1 import feature_view_pb2 as _feature_view_pb2
|
4
5
|
from corvic_generated.orm.v1 import pipeline_pb2 as _pipeline_pb2
|
5
6
|
from corvic_generated.orm.v1 import space_pb2 as _space_pb2
|
@@ -239,21 +240,19 @@ class Agent(_message.Message):
|
|
239
240
|
def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., room_id: _Optional[str] = ..., agent_parameters: _Optional[_Union[_agent_pb2.AgentParameters, _Mapping]] = ..., org_id: _Optional[str] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
240
241
|
|
241
242
|
class CompletionModel(_message.Message):
|
242
|
-
__slots__ = ("id", "name", "description", "org_id", "
|
243
|
+
__slots__ = ("id", "name", "description", "org_id", "parameters", "secret_api_key", "created_at")
|
243
244
|
ID_FIELD_NUMBER: _ClassVar[int]
|
244
245
|
NAME_FIELD_NUMBER: _ClassVar[int]
|
245
246
|
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
246
247
|
ORG_ID_FIELD_NUMBER: _ClassVar[int]
|
247
|
-
|
248
|
-
ENDPOINT_FIELD_NUMBER: _ClassVar[int]
|
248
|
+
PARAMETERS_FIELD_NUMBER: _ClassVar[int]
|
249
249
|
SECRET_API_KEY_FIELD_NUMBER: _ClassVar[int]
|
250
250
|
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
251
251
|
id: str
|
252
252
|
name: str
|
253
253
|
description: str
|
254
254
|
org_id: str
|
255
|
-
|
256
|
-
endpoint: str
|
255
|
+
parameters: _completion_model_pb2.CompletionModelParameters
|
257
256
|
secret_api_key: str
|
258
257
|
created_at: _timestamp_pb2.Timestamp
|
259
|
-
def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., org_id: _Optional[str] = ...,
|
258
|
+
def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., org_id: _Optional[str] = ..., parameters: _Optional[_Union[_completion_model_pb2.CompletionModelParameters, _Mapping]] = ..., secret_api_key: _Optional[str] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
{corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/orm/v1/agent_pb2.py
RENAMED
@@ -14,7 +14,7 @@ _sym_db = _symbol_database.Default()
|
|
14
14
|
|
15
15
|
|
16
16
|
|
17
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19\x63orvic/orm/v1/agent.proto\x12\rcorvic.orm.v1\"\xf3\x01\n\x12\x45xecutorParameters\x12L\n\x15\x63ompletion_model_type\x18\x01 \x01(\x0e\x32\x18.corvic.orm.v1.ModelTypeR\x13\x63ompletionModelType\x12\x42\n\x1d\x63ompletion_system_instruction\x18\x02 \x01(\tR\x1b\x63ompletionSystemInstruction\x12\x33\n\x13\x63ompletion_model_id\x18\x03 \x01(\tH\x00R\x11\x63ompletionModelId\x88\x01\x01\x42\x16\n\x14_completion_model_id\"V\n\x10SpaceInstruction\x12 \n\x0binstruction\x18\x01 \x01(\tR\x0binstruction\x12 \n\x0cspace_run_id\x18\x02 \x01(\tR\nspaceRunId\"\x89\x02\n\x16OrchestratorParameters\x12\x1b\n\tspace_ids\x18\x01 \x03(\tR\x08spaceIds\x12k\n\x12space_instructions\x18\x02 \x03(\x0b\x32<.corvic.orm.v1.OrchestratorParameters.SpaceInstructionsEntryR\x11spaceInstructions\x1a\x65\n\x16SpaceInstructionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32\x1f.corvic.orm.v1.SpaceInstructionR\x05value:\x02\x38\x01\"\xc5\x01\n\x0f\x41gentParameters\x12R\n\x13\x65xecutor_parameters\x18\x01 \x01(\x0b\x32!.corvic.orm.v1.ExecutorParametersR\x12\x65xecutorParameters\x12^\n\x17orchestrator_parameters\x18\x02 \x01(\x0b\x32%.corvic.orm.v1.OrchestratorParametersR\x16orchestratorParameters*\
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19\x63orvic/orm/v1/agent.proto\x12\rcorvic.orm.v1\"\xf3\x01\n\x12\x45xecutorParameters\x12L\n\x15\x63ompletion_model_type\x18\x01 \x01(\x0e\x32\x18.corvic.orm.v1.ModelTypeR\x13\x63ompletionModelType\x12\x42\n\x1d\x63ompletion_system_instruction\x18\x02 \x01(\tR\x1b\x63ompletionSystemInstruction\x12\x33\n\x13\x63ompletion_model_id\x18\x03 \x01(\tH\x00R\x11\x63ompletionModelId\x88\x01\x01\x42\x16\n\x14_completion_model_id\"V\n\x10SpaceInstruction\x12 \n\x0binstruction\x18\x01 \x01(\tR\x0binstruction\x12 \n\x0cspace_run_id\x18\x02 \x01(\tR\nspaceRunId\"\x89\x02\n\x16OrchestratorParameters\x12\x1b\n\tspace_ids\x18\x01 \x03(\tR\x08spaceIds\x12k\n\x12space_instructions\x18\x02 \x03(\x0b\x32<.corvic.orm.v1.OrchestratorParameters.SpaceInstructionsEntryR\x11spaceInstructions\x1a\x65\n\x16SpaceInstructionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x35\n\x05value\x18\x02 \x01(\x0b\x32\x1f.corvic.orm.v1.SpaceInstructionR\x05value:\x02\x38\x01\"\xc5\x01\n\x0f\x41gentParameters\x12R\n\x13\x65xecutor_parameters\x18\x01 \x01(\x0b\x32!.corvic.orm.v1.ExecutorParametersR\x12\x65xecutorParameters\x12^\n\x17orchestrator_parameters\x18\x02 \x01(\x0b\x32%.corvic.orm.v1.OrchestratorParametersR\x16orchestratorParameters*\xe0\x04\n\tModelType\x12\x1a\n\x16MODEL_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19MODEL_TYPE_GEMINI_1_5_PRO\x10\x01\x12%\n!MODEL_TYPE_GEMINI_1_5_PRO_PREVIEW\x10\x02\x12\x1f\n\x1bMODEL_TYPE_GEMINI_1_5_FLASH\x10\x03\x12\'\n#MODEL_TYPE_GEMINI_1_5_FLASH_PREVIEW\x10\x04\x12\'\n#MODEL_TYPE_GEMINI_2_0_FLASH_PREVIEW\x10\r\x12\x30\n,MODEL_TYPE_GEMINI_2_0_FLASH_THINKING_PREVIEW\x10\x10\x12\x1b\n\x17MODEL_TYPE_GPT_4_O_MINI\x10\x05\x12\x16\n\x12MODEL_TYPE_GPT_4_O\x10\x06\x12\x1c\n\x18MODEL_TYPE_GPT_3_5_TURBO\x10\x07\x12\x12\n\x0eMODEL_TYPE_O_1\x10\x0e\x12\x17\n\x13MODEL_TYPE_O_1_MINI\x10\x0f\x12\x17\n\x13MODEL_TYPE_O_3_MINI\x10\x12\x12 \n\x1cMODEL_TYPE_CLAUDE_3_5_SONNET\x10\x08\x12\x1d\n\x19MODEL_TYPE_CLAUDE_3_HAIKU\x10\t\x12\x1c\n\x18MODEL_TYPE_MISTRAL_LARGE\x10\n\x12\x1b\n\x17MODEL_TYPE_MISTRAL_NEMO\x10\x0b\x12 \n\x1cMODEL_TYPE_MISTRAL_CODESTRAL\x10\x0c\x12\x15\n\x11MODEL_TYPE_CUSTOM\x10\x11\x62\x06proto3')
|
18
18
|
|
19
19
|
_globals = globals()
|
20
20
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
@@ -24,7 +24,7 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
24
24
|
_globals['_ORCHESTRATORPARAMETERS_SPACEINSTRUCTIONSENTRY']._options = None
|
25
25
|
_globals['_ORCHESTRATORPARAMETERS_SPACEINSTRUCTIONSENTRY']._serialized_options = b'8\001'
|
26
26
|
_globals['_MODELTYPE']._serialized_start=847
|
27
|
-
_globals['_MODELTYPE']._serialized_end=
|
27
|
+
_globals['_MODELTYPE']._serialized_end=1455
|
28
28
|
_globals['_EXECUTORPARAMETERS']._serialized_start=45
|
29
29
|
_globals['_EXECUTORPARAMETERS']._serialized_end=288
|
30
30
|
_globals['_SPACEINSTRUCTION']._serialized_start=290
|
{corvic_engine-0.3.0rc42 → corvic_engine-0.3.0rc43}/python/corvic_generated/orm/v1/agent_pb2.pyi
RENAMED
@@ -20,6 +20,7 @@ class ModelType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
20
20
|
MODEL_TYPE_GPT_3_5_TURBO: _ClassVar[ModelType]
|
21
21
|
MODEL_TYPE_O_1: _ClassVar[ModelType]
|
22
22
|
MODEL_TYPE_O_1_MINI: _ClassVar[ModelType]
|
23
|
+
MODEL_TYPE_O_3_MINI: _ClassVar[ModelType]
|
23
24
|
MODEL_TYPE_CLAUDE_3_5_SONNET: _ClassVar[ModelType]
|
24
25
|
MODEL_TYPE_CLAUDE_3_HAIKU: _ClassVar[ModelType]
|
25
26
|
MODEL_TYPE_MISTRAL_LARGE: _ClassVar[ModelType]
|
@@ -38,6 +39,7 @@ MODEL_TYPE_GPT_4_O: ModelType
|
|
38
39
|
MODEL_TYPE_GPT_3_5_TURBO: ModelType
|
39
40
|
MODEL_TYPE_O_1: ModelType
|
40
41
|
MODEL_TYPE_O_1_MINI: ModelType
|
42
|
+
MODEL_TYPE_O_3_MINI: ModelType
|
41
43
|
MODEL_TYPE_CLAUDE_3_5_SONNET: ModelType
|
42
44
|
MODEL_TYPE_CLAUDE_3_HAIKU: ModelType
|
43
45
|
MODEL_TYPE_MISTRAL_LARGE: ModelType
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: corvic/orm/v1/completion_model.proto
|
4
|
+
# Protobuf Python Version: 4.25.3
|
5
|
+
"""Generated protocol buffer code."""
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
from google.protobuf.internal import builder as _builder
|
10
|
+
# @@protoc_insertion_point(imports)
|
11
|
+
|
12
|
+
_sym_db = _symbol_database.Default()
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$corvic/orm/v1/completion_model.proto\x12\rcorvic.orm.v1\"S\n\x17GenericOpenAIParameters\x12\x1d\n\nmodel_name\x18\x01 \x01(\tR\tmodelName\x12\x19\n\x08\x62\x61se_url\x18\x02 \x01(\tR\x07\x62\x61seUrl\"\x9d\x01\n\x15\x41zureOpenAIParameters\x12\x19\n\x08\x62\x61se_url\x18\x01 \x01(\tR\x07\x62\x61seUrl\x12#\n\rresource_name\x18\x02 \x01(\tR\x0cresourceName\x12#\n\rdeployment_id\x18\x03 \x01(\tR\x0c\x64\x65ploymentId\x12\x1f\n\x0b\x61pi_version\x18\x04 \x01(\tR\napiVersion\"\xeb\x01\n\x19\x43ompletionModelParameters\x12\x64\n\x19generic_openai_parameters\x18\x01 \x01(\x0b\x32&.corvic.orm.v1.GenericOpenAIParametersH\x00R\x17genericOpenaiParameters\x12^\n\x17\x61zure_openai_parameters\x18\x02 \x01(\x0b\x32$.corvic.orm.v1.AzureOpenAIParametersH\x00R\x15\x61zureOpenaiParametersB\x08\n\x06paramsb\x06proto3')
|
18
|
+
|
19
|
+
_globals = globals()
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'corvic.orm.v1.completion_model_pb2', _globals)
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
23
|
+
DESCRIPTOR._options = None
|
24
|
+
_globals['_GENERICOPENAIPARAMETERS']._serialized_start=55
|
25
|
+
_globals['_GENERICOPENAIPARAMETERS']._serialized_end=138
|
26
|
+
_globals['_AZUREOPENAIPARAMETERS']._serialized_start=141
|
27
|
+
_globals['_AZUREOPENAIPARAMETERS']._serialized_end=298
|
28
|
+
_globals['_COMPLETIONMODELPARAMETERS']._serialized_start=301
|
29
|
+
_globals['_COMPLETIONMODELPARAMETERS']._serialized_end=536
|
30
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,33 @@
|
|
1
|
+
from google.protobuf import descriptor as _descriptor
|
2
|
+
from google.protobuf import message as _message
|
3
|
+
from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
4
|
+
|
5
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
6
|
+
|
7
|
+
class GenericOpenAIParameters(_message.Message):
|
8
|
+
__slots__ = ("model_name", "base_url")
|
9
|
+
MODEL_NAME_FIELD_NUMBER: _ClassVar[int]
|
10
|
+
BASE_URL_FIELD_NUMBER: _ClassVar[int]
|
11
|
+
model_name: str
|
12
|
+
base_url: str
|
13
|
+
def __init__(self, model_name: _Optional[str] = ..., base_url: _Optional[str] = ...) -> None: ...
|
14
|
+
|
15
|
+
class AzureOpenAIParameters(_message.Message):
|
16
|
+
__slots__ = ("base_url", "resource_name", "deployment_id", "api_version")
|
17
|
+
BASE_URL_FIELD_NUMBER: _ClassVar[int]
|
18
|
+
RESOURCE_NAME_FIELD_NUMBER: _ClassVar[int]
|
19
|
+
DEPLOYMENT_ID_FIELD_NUMBER: _ClassVar[int]
|
20
|
+
API_VERSION_FIELD_NUMBER: _ClassVar[int]
|
21
|
+
base_url: str
|
22
|
+
resource_name: str
|
23
|
+
deployment_id: str
|
24
|
+
api_version: str
|
25
|
+
def __init__(self, base_url: _Optional[str] = ..., resource_name: _Optional[str] = ..., deployment_id: _Optional[str] = ..., api_version: _Optional[str] = ...) -> None: ...
|
26
|
+
|
27
|
+
class CompletionModelParameters(_message.Message):
|
28
|
+
__slots__ = ("generic_openai_parameters", "azure_openai_parameters")
|
29
|
+
GENERIC_OPENAI_PARAMETERS_FIELD_NUMBER: _ClassVar[int]
|
30
|
+
AZURE_OPENAI_PARAMETERS_FIELD_NUMBER: _ClassVar[int]
|
31
|
+
generic_openai_parameters: GenericOpenAIParameters
|
32
|
+
azure_openai_parameters: AzureOpenAIParameters
|
33
|
+
def __init__(self, generic_openai_parameters: _Optional[_Union[GenericOpenAIParameters, _Mapping]] = ..., azure_openai_parameters: _Optional[_Union[AzureOpenAIParameters, _Mapping]] = ...) -> None: ...
|