PRISM-INSIGHT
These are 13 specialized AI agents that analyze Korean and US stocks in real-time, and this is open source and free to use.
AI translation
Answers questions on SEBI margin rules and F&O taxation, grounded in official circulars and tax notes, with cited sources.
FinanceGitHub @rishh0OnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
Repository information has not been collected yet.
No updates detected yet. GitHub releases will appear here.
RAG-based compliance assistant answering SEBI margin rules and F&O tax questions from official circulars — built with FastAPI, LangChain, FAISS, and Next.js. Includes source citations and a hand-evaluated accuracy benchmark (90% on a 20-question test set).
Taken from the repository README
Loading the full README.
Read the full README ↗A RAG-based assistant that answers questions about Indian securities trading regulations (SEBI margin rules) and F&O taxation, grounded in real regulatory circulars and tax reference material — not the model's general knowledge.
Live demo: https://frontend-omega-six-90.vercel.app Backend API: https://sebi-trading-assistant.onrender.com
Note: the backend runs on Render's free tier, which spins down after inactivity. The first request after a period of no traffic may take 30-60 seconds to respond while it wakes up.
Indian retail traders need to navigate margin rules, F&O taxation treatment, STT rates, and tax audit thresholds — information that exists in official SEBI circulars and tax guidance, but is scattered across dense PDFs and rarely explained together. This assistant answers questions directly from a curated set of these documents, citing its sources, and explicitly declines to answer when a question falls outside what its documents cover — rather than guessing.
sentence-transformers/all-MiniLM-L6-v2, run locally on the backend via fastembed (ONNX Runtime, no PyTorch) — free, no API key, and small enough for a 512 MB free-tier server. The same implementation (scripts/embeddings.py) is used for ingestion and querying, so index and query vectors always matchopenai/gpt-oss-20b) via Groq, through LangChain's chat-model interface, streamed token-by-tokenMeasured on a hand-labeled, 20-question test set spanning all 7 source documents plus deliberately out-of-scope questions:
| Metric | Result |
|---|---|
| Fully correct | 18/20 (90%) |
| Partially correct (right facts, minor omission) | 2/20 (10%) |
| Incorrect / hallucinated | 0/20 (0%) |
| Out-of-scope questions correctly declined | 4/4 (100%) |
Full question set and results: eval/eval_questions.json, eval/scorecard.md
Backend:
pip install -r requirements.txt
# add GROQ_API_KEY to a .env file
python scripts/ingest.py # one-time: build the vector index from docs/
uvicorn app:app --reload
Frontend:
cd frontend
npm install
# add NEXT_PUBLIC_API_URL=http://127.0.0.1:8000 to .env.local
npm run dev
Python, FastAPI, LangChain, FAISS, Hugging Face Inference API, Groq, Next.js, React