Update models/converterVectorStoreModels.py
Browse files
models/converterVectorStoreModels.py
CHANGED
|
@@ -32,33 +32,31 @@ class VoltageRange(BaseModel):
|
|
| 32 |
v_str = v_str.replace(',', '.')
|
| 33 |
return float(v_str)
|
| 34 |
|
| 35 |
-
|
| 36 |
-
|
| 37 |
@vectorstoremodel
|
| 38 |
class PowerConverterVector(BaseModel):
|
| 39 |
-
id: Annotated[str, VectorStoreRecordKeyField
|
| 40 |
artnr: Annotated[int, VectorStoreRecordDataField()] = Field(..., alias="artnr")
|
| 41 |
ip: Annotated[int, VectorStoreRecordDataField()] = Field(..., alias="ip")
|
| 42 |
-
|
| 43 |
-
lamps:
|
| 44 |
|
| 45 |
-
name:
|
| 46 |
-
efficiency_full_load:
|
| 47 |
-
pdf_link:
|
| 48 |
-
converter_description:
|
| 49 |
|
| 50 |
-
nom_input_voltage:
|
| 51 |
-
output_voltage:
|
| 52 |
|
| 53 |
-
unit:
|
| 54 |
-
price:
|
| 55 |
-
life_cycle:
|
| 56 |
-
size:
|
| 57 |
-
ccr_amplitude:
|
| 58 |
-
dimmability:
|
| 59 |
-
dim_list_type:
|
| 60 |
-
gross_weight:
|
| 61 |
-
strain_relief:
|
| 62 |
embedding: Annotated[List[float], VectorStoreRecordVectorField(
|
| 63 |
dimensions=1536,
|
| 64 |
distance_function=DistanceFunction.COSINE_DISTANCE,
|
|
|
|
| 32 |
v_str = v_str.replace(',', '.')
|
| 33 |
return float(v_str)
|
| 34 |
|
|
|
|
|
|
|
| 35 |
@vectorstoremodel
|
| 36 |
class PowerConverterVector(BaseModel):
|
| 37 |
+
id: Annotated[str, VectorStoreRecordKeyField]=Field(None, alias="id")
|
| 38 |
artnr: Annotated[int, VectorStoreRecordDataField()] = Field(..., alias="artnr")
|
| 39 |
ip: Annotated[int, VectorStoreRecordDataField()] = Field(..., alias="ip")
|
| 40 |
+
type: Annotated[str, VectorStoreRecordDataField()] = Field(None, alias="type")
|
| 41 |
+
lamps: Dict[str, LampConnections] = None
|
| 42 |
|
| 43 |
+
name: Annotated[str, VectorStoreRecordDataField()] = Field(None, alias="name")
|
| 44 |
+
efficiency_full_load: Annotated[float, VectorStoreRecordDataField()] = Field(None, alias="efficiency_full_load")
|
| 45 |
+
pdf_link: Annotated[str, VectorStoreRecordDataField()] = None
|
| 46 |
+
converter_description: Annotated[str, VectorStoreRecordDataField()] = Field(None, alias="converter_description")
|
| 47 |
|
| 48 |
+
nom_input_voltage: [VoltageRange] = Field(None, alias="nom_input_voltage_v")
|
| 49 |
+
output_voltage: [VoltageRange] = Field(None, alias="output_voltage_v")
|
| 50 |
|
| 51 |
+
unit: Annotated[str, VectorStoreRecordDataField()] = Field(None, alias="unit")
|
| 52 |
+
price: Annotated[float, VectorStoreRecordDataField()] = Field(None, alias="listprice")
|
| 53 |
+
life_cycle: Annotated[str, VectorStoreRecordDataField()] = Field(None, alias="lifecycle")
|
| 54 |
+
size: Annotated[str, VectorStoreRecordDataField()] = Field(None, alias="size")
|
| 55 |
+
ccr_amplitude: Annotated[str, VectorStoreRecordDataField()] = Field(None, alias="ccr_amplitude")
|
| 56 |
+
dimmability: Annotated[str, VectorStoreRecordDataField()] = Field(None, alias="dimmability")
|
| 57 |
+
dim_list_type: Annotated[str, VectorStoreRecordDataField()] = Field(None, alias="dimlist_type")
|
| 58 |
+
gross_weight: Annotated[float, VectorStoreRecordDataField()] = Field(None, alias="gross_weight")
|
| 59 |
+
strain_relief: Annotated[str, VectorStoreRecordDataField()] = Field(None, alias="strain_relief")
|
| 60 |
embedding: Annotated[List[float], VectorStoreRecordVectorField(
|
| 61 |
dimensions=1536,
|
| 62 |
distance_function=DistanceFunction.COSINE_DISTANCE,
|