惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Martin Fowler
Martin Fowler
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
博客园_首页
宝玉的分享
宝玉的分享
S
SegmentFault 最新的问题
Jina AI
Jina AI
Hugging Face - Blog
Hugging Face - Blog
V
Visual Studio Blog
美团技术团队
IT之家
IT之家
罗磊的独立博客
Blog — PlanetScale
Blog — PlanetScale
Google DeepMind News
Google DeepMind News
月光博客
月光博客
Microsoft Azure Blog
Microsoft Azure Blog
H
Help Net Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Last Week in AI
Last Week in AI
博客园 - 叶小钗
M
MIT News - Artificial intelligence
B
Blog RSS Feed
有赞技术团队
有赞技术团队
Y
Y Combinator Blog

Hacker News - Newest: "AI"

AI can't read an investor deck AI as an attorney? Student uses ChatGPT, Gemini to sue UW over alleged racial discrimination Hacking MCP Servers in AI Systems – The Rug Pull: Tool Changes After Approval GitHub - MeepCastana/KubeezCut: Free Web based video editor Can AI judge journalism? A Thiel-backed startup says yes, even if it risks chilling whistleblowers Coming soon: 10 Things That Matter in AI Right Now DARPA built an AI to fact-check enemy weapons claims What explains heterogeneity in AI adoption? When AI Meets Muscle: Context-Aware Electrical Stimulation Promises a New Way to Guide Human Movements - Department of Computer Science AI Changed How We Build. It Did Not Change What Matters. Linux rules on using AI-generated code - Copilot is OK, but humans must take 'full responsibility for the… Meta spins up AI version of Mark Zuckerberg to engage with employees Code Mode: Let Your AI Write Programs, Not Just Call Tools | TanStack Blog GitHub - Delavalom/graft: Go framework for building AI agents. Type-safe tools, multi-provider (OpenAI, Anthropic, Gemini, Bedrock), zero vendor SDKs. India's TCS tops estimates, says new AI models did not dent services demand Gen Z's fading AI hype Strong feeling: we are in a folded AI reality GitHub - machinarii/total-recall-catalog: A reference catalog of latest knowledge retrieval, memory & RAG systems GitHub - mensfeld/code-on-incus: Give each AI agent its own isolated machine with root, Docker, and systemd. Active defense detects and stops threats automatically.. Quantization, LoRA, and the 8% Problem: Benchmarking Local LLMs for Production AI Iran war: We spoke to the man making Lego-style AI videos that experts say are powerful propaganda Powell, Bessent discussed Anthropic's Mythos AI cyber threat with major U.S. banks GitHub - immartian/bellamem: Persistent belief-graph memory for AI agents. Retrieves decisive context by importance — not recency, not RAG, not /compact. recursive-mode: The Repo-Native Operating System for AI Engineering After the attack on Sam Altman's home, will AI CEO's go on the offensive? The biggest advance in AI since the LLM Opus 4.6 vs GPT 5.4 One Prompt Unity World Generation Test “AI polls” are fake polls Client Challenge Can AI be a 'child of God'? Inside Anthropic's meeting with Christian leaders
GitHub - SaneethSunkari/Ai-Business-Analyst: Agent-compat...
Saneeth_s · 2026-04-16 · via Hacker News - Newest: "AI"

Agent-compatible middleware that lets AI systems query live databases through schema introspection, read-only SQL validation, saved connections, and audit logs.

Python FastAPI OpenAI Docker License

Website: ai-business-analyst-production-8fa6.up.railway.app

Demo: 2-minute system walkthrough

The source application lives in de-10-ai-data-middleware/. This root README is written as the portfolio entrypoint.

What It Does

AI agents are most useful when they can work with real data, but direct database access is risky. This middleware creates a safer control layer:

Natural-language question
        -> live schema introspection
        -> dialect-aware SQL generation
        -> read-only SQL validation
        -> query execution
        -> logged, tabular result

Any agent that understands OpenAI-style function tools can fetch GET /tools/manifest and invoke database actions through POST /tools/invoke.

Why It Matters

Most text-to-SQL demos stop after generating a query. This project keeps the operational parts visible:

  • saved database connections instead of one-off credentials
  • schema introspection before generation
  • read-only validation before execution
  • query audit logs
  • a browser UI for human review
  • a tools manifest for agent integration
  • a roadmap toward tenants, source catalogs, object storage, and cost controls

Project Evidence

Features

  • Natural-language SQL over live schemas
  • PostgreSQL, MySQL, and SQLite support in the core demo
  • Saved connections with reusable connection_id values
  • OpenAI-compatible tools manifest at /tools/manifest
  • Tool execution endpoint at /tools/invoke
  • SQL validator that blocks destructive and multi-statement patterns
  • Schema viewer, SQL runner, Ask AI flow, tools tab, ops status, and history surfaces
  • Local query logging plus Supabase-backed control-plane direction
  • TokenFirewall integration path for routing, budget, cache, and usage controls

Quick Start

git clone https://github.com/SaneethSunkari/Ai-Business-Analyst.git
cd Ai-Business-Analyst/de-10-ai-data-middleware

cp .env.example .env
# set OPENAI_API_KEY in .env

Start the demo stack:

docker compose up --build

Open:

Surface URL
Homepage http://localhost:8000/
Workspace http://localhost:8000/ui
Swagger docs http://localhost:8000/docs
ReDoc http://localhost:8000/redoc

For non-Docker development:

cd backend
pip install -r requirements.txt
env $(cat ../.env | xargs) uvicorn app.main:app --reload --host 0.0.0.0 --port 8000

Demo Database

The local Docker stack includes a PostgreSQL demo database with healthcare-style tables:

  • patients
  • encounters
  • conditions
  • medications
  • procedures
  • observations
  • providers
  • organizations
  • careplans
  • allergies
  • immunizations
  • imaging_studies

Starter questions:

  • How many patients are in the database?
  • Show provider names and organization names
  • List all medications and their total cost
  • Top 10 most expensive encounters

API Overview

Area Endpoints
Auth POST /auth/signup, POST /auth/login, GET /auth/me, POST /auth/logout
Connections POST /connections/test, POST /connections/register, GET /connections/, DELETE /connections/{id}
Query POST /query/ask, POST /query/run
Schema POST /schema/scan
Agent tools GET /tools/manifest, POST /tools/invoke
Ops GET /ops/status

Repository Tour

Ai-Business-Analyst/
|-- README.md
|-- CHANGELOG.md
|-- ROADMAP.md
|-- docs/
|   `-- VALIDATION.md
`-- de-10-ai-data-middleware/
    |-- backend/app/
    |-- backend/tokenfirewall/
    |-- demo_db/
    |-- docs/
    |-- supabase/migrations/
    |-- Dockerfile
    |-- docker-compose.yml
    `-- README.md

Security Posture

This is a portfolio-grade product demo with a serious safety model, not a production security certification. The strongest current controls are read-only SQL validation, connection scoping, explicit tool invocation, and query logging. The roadmap calls out the remaining production work: parser-backed SQL validation per dialect, stronger auth, tenant isolation, secrets handling, policy tests, monitoring, and incident-response docs.

License

MIT. See de-10-ai-data-middleware/LICENSE.