LlamaIndex Tools: Swiss Truth
Swiss Truth ToolSpec for LlamaIndex — certified knowledge base for AI agents.
Stop your LlamaIndex agents from hallucinating. Ground every response in 3,000+ certified facts across 38 domains in 10 languages.
Installation
pip install llama-index-tools-swiss-truth
Usage
from llama_index.tools.swiss_truth import SwissTruthToolSpec
from llama_index.core.agent import ReActAgent
from llama_index.llms.openai import OpenAI
spec = SwissTruthToolSpec()
tools = spec.to_tool_list()
agent = ReActAgent.from_tools(tools, llm=OpenAI(model="gpt-4o"), verbose=True)
response = agent.chat("Is health insurance mandatory in Switzerland?")
print(response)
Available Tools
| Tool | Description |
|---|---|
search |
Search the certified knowledge base for verified facts |
verify |
Verify a factual claim (supported/contradicted/unknown) |
submit |
Submit a new claim for expert review |
list_domains |
List all 38+ available knowledge domains |
claim_status |
Get the verification status of a claim by UUID |
batch_verify |
Verify multiple claims in a single API call |
verify_response |
Fact-check an entire LLM response, get hallucination risk score |
find_contradictions |
Detect contradictions in a block of text |
get_compliance |
Get EU AI Act compliance attestation for a certified claim |
No API Key Required
All public endpoints work without authentication. For higher rate limits:
spec = SwissTruthToolSpec(api_key="your-key")
Links
- 🌐 Swiss Truth
- 📖 Documentation
- 🐍 PyPI
- 🔗 MCP Endpoint
Metadata
Release files for llama-index-tools-swiss-truth 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llama_index_tools_swiss_truth-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / llama_index_tools_swiss_truth-0.1.0-py3-none-any.whl
| Download URL | llama_index_tools_swiss_truth-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7bfc6883f56132ead0278f78a03a15bc51af01749d45d514856cda2c6e4a4e07
|
|
BLAKE2b-256 checksum How to use checksums |
17e9874bfa0358a2e503a9cabedf5a81805c6be28e9b5fd4281dcc2f89a7e7ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|