Return the embedding of a texts.
Args:
:type
: A keyword with the embedding type.Returns:
Return the embedding of a texts. Args: - embedding: A map with the following - `:type`: A keyword with the embedding type. - texts: A list of strings. Returns: - A list of float embeddings.
(text->doc text-or-doc)
Return a document from a text or a document.
Args:
Returns:
:id
: A string with the document id.:text
: A string with the document text.:metadata
: A map with the document metadata.Return a document from a text or a document. Args: - text-or-doc: A string or a map with the following Returns: - A map with the following keys: - `:id`: A string with the document id. - `:text`: A string with the document text. - `:metadata`: A map with the document metadata.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close