TextDocumentEmbedder
open class TextDocumentEmbedder<Document, Path>(documentReader: DocumentProvider<Path, Document>, embedder: Embedder) : DocumentEmbedder<Document> (source)
A class that provides functionality for embedding text documents and comparing their embeddings.
This class uses a DocumentProvider
to extract textual content from a generic document type, and then utilizes an Embedder
to convert the text into vector representations (embeddings). The embeddings can be used to analyze or compare the documents.
Parameters
Document
The type representing the document to be processed.