CassandraGraphVectorStore(
self,
embedding: Embeddings,
session: Session | None = None,
keyspace:Get the embeddings for the documents and add them to the vectorstore.
| Name | Type | Description |
|---|---|---|
embedding* | Embeddings | Embedding function to use. |
session | Session | None | Default: NoneCassandra driver session. If not provided, it is resolved from cassio. |
keyspace | str | None | Default: NoneCassandra keyspace. If not provided, it is resolved from cassio. |
table_name | str | Default: '' |
ttl_seconds | int | None | Default: None |
body_index_options | list[tuple[str, Any]] | None | Default: None |
setup_mode | SetupMode | Default: SetupMode.SYNC |
metadata_deny_list | Optional[list[str]] | Default: None |
Cassandra table (required).
Optional time-to-live for the added texts.
Optional options used to create the body index. Eg. body_index_options = [cassio.table.cql.STANDARD_ANALYZER]
mode used to create the Cassandra table (SYNC, ASYNC or OFF).
Optional list of metadata keys to not index.
i.e. to fine-tune which of the metadata fields are indexed.
Note: if you plan to have massive unique text metadata entries,
consider not indexing them for performance
(and to overcome max-length limitations).
Note: the metadata_indexing parameter from
langchain_community.utilities.cassandra.Cassandra is not
exposed since CassandraGraphVectorStore only supports the
deny_list option.