Install
openclaw skills install @tinghao0724/sec-guidanceExtract management guidance and forward-looking statements from SEC 10-K/10-Q filings using a local RAG pipeline.
openclaw skills install @tinghao0724/sec-guidanceExtracts forward-looking management guidance from SEC 10-K/10-Q filings using a local multi-modal RAG pipeline (Elasticsearch + sentence-transformers + Ollama).
The pipeline directory is read from the SEC_PIPELINE_DIR environment variable.
In ~/.openclaw/openclaw.json:
{
skills: {
entries: {
"sec-guidance": {
enabled: true,
env: { SEC_PIPELINE_DIR: "/path/to/your/sec-rag-pipeline" }
}
}
}
}
Or export in your shell before starting the gateway:
export SEC_PIPELINE_DIR="/path/to/your/sec-rag-pipeline"
docker ps | grep elastic # confirm it's running
cd "$SEC_PIPELINE_DIR"
# Download filings (any ticker, any form type)
python download_sec_filings.py --ticker AAPL --form 10-Q --format pdf
python download_sec_filings.py --ticker AAPL --form 10-K --format pdf
# Ingest into Elasticsearch
python run_pipeline.py ingest
Check index status:
python run_pipeline.py stats
Default (5 standard guidance queries):
python "{baseDir}/extract_guidance.py"
With options:
python "{baseDir}/extract_guidance.py" --ticker AAPL --form 10-K --top-k 8
Single custom question:
python "{baseDir}/extract_guidance.py" --query "What did management say about iPhone revenue next year?"
Or use the pipeline's ask command directly:
python "$SEC_PIPELINE_DIR/run_pipeline.py" ask "What is management's outlook for gross margins?"
cd "$SEC_PIPELINE_DIR"
python download_sec_filings.py --ticker MSFT --form 10-Q --format pdf --limit 8
python run_pipeline.py ingest
Each query prints the LLM answer with inline citations [1], [2], etc., plus a source list (filename, page number, filing date).
| Component | Purpose |
|---|---|
| Elasticsearch (local/Docker) | Hybrid search index |
sentence-transformers | Embedding model (all-MiniLM-L6-v2) |
cross-encoder | Neural reranker |
Ollama (hermes3:8b or similar) | Answer generation |
pymupdf, pdfplumber | PDF ingestion |