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: |
|
|---|
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_name (str): Schema for the pipeline (serialized as 'schema'). customFunction (Optional[str]): Optional custom function for the pipeline. prompt (Optional[str]): Prompt for transcribe pipelines (e.g., 'transcribe-metadata' type). chunkSize (Optional[int]): Chunk size for RAG pipelines. chunkOverlap (Optional[int]): Chunk overlap for RAG pipelines.
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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | |
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: |
|
|---|
Source code in pydi_client/data/pipeline.py
86 87 88 89 90 91 92 93 94 95 96 97 | |
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
100 101 102 103 104 105 106 107 108 109 110 | |
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
113 114 115 116 117 118 119 120 121 122 123 | |
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
126 127 128 129 130 131 132 133 134 135 136 137 138 | |
Schema
SchemaListItem
Bases: BaseModel
Represents a single schema item in the list schemas response.
| Attributes: |
|
|---|
Source code in pydi_client/data/schema.py
7 8 9 10 11 12 13 14 15 16 17 | |
V1ListSchemasResponse
Bases: BaseModel
Represents a response containing a list of schema records.
| Attributes: |
|
|---|
Source code in pydi_client/data/schema.py
20 21 22 23 24 25 26 27 28 | |
SchemaItem
Bases: BaseModel
Represents a single field definition inside a schema.
| Attributes: |
|
|---|
Source code in pydi_client/data/schema.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | |
V1SchemasResponse
Bases: BaseModel
Represents a detailed schema response.
This model contains the schema name, schema type, and the list of schema fields returned by the API.
| Attributes: |
|
|---|
Source code in pydi_client/data/schema.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | |
V1CreateSchemaRequest
Bases: BaseModel
Request body for creating a new schema.
| Attributes: |
|
|---|
Source code in pydi_client/data/schema.py
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | |
V1CreateSchemaResponse
Bases: BaseModel
Response returned after attempting to create a schema.
| Attributes: |
|
|---|
Source code in pydi_client/data/schema.py
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | |
V1DeleteSchemaResponse
Bases: BaseModel
Response returned after attempting to delete a schema.
| Attributes: |
|
|---|
Source code in pydi_client/data/schema.py
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 | |
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. version (str): Model version. communicationType (str): API communication type identifier for the model. dimension (int): Model dimensionality. contextLength (int): Context length for the model. temperature (float): Temperature setting for the model. topK (int): Top-k setting for the model. topP (float): Top-p setting for the model. maximumTokens (int): Maximum token size supported by the model. timeout (int): API request timeout for the model. language (str): Language supported by the model. sampleRate (int): Sampling rate for the ASR model. automaticPunctuation (bool): Enable automatic punctuation in the ASR model.
Source code in pydi_client/data/model.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |
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
59 60 61 62 63 64 65 66 67 | |
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
70 71 72 73 74 75 76 77 | |
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. outputStore (Optional[str]): Output bucket for transcription results (transcribe usecase). indexingMode (Optional[str]): Indexing mode for RAG collections (e.g., HNSW, GPU_CAGRA). Auto-detected if omitted.
Source code in pydi_client/data/collection_manager.py
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | |
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. outputStore (Optional[str]): Output bucket for transcription results (transcribe usecase). indexingMode (Optional[str]): Indexing mode for RAG collections (e.g., HNSW, GPU_CAGRA).
Source code in pydi_client/data/collection_manager.py
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | |
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
88 89 90 91 92 93 94 95 96 | |
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_name (str): Schema associated with the pipeline (serialized as 'schema'). prompt (Optional[str]): Prompt for transcribe pipelines. chunkSize (Optional[int]): Chunk size for RAG pipelines. chunkOverlap (Optional[int]): Chunk overlap for RAG pipelines.
Source code in pydi_client/data/collection_manager.py
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | |
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
128 129 130 131 132 133 134 135 136 | |
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
139 140 141 142 143 144 145 146 147 148 149 150 151 | |
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
154 155 156 157 158 159 160 161 162 | |
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
165 166 167 168 169 170 171 172 173 174 175 | |