Class Index
java.lang.Object
dev.langchain4j.store.embedding.oracle.Index
Represents a database index. Indexes can be configured using two builders:
IVFIndexBuilder
allows to configure an Inverted File Flat (IVF) index
on the embedding column of the EmbeddingTable
.
JSONIndexBuilder
allows to configure a function-based index on one or
several keys of the metadata column of the EmbeddingTable
. The function
used to index a key is the same as the function used for searching on the store.
-
Method Summary
Modifier and TypeMethodDescriptionstatic IVFIndexBuilder
Creates a builder to configure an IVF index on the embedding column of theEmbeddingTable
.static JSONIndexBuilder
Creates a builder to configure a function-based index on one or several keys of the metadata column of theEmbeddingTable
.name()
Returns the name of the index.Returns the name of this table.
-
Method Details
-
ivfIndexBuilder
Creates a builder to configure an IVF index on the embedding column of theEmbeddingTable
.- Returns:
- A builder that allows to configure an IVF index.
-
jsonIndexBuilder
Creates a builder to configure a function-based index on one or several keys of the metadata column of theEmbeddingTable
.- Returns:
- A builder that allows to configure an index on the metadata column.
-
name
Returns the name of the index.- Returns:
- The name of the index or null if the name has not been set and the index has not been created.
-
tableName
Returns the name of this table.- Returns:
- Once the index has been created it returns the table name, otherwise it returns null.
-