Search Documents
Documents
Search Documents
Search SEC filings with keyword, semantic, or hybrid modes
GET
Search Documents
Overview
Search across SEC filing sections including debt footnotes, credit agreements, indentures, and MD&A sections. Find covenant language, guarantor lists, and specific debt terms. Supports three search modes:- Keyword (default) — PostgreSQL full-text search with relevance ranking
- Semantic — Vector similarity search using Gemini embeddings (finds conceptually similar content even without keyword matches)
- Hybrid — Combines keyword and semantic results via Reciprocal Rank Fusion for the best of both
Request
Search query. For keyword/hybrid mode, uses full-text search syntax. For semantic mode, use natural language.Example:
maintenance covenant, subordinated, can they pay dividendsSearch mode. One of:
keyword— Full-text search with relevance ranking (default)semantic— Vector similarity search using AI embeddingshybrid— Combines keyword + semantic via Reciprocal Rank Fusion
Comma-separated company tickers.Example:
RIG,CHTRFiling type:
10-K, 10-Q, 8-KSection type to search. See section types below.
Minimum filing date (YYYY-MM-DD).
Maximum filing date (YYYY-MM-DD).
Fields to return.Example:
ticker,section_type,snippet,relevance_score,semantic_scoreSort order:
-relevance, -filing_date, filing_dateResults per page. Maximum 100.
Pagination offset.
Section Types
| Type | Description | Source |
|---|---|---|
exhibit_21 | Subsidiary list | 10-K Exhibit 21 |
debt_footnote | Long-term debt details | 10-K/10-Q Notes |
mda_liquidity | Liquidity discussion | MD&A section |
credit_agreement | Full credit facility docs | 8-K Exhibit 10 |
indenture | Bond indentures | 8-K Exhibit 4 |
guarantor_list | Guarantor subsidiaries | Notes |
covenants | Financial covenants | Notes/Exhibits |
Response
Array of matching document sections.
Examples
Search Debt Footnotes
Response
Search Credit Agreements
Find maintenance covenants:Search Indentures
Find events of default:Semantic Search
Find conceptually similar content using natural language — no exact keyword match needed:Semantic search finds “Limitation on Restricted Payments” for the query “can they pay dividends” — even though none of the keywords match. This is the power of vector similarity search.
Hybrid Search
Combine keyword precision with semantic understanding:Get Full Document Content
Use Cases
Find Covenant Details
Search for Specific Terms
Monitor Filing Updates
Search Modes
| Mode | Best For | How It Works |
|---|---|---|
keyword | Exact terms, legal language | PostgreSQL full-text search with ts_rank relevance scoring |
semantic | Natural language questions, conceptual search | Embeds query with Gemini, finds similar document chunks via cosine similarity (threshold 0.3) |
hybrid | Best overall results | Runs both keyword and semantic, combines via Reciprocal Rank Fusion (RRF) |
- Use
keywordwhen you know the exact terminology (e.g.,event of default,SOFR) - Use
semanticwhen asking questions in plain English (e.g.,can they pay dividends,what happens if they miss a payment) - Use
hybridwhen you want comprehensive results that catch both exact matches and conceptually related content
Notes
- Keyword mode uses PostgreSQL full-text search with relevance ranking
- Semantic mode uses 768-dimensional Gemini embeddings with cosine similarity
- Hybrid mode combines both via Reciprocal Rank Fusion (k=60)
- Snippets highlight matching terms with
<b>tags (keyword and hybrid modes) - Credit agreements and indentures can be large (up to 500K chars)
- Use
contentfield sparingly to avoid large responses - Credit cost: 3 credits per request

