Sathvika-Alla commited on
Commit
1acc78e
·
verified ·
1 Parent(s): ac19e5b

Update models/converterVectorStoreModels.py

Browse files
models/converterVectorStoreModels.py CHANGED
@@ -32,13 +32,11 @@ class VoltageRange(BaseModel):
32
  v_str = v_str.replace(',', '.')
33
  return float(v_str)
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")
44
  type: Optional[Annotated[str, VectorStoreRecordDataField()]] = Field(None, alias="type")
 
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()]=Field(None, alias="id")
 
 
 
 
40
  artnr: Annotated[int, VectorStoreRecordDataField()] = Field(..., alias="artnr")
41
  ip: Annotated[int, VectorStoreRecordDataField()] = Field(..., alias="ip")
42
  type: Optional[Annotated[str, VectorStoreRecordDataField()]] = Field(None, alias="type")