CoolFace
Apppublic

MHamdan/SPARKNET

sourceHugging Faceupdated 8mo agoView on Hugging Face
0likes
App README

๐Ÿ”ฅ SPARKNET: AI-Powered Technology Transfer Office Automation

Multi-agent AI platform for research valorization and IP management

![Streamlit App](https://sparknet.streamlit.app) ![VISTA Project](https://vista-project.eu) ![License: MIT](https://opensource.org/licenses/MIT)


Overview

SPARKNET is an enterprise-grade Technology Transfer Office (TTO) Automation Platform that combines multi-agent AI orchestration with document intelligence to automate key TTO workflows. Built for the VISTA/Horizon EU project.

๐ŸŽฏ Core TTO Scenarios

ScenarioStatusDescription
๐Ÿ’ก Patent Wake-Upโœ… LiveTransform dormant patents into commercialization opportunities
โš–๏ธ Agreement Safetyโœ… LiveAI-assisted legal document review with risk detection
๐Ÿค Partner Matchingโœ… LiveIntelligent stakeholder matching for technology transfer
๐Ÿ“‹ License Compliance๐Ÿ”จ DevPayment tracking, milestone verification, revenue alerts
๐Ÿ† Award Identification๐Ÿ”จ DevFunding opportunity scanning and nomination assistance

๐Ÿ“Š Coverage Dashboard

  • โ€”3 Fully Covered - Production-ready scenarios
  • โ€”5 Partially Covered - In development
  • โ€”2 Not Covered - Planned for future

Features

๐Ÿ›ก๏ธ AI Quality Assurance

  • โ€”CriticAgent Validation: Every AI output validated against VISTA quality standards
  • โ€”Confidence Scoring: Automatic abstention for low-confidence results
  • โ€”Source Verification: Hallucination mitigation with evidence grounding
  • โ€”Human-in-the-Loop: Critical decisions require human approval

๐Ÿค– Multi-Agent Architecture

  • โ€”PlannerAgent: Task decomposition and workflow planning
  • โ€”ExecutorAgent: Task execution with tool usage
  • โ€”CriticAgent: Output validation and refinement
  • โ€”MemoryAgent: Context management and retrieval

๐Ÿ“„ Document Intelligence

  • โ€”OCR with PaddleOCR/Tesseract
  • โ€”Layout detection and semantic chunking
  • โ€”Schema-driven field extraction
  • โ€”Visual evidence grounding (bbox, page, confidence)

๐Ÿ’ฌ RAG Q&A

  • โ€”Vector search with ChromaDB
  • โ€”Grounded retrieval with citations
  • โ€”Multi-document querying
  • โ€”Citation generation

Quick Start

Streamlit Cloud (Recommended)

The app is deployed on Streamlit Cloud. Visit:

https://sparknet.streamlit.app

Local Installation

bash
# Clone repository
git clone https://github.com/MHHamdan/SPARKNET.git
cd SPARKNET

# Install dependencies
pip install -r requirements.txt

# Run Streamlit app
streamlit run demo/app.py

With Local LLM (Ollama)

For privacy-preserving local inference:

bash
# Install Ollama
curl -fsSL https://ollama.com/install.sh | sh

# Pull models
ollama pull llama3.2:latest
ollama pull nomic-embed-text

# Run SPARKNET
streamlit run demo/app.py

Configuration

API Keys

Configure in .streamlit/secrets.toml or environment variables:

toml
[auth]
password = "your-password"

GROQ_API_KEY = "your-groq-key"
GOOGLE_API_KEY = "your-google-key"
OPENROUTER_API_KEY = "your-openrouter-key"

See .env.example for all available configuration options.

Supported LLM Providers

ProviderFree TierNotes
Groq14,400 req/dayFastest inference
Google Gemini15 req/minGood for general use
OpenRouterMany free modelsMulti-model access
GitHub ModelsFree GPT-4oRequires GitHub token
HuggingFaceThousands of modelsGood for embeddings
OllamaUnlimited (local)Maximum privacy

Project Structure

SPARKNET/
โ”œโ”€โ”€ demo/                    # Streamlit application
โ”‚   โ”œโ”€โ”€ app.py              # Main app
โ”‚   โ”œโ”€โ”€ auth.py             # Authentication
โ”‚   โ”œโ”€โ”€ llm_providers.py    # LLM provider management
โ”‚   โ””โ”€โ”€ pages/              # Multi-page app
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ agents/             # Agent implementations
โ”‚   โ”‚   โ”œโ”€โ”€ scenario1/      # Patent Wake-Up
โ”‚   โ”‚   โ”œโ”€โ”€ scenario3/      # License Compliance
โ”‚   โ”‚   โ””โ”€โ”€ scenario4/      # Award Identification
โ”‚   โ”œโ”€โ”€ rag/                # RAG subsystem
โ”‚   โ”œโ”€โ”€ workflow/           # LangGraph workflows
โ”‚   โ””โ”€โ”€ document_intelligence/  # Document processing
โ”œโ”€โ”€ configs/                # Configuration files
โ”œโ”€โ”€ .streamlit/             # Streamlit config
โ””โ”€โ”€ SECURITY.md            # Security documentation

Security & GDPR

SPARKNET supports GDPR-compliant deployments:

  • โ€”Local Inference: Use Ollama for 100% on-premise processing
  • โ€”Data Isolation: Configure data retention policies
  • โ€”Audit Logging: Track all AI interactions
  • โ€”Private Deployment: Enterprise deployment options

See SECURITY.md for detailed security documentation.


Development

Running Tests

bash
pytest tests/

Code Formatting

bash
black src/
flake8 src/

Roadmap

  • โ€”[x] Patent Wake-Up workflow
  • โ€”[x] Agreement Safety review
  • โ€”[x] Partner Matching
  • โ€”[x] CriticAgent validation
  • โ€”[ ] License Compliance Monitoring (in progress)
  • โ€”[ ] Award Identification (in progress)
  • โ€”[ ] Grant Writing Assistant
  • โ€”[ ] Negotiation Support

Contributing

Contributions are welcome! Please:

  1. 1.Fork the repository
  2. 2.Create a feature branch
  3. 3.Make your changes
  4. 4.Run tests
  5. 5.Submit a pull request

Acknowledgments

  • โ€”Ollama for local LLM inference
  • โ€”NVIDIA for CUDA and GPU support
  • โ€”LangChain for LLM orchestration
  • โ€”Streamlit for the web framework
  • โ€”The open-source AI community

Support


License

MIT License - see LICENSE file for details.


<p align="center"> <strong>๐Ÿ”ฅ SPARKNET</strong><br> AI-Powered Technology Transfer Office Automation<br> <em>VISTA/Horizon EU Project</em> </p>