Record Class LangChainInfinispanItem
java.lang.Object
java.lang.Record
dev.langchain4j.store.embedding.infinispan.LangChainInfinispanItem
- Record Components:
id- , the id of the itemembedding- , the vectortext- , associated textmetadata- , additional set of metadata
-
Constructor Summary
ConstructorsConstructorDescriptionLangChainInfinispanItem(String id, float[] embedding, String text, Set<LangChainMetadata> metadata, Map<String, Object> metadataMap) Creates an instance of aLangChainInfinispanItemrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloat[]Returns the value of theembeddingrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.metadata()Returns the value of themetadatarecord component.Returns the value of themetadataMaprecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LangChainInfinispanItem
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
id
-
embedding
-
text
-
metadata
-
metadataMap
-