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 aLangChainInfinispanItem
record class. -
Method Summary
Modifier and TypeMethodDescriptionfloat[]
Returns the value of theembedding
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.metadata()
Returns the value of themetadata
record component.Returns the value of themetadataMap
record component.text()
Returns the value of thetext
record component.final String
toString()
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
-