| backend_mock | R Documentation |
Returns deterministic scores derived from a digest::digest hash of the
prompt. Never hits the network. Useful for unit tests and for
package-development end-to-end runs without needing Ollama.
backend_mock(base = 50L)
base |
Baseline score (integer 0-100). Added to a small prompt-derived variation. |
A backend object.
b <- backend_mock()
b$score_record("any-model", "any prompt", temperature = 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.