style: address Sphinx double-backtick snippet syntax (#33389)

This commit is contained in:
Mason Daugherty
2025-10-09 13:35:51 -04:00
committed by GitHub
parent f405a2c57d
commit d8a680ee57
145 changed files with 1306 additions and 1307 deletions

View File

@@ -69,16 +69,16 @@ class NomicEmbeddings(Embeddings):
Args:
model: model name
nomic_api_key: optionally, set the Nomic API key. Uses the ``NOMIC_API_KEY``
nomic_api_key: optionally, set the Nomic API key. Uses the `NOMIC_API_KEY`
environment variable by default.
dimensionality: The embedding dimension, for use with Matryoshka-capable
models. Defaults to full-size.
inference_mode: How to generate embeddings. One of ``'remote'``, ``'local'``
(Embed4All), or ``'dynamic'`` (automatic). Defaults to ``'remote'``.
inference_mode: How to generate embeddings. One of `'remote'`, `'local'`
(Embed4All), or `'dynamic'` (automatic). Defaults to `'remote'`.
device: The device to use for local embeddings. Choices include
``'cpu'``, ``'gpu'``, ``'nvidia'``, ``'amd'``, or a specific device
name. See the docstring for ``GPT4All.__init__`` for more info.
Typically defaults to ``'cpu'``. Do not use on macOS.
`'cpu'`, `'gpu'`, `'nvidia'`, `'amd'`, or a specific device
name. See the docstring for `GPT4All.__init__` for more info.
Typically defaults to `'cpu'`. Do not use on macOS.
vision_model: The vision model to use for image embeddings.
"""
@@ -96,8 +96,8 @@ class NomicEmbeddings(Embeddings):
Args:
texts: list of texts to embed
task_type: the task type to use when embedding. One of ``'search_query'``,
``'search_document'``, ``'classification'``, ``'clustering'``
task_type: the task type to use when embedding. One of `'search_query'`,
`'search_document'`, `'classification'`, `'clustering'`
"""
output = embed.text(