Data model
Pipeline
V1DeletePipelineResponse
Bases: BaseModel
Response model for deleting a pipeline. This model contains fields to indicate the status of the delete operation, any errors that occurred, and a message providing additional information.
Attributes:
Name | Type | Description |
---|---|---|
status |
Optional[str]
|
Status of the delete operation. |
Status |
Optional[str]
|
Alternative case for status of the delete operation. |
Error |
Optional[Dict[Any, Any]]
|
Error message if the delete operation fails. |
success |
Optional[bool]
|
Indicates if the delete operation was successful. |
message |
Optional[str]
|
Message providing additional information about the operation. |
Source code in pydi_client/data/pipeline.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
|
FilterItem
Bases: BaseModel
Represents a filter item used in event filtering for pipelines. Attributes: objectSuffix (List[str]): List of suffixes for objects to filter. maxObjectSize (int): Maximum size of the object to filter.
Source code in pydi_client/data/pipeline.py
39 40 41 42 43 44 45 46 47 |
|
V1CreatePipeline
Bases: BaseModel
Represents a request to create a pipeline. Attributes: name (str): Name of the pipeline. type (str): Type of the pipeline. model (Optional[str]): Optional model associated with the pipeline. eventFilter (FilterItem): Event filter criteria for the pipeline. schema (Optional[str]): Optional schema for the pipeline. customFunction (Optional[str]): Optional custom function for the pipeline.
Source code in pydi_client/data/pipeline.py
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
|
V1CreatePipelineResponse
Bases: BaseModel
Response model for creating a pipeline. This model contains fields to indicate the success of the creation operation and a message providing additional information.
Attributes:
Name | Type | Description |
---|---|---|
success |
bool
|
Indicates if the pipeline creation was successful. |
message |
str
|
Message providing additional information about the operation. |
Source code in pydi_client/data/pipeline.py
69 70 71 72 73 74 75 76 77 78 79 80 |
|
BucketUpdateResponse
Bases: BaseModel
Response model for updating buckets in a collection. This model contains fields to indicate the success of the update operation and a message providing additional information. Attributes: success (bool): Indicates if the bucket update was successful. message (str): Message providing additional information about the operation.
Source code in pydi_client/data/pipeline.py
83 84 85 86 87 88 89 90 91 92 93 |
|
NodeWithScore
Bases: BaseModel
Represents a node with its associated score and metadata. Attributes: score (float): Score associated with the node. dataChunk (str): Data chunk associated with the node. chunkMetadata (Optional[Dict[str, Any]]): Optional metadata associated with the data chunk
Source code in pydi_client/data/pipeline.py
96 97 98 99 100 101 102 103 104 105 106 |
|
V1SimilaritySearchResponse
Bases: BaseModel
Response model for similarity search in a collection. This model contains fields to indicate the success of the search operation, a message providing additional information, and the results of the search. Attributes: success (bool): Indicates if the similarity search was successful. message (str): Message providing additional information about the operation. results (Optional[List[NodeWithScore]]): List of nodes with their scores returned by the search.
Source code in pydi_client/data/pipeline.py
109 110 111 112 113 114 115 116 117 118 119 120 121 |
|
Schema
SchemaItem
Bases: BaseModel
Represents a schema item with a name and type. Attributes: name (str): Name of the schema field. type (str): Type of the schema field.
Source code in pydi_client/data/schema.py
7 8 9 10 11 12 13 14 15 |
|
V1SchemasResponse
Bases: BaseModel
Represents a response containing schema information. This model contains fields to represent the schema name, type, and a list of schema items. Attributes: name (str): Name of the schema. type (str): Type of the schema. schema (List[SchemaItem]): List of schema fields.
Source code in pydi_client/data/schema.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|
SchemaRecordSummary
Bases: BaseModel
Represents a summary of a schema record. Attributes: id (str): Unique identifier for the schema record. name (str): Name of the schema record.
Source code in pydi_client/data/schema.py
34 35 36 37 38 39 40 41 42 |
|
V1ListSchemasResponse
Bases: BaseModel
Response model for listing available schemas. This model contains a list of schema records. Attributes: schemas (List[SchemaRecordSummary]): List of schema records.
Source code in pydi_client/data/schema.py
45 46 47 48 49 50 51 52 |
|
Model
V1ModelsResponse
Bases: BaseModel
Response model for listing available models. This model contains fields to represent the system model name, model name, capabilities, dimensionality, maximum tokens supported by the model, and the version of the model. Attributes: name (str): System model name. modelName (str): Model name. capabilities (List[str]): List of capabilities such as embedding, large language model, etc. dimension (int): Model dimensionality. maximumTokens (int): Maximum token size supported by the model. version (str): Model version.
Source code in pydi_client/data/model.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
|
ModelRecordSummary
Bases: BaseModel
Represents a summary of a model record. Attributes: id (str): Unique identifier for the model record. name (str): Name of the model record.
Source code in pydi_client/data/model.py
31 32 33 34 35 36 37 38 39 |
|
V1ListModelsResponse
Bases: BaseModel
Response model for listing available models. This model contains a list of model records. Attributes: models (List[ModelRecordSummary]): List of model records.
Source code in pydi_client/data/model.py
42 43 44 45 46 47 48 49 |
|
Collection Manager
V1DeleteCollectionResponse
Bases: BaseModel
Response model for deleting a collection. This model contains fields to indicate the status of the delete operation, any errors that occurred, and a message providing additional information. Attributes: status (Optional[str]): Status of the delete operation. Status (Optional[str]): Alternative case for status of the delete operation. Error (Optional[Dict[Any, Any]]): Error message if the delete operation fails. success (Optional[bool]): Indicates if the delete operation was successful. message (Optional[str]): Message providing additional information about the operation.
Source code in pydi_client/data/collection_manager.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|
V1CreateCollection
Bases: BaseModel
Represents a request to create a collection. Attributes: name (str): Name of the collection. pipeline (str): Pipeline associated with the collection. buckets (Optional[List[str]]): Optional list of buckets associated with the collection.
Source code in pydi_client/data/collection_manager.py
37 38 39 40 41 42 43 44 45 46 47 |
|
V1CollectionResponse
Bases: BaseModel
Represents a response containing collection information. This model contains fields to represent the collection name, pipeline, and an optional list of buckets associated with the collection. Attributes: name (str): Name of the collection. pipeline (str): Pipeline associated with the collection. buckets (Optional[List[str]]): Optional list of buckets associated with the collection.
Source code in pydi_client/data/collection_manager.py
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
|
BucketUpdateRequest
Bases: BaseModel
Represents a request to update the buckets of a collection. Attributes: name (str): Name of the collection. buckets (List[str]): List of buckets to be associated with the collection.
Source code in pydi_client/data/collection_manager.py
68 69 70 71 72 73 74 75 76 |
|
V1PipelineResponse
Bases: BaseModel
Represents a response containing pipeline information. This model contains fields to represent the pipeline name, type, model, custom function, event filter criteria, and schema associated with the pipeline. Attributes: name (str): Name of the pipeline. type (str): Type of the pipeline. model (Optional[str]): Optional model associated with the pipeline. customFunction (Optional[str]): Optional custom function for the pipeline. eventFilter (Dict[str, Any]): Event filter criteria for the pipeline. schema (str): Schema associated with the pipeline.
Source code in pydi_client/data/collection_manager.py
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
|
ListCollectionItem
Bases: BaseModel
Represents a summary of a collection item. Attributes: id (Optional[str]): Unique identifier for the collection item. name (Optional[str]): Name of the collection item.
Source code in pydi_client/data/collection_manager.py
100 101 102 103 104 105 106 107 108 |
|
ListCollection
Bases: RootModel[List[ListCollectionItem]]
Response model for listing available collections. This model contains a list of collection items. Attributes: root (List[ListCollectionItem]): List of collection items.
Source code in pydi_client/data/collection_manager.py
111 112 113 114 115 116 117 118 119 120 121 122 123 |
|
ListPipeline
Bases: BaseModel
Represents a summary of a pipeline. Attributes: id (Optional[str]): Unique identifier for the pipeline. name (Optional[str]): Name of the pipeline.
Source code in pydi_client/data/collection_manager.py
126 127 128 129 130 131 132 133 134 |
|
ListPipelines
Bases: RootModel[List[ListPipeline]]
Response model for listing available pipelines. This model contains a list of pipelines. Attributes: root (List[ListPipeline]): List of pipelines.
Source code in pydi_client/data/collection_manager.py
137 138 139 140 141 142 143 144 145 146 147 |
|