search_requirements
Search loaded ECSS and NASA standards by keyword to find requirements and table rows with exact citations. Use queries like "factor of safety" or "NASA-STD-5019" to locate specific clauses.
Instructions
Search across loaded requirements (BM25; hybrid with embeddings when the server enables it). Optionally restrict to one document.
query: REQUIRED search words, never empty, e.g. "ultimate factor of safety metallic structure" or "fracture control NASA-STD-5019". A call without search words returns no results.
Returns {"results": [...]} plus, when relevant, "not_loaded", "elsewhere" and "notes".
Without doc_id, standards named in the query (e.g. "NASA-STD-5001B", "ECSS-E-ST-32-01") restrict
the search to them. not_loaded lists named standards that are not loaded: never answer from
them. It is split into in_documents_folder (present in the user's documents folder but not loaded,
with issue and status: say so, and that they can be loaded through corpus.yaml) and
not_in_documents_folder (the user does not have them). elsewhere holds stronger hits from other loaded documents when the named document
matches weakly — it may not cover the topic. Table rows are searched too: a hit found through a
table carries matched_table_row (table citation, row labels, cells) — take the numbers from
there or from get_table, and cite both the requirement and the table. Records and rows carry tier
(verified, checked, unchecked) and page; rows from tables below verified carry check: repeat it
("check against the source, page N") next to any number taken from them. Each hit may carry
neighbours: the records next to it in the same clause (a requirement is often split over sibling
letters). They are full records with citations; read them before concluding a clause is not covered.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| doc_id | No |