anti-gambling-trader-tw
免費開源的投資反詐、交易統計與自動化交易程式工具:預設 PaperBroker,提供 14 種券商/交易所選項;交易紀錄分析在本機執行。
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗An Agentic RAG system designed for Indian IPO prospectuses (Draft Red Herring Prospectus [DRHP] and Red Herring Prospectus [RHP]). Features page-cited evidence attribution, deterministic financial calculation tools, domain-specialized LangGraph agents, version-aware comparative analysis, and 100% cross-IPO tenant isolation.
BAAI/bge-base-en-v1.5), sparse lexical search (BM25Okapi), Reciprocal Rank Fusion (RRF), and Cross-Encoder Reranking (BAAI/bge-reranker-base).
Evaluated on a hand-labelled set of 16 queries over the MOEL DRHP (data/corrected_benchmark_results.json):
| Method | Hit@5 | Hit@10 |
|---|---|---|
| BM25 only | 50.0% (8/16) | 68.8% (11/16) |
| Dense only (Chroma) | 68.8% (11/16) | 100% (16/16) |
| Hybrid (BM25 + Dense, RRF) | 75.0% (12/16) | 87.5% (14/16) |
| Hybrid + Cross-Encoder Rerank | 62.5% (10/16) | 100% (16/16) |
Hybrid RRF gives the best top-5 hit rate; adding the reranker gives the best top-10 recall but lowered Hit@5 on this small set. The set is small and single-company, so treat these as directional.
User Query (via Web UI / REST API)
│
▼
┌───────────────────────────────────────────────┐
│ FastAPI Server │
└──────────────────────┬────────────────────────┘
│
▼
┌───────────────────────────────────────────────┐
│ LangGraph State Router (100% Acc) │
└──────┬──────────┬──────────┬──────────┬───────┘
│ │ │ │
▼ ▼ ▼ ▼
┌───────────┐┌──────────┐┌──────────┐┌──────────────┐
│ Financial ││ Risk ││Litigation││Related-Party │
│ Agent ││ Agent ││ Agent ││ Agent │
└─────┬─────┘└────┬─────┘└────┬─────┘└──────┬───────┘
│ │ │ │
│ ┌───────┴───────────┴─────────┐ │
│ │ Hybrid Dense-Sparse Engine │ │
│ │ (BM25 + Chroma + Reranker) │ │
│ └─────────────────────────────┘ │
▼ ▼
┌───────────────────────────┐ ┌─────────────────────┐
│ Deterministic Calculator │ │ Page Attribution │
│ (YoY, Margins, Ratios) │ │ [Doc ID, Page X] │
└───────────────────────────┘ └─────────────────────┘
The live demo runs a lightweight serverless version (api/index.py) so it fits inside Vercel's 250MB function limit:
| Live demo (Vercel) | Full pipeline (server.py / Docker) | |
|---|---|---|
| Routing | Keyword router | LangGraph LLM router + specialised agents |
| Retrieval | BM25 over text chunks and a separate table store, with section boosting | BM25 + ChromaDB dense search, RRF, cross-encoder reranking |
| DRHP vs RHP | Version-scoped retrieval; comparative mode pulls evidence from both filings | Same |
| Calculations | LLM extracts figures → Python computes growth | Deterministic financial calculator agent |
| Page-cited excerpts & refusals | Yes | Yes |
| Upload new prospectus | Not available (needs a persistent index) | Yes |
Set BACKEND_URL in Vercel to proxy the live UI to a container running the full pipeline.
This repository includes a native vercel.json and a lightweight serverless handler in api/index.py designed to run inside Vercel's 250MB serverless limit:
GROQ_API_KEY: Your Groq Cloud API key (console.groq.com/keys)GROQ_MODEL: openai/gpt-oss-120b or llama-3.3-70b-versatile(Optional: To connect the Vercel frontend to a dedicated heavy GPU/CPU container running the full PyTorch + BGE Reranker + ChromaDB pipeline, set the BACKEND_URL environment variable in Vercel to your container URL).
A production Dockerfile is included for container platforms:
# Build the container
docker build -t ipo-research-agent .
# Run the container
docker run -p 8000:8000 --env-file .env ipo-research-agent
On Render or Railway:
GROQ_API_KEY in the environment settings.git clone https://github.com/YOUR_USERNAME/ai-ipo-research-analyst.git
cd ai-ipo-research-analyst
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Create a .env file from the provided example:
cp .env.example .env
Add your Groq API key:
GROQ_API_KEY=your_groq_api_key_here
GROQ_MODEL=openai/gpt-oss-120b
GROQ_ROUTER_MODEL=openai/gpt-oss-120b
GROQ_MAX_TOKENS=2048
Rebuild or verify the Chroma vector store from the pre-processed filings:
python scripts/build_vectorstore.py
python server.py
Navigate to http://127.0.0.1:8000 in your browser.
Run the complete test suite:
python -m unittest discover tests
Expected baseline: 62/62 tests passing (100% OK).
What was HDB Financial Services' revenue and revenue growth?What are the major risks associated with HDB Financial Services?What litigation is currently disclosed?What changed between the DRHP and RHP?Give me a complete research summary of HDB Financial Services.What was the company's revenue and revenue growth?What are the major risks associated with the company?What litigation is currently disclosed?MIT License. See LICENSE for details.