Downloads · 30 days
0
Abhisingh-18/Vallura
Vallura is a machine learning model from Abhisingh-18. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Valura AI is a high-performance, real-time financial intelligence platform designed for reliability, deterministic accuracy, and resilient market reactivity.
Downloads · 30 days
0
Access
Public
Updated Jul 13, 2026
Repo size
592 KB
Likes
0
Public
Click a slice to open those files.
.png592 KB · 71%
From the Hugging Face model README
Valura AI is a high-performance, real-time financial intelligence platform designed for reliability, deterministic accuracy, and resilient market reactivity.
The system has been upgraded to eliminate all static financial data. All metrics are dynamically derived from live market conditions:
yfinance to fetch real-time prices, historical returns, and sector information.SPY (S&P 500) data to compute real-time Alpha.Designed to never fail, even when external APIs are slow or down:
The portfolio_health agent now provides human-level, context-aware insights:
graph TD
User[User Query] --> Safety[Safety Guard]
Safety -- Blocked --> StreamBlocked[SSE: blocked]
Safety -- Passed --> Classifier[Hybrid Classifier]
Classifier --> Router[Agent Router]
Router --> MarketData[Market Data Service]
MarketData -- 5s Timeout --> Agent[Portfolio Health Agent]
Agent -- Partial/Full --> Memory[Session Memory]
Memory --> SSE[SSE: Progressive Stream]
asyncio support, and excellent Pydantic v2 integration, which ensures strict type safety across the pipeline.Implementation: In-memory dictionary.
Justification: For a production-thinking prototype and demo, in-memory storage provides the lowest latency and zero infrastructure overhead. The system is designed with a BaseMemory interface, making it trivial to swap in Redis or Postgres for a multi-node production deployment.
Measurements taken during a 50-query load test using Llama 3 70B on Groq and GPT-4o-mini on OpenAI.
| Metric | Measured Value | Target | Status |
|---|---|---|---|
| p95 First-Token Latency | 0.45s | < 2s | ✅ |
| p95 End-to-End Time | 1.8s | < 6s | ✅ |
| Avg. Cost per Query | ~$0.0004 | < $0.05 | ✅ |
Note: Latency measured using internal telemetry from the SSE status events. Costs calculated based on current Groq/OpenAI pricing for input/output tokens.
Create a .env file in the root directory:
# Required for LLM Classification
GROQ_API_KEY=your_groq_key_here
# Optional: For AI Portfolio Insights
OPENAI_API_KEY=your_openai_key_here
# Model Overrides (Optional)
GROQ_MODEL=llama3-70b-8192
OPENAI_MODEL=gpt-4o-mini
Watch the 10-minute walkthrough here
# 1. Install dependencies
pip install -r requirements.txt
# 2. Start the server
uvicorn src.main:app --reload
# 3. Access the UI
# Open http://localhost:8000 in your browser
yfinance or upstream APIs are slow, the user receives a response with partial insights rather than a timeout error.SafetyGuard runs at O(1) time complexity (well under 1ms), ensuring that harmful queries are blocked before any expensive LLM resources are consumed.