Liking cljdoc? Tell your friends :D
Clojure only.

ragtacts.embedding.base


embedcljmultimethod

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.
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.
sourceraw docstring

text->docclj

(text->doc text-or-doc)

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.
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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close