Back to Home
sib-swiss icon

sparql-llm

Verified Safe

by sib-swiss

Overview

An LLM-powered agent for generating, validating, and executing SPARQL queries against biomedical knowledge graphs, utilizing Retrieval-Augmented Generation (RAG) with endpoint-specific metadata and schema for improved accuracy.

Installation

Run Command
docker compose up

Environment Variables

  • CHAT_API_KEY
  • LOGS_API_KEY
  • OPENAI_API_KEY
  • OPENROUTER_API_KEY
  • LANGFUSE_HOST
  • LANGFUSE_PUBLIC_KEY
  • LANGFUSE_SECRET_KEY
  • VECTORDB_URL
  • AZURE_INFERENCE_CREDENTIAL
  • AZURE_INFERENCE_ENDPOINT
  • SETTINGS_FILEPATH

Security Notes

The system employs several security measures, including `DOMPurify` for HTML sanitization in the frontend (preventing XSS), `validate_sparql_with_void` for checking generated SPARQL queries against known endpoint schemas (mitigating SPARQL injection), and environment variables for API key management. However, potential risks exist inherent to dynamic query generation and external API interactions. A sophisticated LLM jailbreak could theoretically influence the `endpoint_url` passed to `query_sparql` or craft malicious queries that bypass incomplete VoID schema validations, leading to SSRF or unintended data access on controlled endpoints. Logging of user questions and feedback (potentially sensitive information) is protected by an API key.

Similar Servers

Stats

Interest Score46
Security Score7
Cost ClassHigh
Avg Tokens1500
Stars88
Forks12
Last Update2026-01-13

Tags

SPARQLLLMRAGKnowledge GraphChatbotBioinformatics