Giskard क्या है?
Giskard एजेंटिक AI सिस्टम के लिए Evals, red teaming और टेस्ट जनरेशन. यह Evaluation & Production Ops टूल्स की Evaluation & Red-Teaming श्रेणी में आता है; ओपन सोर्स है और Python में लिखा गया है। शुरू करने के लिए: इंस्टॉल करें.
सारांश
Giskard एक ओपन सोर्स Python library है जो agentic systems के टेस्टिंग और मूल्यांकन के लिए बनी है। यह किसी LLM, black-box agent या multi-step pipeline को रैप कर सकती है, और उन inputs पर उसके व्यवहार की जाँच करती है जहाँ एक ही prompt से अलग-अलग valid जवाब आ सकते हैं।
v3 रिलीज़ focused packages का एक modular सेट है। `giskard-checks` (Beta) scenario-based evals और LLM-as-judge assessments संभालता है, `giskard-scan` (प्रगति में) adversarial red teaming करता है, और `giskard-rag` (योजनाबद्ध) RAG evaluation और synthetic test data को कवर करता है। हर package सिर्फ़ वही dependencies खींचता है जिनकी उसे ज़रूरत है।
यह उन teams के लिए मूल्यांकन और टेस्टिंग कैटेगरी में फिट बैठता है जिन्हें regressions पकड़ने, RAG groundedness की पुष्टि करने, safety rules लागू करने, और सिर्फ़ single exchanges के बजाय पूरी multi-turn conversations टेस्ट करने की ज़रूरत है।
यह क्या करता है
- गैर-deterministic LLM outputs पर evals लिखने के लिए Scenario API, जिसमें multi-turn agent conversations भी शामिल हैं
- बिल्ट-इन checks: string matching, comparisons, regex, semantic similarity और LLM-as-judge (Groundedness, Conformity, LLMJudge)
- आपके agent के plain-language विवरण से adversarial test suites अपने-आप बनाने वाला vulnerability scanner
- OWASP LLM Top-10 श्रेणियों में prompt injection, हानिकारक कंटेंट, stereotypes और misinformation के लिए red-teaming कवरेज
- Async-first, हल्का डिज़ाइन, जो बेहतर efficiency के लिए भारी dependencies हटा देता है
- अपने adversarial tests के लिए custom ScenarioGenerator instances के साथ extensible
शुरू करें
pip से Giskard इंस्टॉल करें, फिर एक scenario लिखें जो आपका model चलाए और उसके output की जाँच करे। Giskard के लिए Python 3.12+ ज़रूरी है।
इंस्टॉल करें
पूरा Giskard package इंस्टॉल करें, या सिर्फ़ evals की ज़रूरत हो तो केवल checks library।
pip install giskardScenario check लिखें और चलाएँ
एक function परिभाषित करें जो आपके model का output लौटाए, फिर Groundedness जैसे check के साथ Scenario बनाएँ। run() method async है, इसलिए script में इसे asyncio.run() से wrap करें।
from openai import OpenAI
from giskard.checks import Scenario, Groundedness
client = OpenAI()
def get_answer(inputs: str) -> str:
response = client.chat.completions.create(
model="gpt-5-mini",
messages=[{"role": "user", "content": inputs}],
)
return response.choices[0].message.content
scenario = (
Scenario("test_dynamic_output")
.interact(
inputs="What is the capital of France?",
outputs=get_answer,
)
.check(
Groundedness(
name="answer is grounded",
context="France is a country in Western Europe. Its capital is Paris.",
)
)
)
result = await scenario.run()
result.print_report()Agent में vulnerabilities स्कैन करें
giskard-scan इंस्टॉल करें और अपने agent पर plain-language विवरण के साथ vulnerability_scan चलाएँ, ताकि adversarial test suites बन सकें।
import asyncio
from giskard.scan import vulnerability_scan
async def main():
await vulnerability_scan(
target=my_agent,
description="A customer support chatbot for an e-commerce platform.",
languages=["en"],
)
asyncio.run(main())कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।
कब इस्तेमाल करें
- हर बदलाव के बाद scenario checks फिर से चलाकर LLM app में regressions पकड़ें
- जाँचें कि RAG system के जवाब retrieved context पर आधारित रहते हैं
- लॉन्च से पहले customer-support agent को prompt injection और हानिकारक कंटेंट के लिए red-team करें
- सिर्फ़ single prompt-response जोड़ियों के बजाय पूरी multi-turn agent conversations टेस्ट करें
How Giskard compares
Giskard alongside other open-source evaluation & red-teaming tools AI/TLDR tracks, ranked by GitHub stars.
| टूल | स्टार | यह क्या करता है |
|---|---|---|
| Strix | ★ 78.7k | ओपन सोर्स AI एजेंट जो आपके ऐप को हैक करके असली सिक्योरिटी कमज़ोरियाँ ढूंढते और उन्हें साबित करते हैं |
| iFixAi | ★ 47.6k | ऑडिट करें कि एजेंट को सौंपा गया काम वह सच में कर रहा है या नहीं |
| promptfoo | ★ 27.9k | कमांड लाइन से अपने LLM प्रॉम्प्ट और ऐप्स की टेस्टिंग, तुलना और रेड-टीमिंग करें |
| DeepEval | ★ 19.8k | 50+ मूल्यांकन मेट्रिक्स के साथ अपने LLM ऐप्स की यूनिट-टेस्टिंग करें |
| OpenAI Evals | ★ 19.8k | LLM और LLM-आधारित सिस्टम के मूल्यांकन के लिए एक फ़्रेमवर्क और ओपन रजिस्ट्री |
| Ragas | ★ 16.5k | LLM और RAG एप्लिकेशन के लिए मेट्रिक-आधारित evaluation और टेस्ट-सेट जेनरेशन |
| Arize Phoenix | ★ 12.5k | LLM और agent ऐप्स के लिए ओपन सोर्स ऑब्ज़र्वेबिलिटी और इवैल्यूएशन |
| Giskard | ★ 6k | एजेंटिक AI सिस्टम के लिए Evals, red teaming और टेस्ट जनरेशन |

