What needs to be done
Add a --csv output option to search.py so results can be exported to spreadsheets.
Which file(s) to modify
search.py — add CSV output format
Proposed approach
- Add
--csv flag to argparse
- Use
csv.writer (stdlib) to output results
- Include columns: rank, similarity, signal_score, route_to, title, url, core_insight
Example usage
python3 search.py "AI agents" --csv > results.csv
python3 search.py "knowledge management" --csv -k 20
Acceptance criteria
What needs to be done
Add a
--csvoutput option tosearch.pyso results can be exported to spreadsheets.Which file(s) to modify
search.py— add CSV output formatProposed approach
--csvflag to argparsecsv.writer(stdlib) to output resultsExample usage
Acceptance criteria
csvmodule (no new dependencies)--rerankand default mode