An automated AI-powered financial research synthesizer and document analysis engine powered by InclusionAI's Ling-3.0-flash via OpenRouter. Leverages Ling-3.0-flash's 256K context window and Mixture-of-Experts (MoE) reasoning to ingest famous open-source financial papers (such as Columbia University's FinGPT: Open-Source Financial Large Language Models), perform multi-stage financial extraction, and automatically export structured markdown briefs (outputs.md).
- 📈 256K Financial Document Ingestion: Parses multi-page financial papers, SEC filings, and market sentiment reports in a single context pass.
- 🧠 124B MoE Financial Analysis: Evaluates FinGPT data pipelines, Low-Rank Adaptation (LoRA) fine-tuning budgets, and trading return metrics using Ling-3.0-flash's 5.1B active parameter density.
- ⚡ Sub-Second Latency: Powered by OpenRouter serverless infrastructure delivering fast token generation (~88 tok/s).
- 📊 Structured Markdown Export: Automatically outputs clean markdown reports (
outputs.md).
- Primary AI Model: InclusionAI
inclusionai/ling-3.0-flash:free(OpenRouter API) - PDF Extraction:
pypdf(Python PDF parsing library) - Runtime Environment: Python 3.9+
- Core Libraries:
openai,python-dotenv,colorama,pypdf - Output Format: Markdown Brief (
outputs.md)
To run this project with OpenRouter's inclusionai/ling-3.0-flash:free endpoint, follow these steps to retrieve your free API key:
- Navigate to OpenRouter: Go to https://openrouter.ai/keys.
- Sign In or Register: Log in using your GitHub, Google, or email account.
- Create API Key: Click on Create Key, specify a key name (e.g.,
Ling-Financial-Synthesizer), and copy the generated key. - Configure
.envFile: Create or edit the.envfile in the project root directory and add your key:
OPENROUTER_API_KEY=sk-or-v1-your-actual-api-key-hereRun the following commands in your terminal to set up the environment and install dependencies:
# 1. Navigate to the project directory
cd Ling-3.0-flash
# 2. Install required Python packages
pip install -r requirements.txt
# 3. Create .env file from template if not already present
cp .env.example .envExecute the financial research synthesizer script using Python:
# Run the financial PDF research synthesis workflow
python main.pyUpon execution, main.py will read fingpt_financial_paper.pdf, extract its financial context, process it through Ling-3.0-flash, and generate the output file in the root folder:
outputs.md: Structured markdown financial research brief containing sentiment benchmarks and ROI metrics.
.
├── main.py # Primary financial synthesizer script using pypdf & OpenAI SDK
├── fingpt_financial_paper.pdf # Famous open-source financial AI paper (Columbia University / AI4Finance)
├── requirements.txt # Python package dependencies
├── .env.example # Template for environment variables
├── .env # Local configuration file storing OPENROUTER_API_KEY
└── outputs.md # Generated markdown financial research brief
- 📈 SEC 10-K & 10-Q Earnings Analysis: Ingest multi-page corporate earnings reports to extract risk factors, revenue tables, and EBITDA metrics.
- 📰 Real-Time Financial News Sentiment: Analyze market news streams to classify bullish/bearish market signals for trading strategies.
- ⚖️ Financial Compliance & Regulatory Auditing: Verify corporate disclosures against SEC and FINRA regulatory compliance rules.
- 🏦 Credit Risk & Loan Default Synthesis: Evaluate borrower financial statements and historical repayment data to compute credit risk scores.
- 📊 Portfolio Backtesting & RLSP Alignment: Utilize Reinforcement Learning from Stock Prices to align LLM sentiment signals with trading yield.
- 🌐 Multi-Ticker SEC Filing Batch Ingestion: Expand
main.pyto recursively ingest and compare 10-K filings across competitor companies. - 📈 Quantitative Factor Ranking: Synthesize factor models and signal metrics directly inside
outputs.md. - 🪝 Bloomberg & Refinitiv API Connector: Stream live market ticker feeds into Ling-3.0-flash's 256K context window.
- 🔔 Real-Time Slack Trading Alerts: Broadcast high-conviction sentiment signals into quantitative trading team Slack channels.
- 🔒 Local Fine-Tuning Script: Provide an automated LoRA script for fine-tuning Ling-3.0-flash on proprietary financial datasets.
This project is released under the MIT License.
Ling-3.0-flash InclusionAI OpenRouter API FinGPT Financial AI 256K Context Window Mixture of Experts MoE AI Python AI Research PDF Synthesizer 88 Tokens/Sec Free AI Models AI Engineering