Update models/converterVectorStoreModels.py
Browse files
models/converterVectorStoreModels.py
CHANGED
@@ -34,6 +34,10 @@ class VoltageRange(BaseModel):
|
|
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")
|
|
|
34 |
|
35 |
@vectorstoremodel
|
36 |
class PowerConverterVector(BaseModel):
|
37 |
+
class VectorStoreRecordDataField:
|
38 |
+
def __hash__(self):
|
39 |
+
return hash(id(self)) # Unique hash per instance
|
40 |
+
__eq__ = lambda self, other: self is other
|
41 |
id: Annotated[str, VectorStoreRecordKeyField]=Field(None, alias="id")
|
42 |
artnr: Annotated[int, VectorStoreRecordDataField()] = Field(..., alias="artnr")
|
43 |
ip: Annotated[int, VectorStoreRecordDataField()] = Field(..., alias="ip")
|