IndexGeneration#
- class scikitplot.corpus.IndexGeneration(schema_version, embedding_manifest_id, document_digest, backend)[source]#
Identity of one built index.
- Parameters:
- schema_versionstr
Document serialisation generation.
- embedding_manifest_idstr or None
Fingerprint of the embedding generation, or
Nonefor an index with no vectors.- document_digeststr
Digest of the published rows: each row’s identity and content, in the order written. Not a set digest – order and content are what the sidecar records, so both belong to the identity.
- backendstr or None
Name of the index backend, or
Nonewhen no dense index was built.
- Parameters:
Examples
>>> a = IndexGeneration("2.0", None, "2-abc", "bruteforce") >>> b = IndexGeneration("2.0", None, "2-abc", "bruteforce") >>> a == b and a.fingerprint == b.fingerprint True
- classmethod from_dict(data)[source]#
Rebuild from
to_dictoutput.- Raises:
- ValueError
If a declared fingerprint disagrees with the fields supplied, which means the payload was altered.
- Parameters:
- Return type:
- matches(other)[source]#
Whether
otherdescribes the same index.- Parameters:
other (IndexGeneration | None)
- Return type: