AGENT SKILL

fuzzy-name-search

暂无简介

License 许可
Apache-2.0
最近更新
2026-11-14
Stars
★ 0
Forks
1

02 资源文件 2

03 SKILL.md 正文

Overview

This skill provides two small command-line utilities:

  • scripts/search_fund.py: fuzzy (or exact) search for funds/managers in COVERPAGE.tsv
  • scripts/search_stock_cusip.py: fuzzy search for issuer names and return candidate CUSIPs from INFOTABLE.tsv

The dataset is expected at:

  • ${DATA_ROOT}/${QUARTER}/COVERPAGE.tsv
  • ${DATA_ROOT}/${QUARTER}/INFOTABLE.tsv

Where ${QUARTER} is a folder like 2025-q3.

Path / working-directory convention

You can run the scripts either:

  • From the skill directory:

    cd skills/fuzzy-name-search
    python3 scripts/search_fund.py ...
    
  • Or from the repo root (use the full path):

    python3 skills/fuzzy-name-search/scripts/search_fund.py ...
    

All commands below assume you are in skills/fuzzy-name-search.

Usage

1) Fuzzy search a fund using its name

python3 scripts/search_fund.py --keywords "bridgewater" --quarter 2025-q2 --topk 10

This prints the top matches by fuzzy score (WRatio).

2) Exact search a fund using accession number

python3 scripts/search_fund.py \
  --accession_number 0001172661-25-003151 \
  --quarter 2025-q2

3) Fuzzy search a stock CUSIP using its name

python3 scripts/search_stock_cusip.py \
  --keywords "palantir" \
  --quarter 2025-q3 \
  --topk 10 \
  --data_root /root

Notes:

  • CUSIPs are normalized to uppercase.
  • Prefer common-equity (non-option) rows when the dataset contains both common equity and option legs.
  • Confirm the selected CUSIP occurs in the requested quarter’s INFOTABLE.tsv.

04 同仓库更多 Skills