mirror of
https://github.com/MadsLorentzen/ai-job-search.git
synced 2026-09-17 08:36:25 +00:00
feat(freehire-search): add --no-description for cheap discovery passes
A default search hydrates full bodies - ~73% of the payload, ~20k tokens per query fed into agent context - while /scrape's own Step 2 says to pre-filter by title before reading bodies. The flag keeps every other field and drops the bodies (live 10-result search: ~58k -> ~10k chars); hydration stays the default per the documented trade-off. The API returns bodies regardless of include_description=false (verified live), so the lean guarantee is enforced client-side. Review opportunity O1 (2026-08-19), approved as an enhancement. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
c85640e30a
commit
dd02c82485
@@ -95,7 +95,10 @@ posting's complete text, so a search of 20 roles is 1 request rather than 1 + 20
|
||||
Do **not** loop `detail` over search hits to read their descriptions — reach for
|
||||
`detail` only to look one posting up by slug (e.g. from the tracker, or a posting
|
||||
already closed and therefore absent from search). Full descriptions are verbose:
|
||||
keep `--limit` modest, and pre-filter on title/company before reading bodies.
|
||||
keep `--limit` modest, and pre-filter on title/company before reading bodies -
|
||||
or pass `--no-description` for a cheap discovery pass that keeps every other
|
||||
field and drops the bodies entirely (fetch a shortlisted job's body with
|
||||
`detail`, or re-run the search without the flag).
|
||||
|
||||
Facet filters (values come from freehire's controlled vocabularies; comma-separate for OR within a facet):
|
||||
- `--region <codes>` — macro-region, e.g. `global`, `eu`, `us`, `apac`, `latam`, `cis`. `--region eu,us`. Use `none` to match jobs whose region could **not** be resolved (see "Partial data" below).
|
||||
|
||||
Reference in New Issue
Block a user