find options
The command takes QUESTION. Start with its value and exit code.
| Option | What it does |
|---|---|
--none | Lets it answer that nothing fits. It then prints nothing and exits 3. |
--lines, --jsonl | How the lines are framed. --lines is the default. CSV and TSV are refused. |
--field POINTER | Names the part of each record to read. |
--input FILE | Reads the evidence from a file instead of standard input. |
--plan | Prints the plan and sends nothing. |
--model NAME | The model the request carries. Name a version to pin a run. The default is jev-1.13.0. |
--url BASE | The server's base address. It outranks THINKTHEN_BASE_URL. |
--timeout SECONDS | How long one attempt may take. The default is 30. |
--max-retries N | How many times a retried status is sent again. A transport failure is never sent again. The default is 3. |
--record DIR | Calls the backend and saves each exchange in DIR. |
--replay DIR | Answers from DIR alone, with no key and no network. |
--cache DIR | Answers from DIR when it can and saves new exchanges there. |
--no-cache | Turns off the answer cache for one run. |
--profile FILE | Applies local backend limits and names the calibration profile in use. |
More examples
No line says how to cancel. find prints nothing and exits 3.
question="Which line says how to cancel an order?"
cat <<'EOF' |
Returns need the original receipt.
Refunds are issued within 30 days of purchase.
Shipping is free on orders over $50.
Gift cards cannot be exchanged for cash.
EOF
thinkthen find "$question" --noneNo outputexit 3: nothing fits, under --none
Q1 holds the reset steps, and the whole record comes back.
question="Which answer says how to reset a password?"
cat <<'EOF' |
{"id": "Q1", "text": "Open Settings and choose Reset password."}
{"id": "Q2", "text": "Invoices are emailed on the first of the month."}
{"id": "Q3", "text": "We ship to the US and Canada."}
EOF
thinkthen find "$question" \
--jsonl \
--field /text |
jq .Output
{
"id": "Q1",
"text": "Open Settings and choose Reset password."
}exit 0
On GitHub: github.com/botassembly/thinkthen