मुख्य सामग्री पर जाएँ
Skillpedia
एनालिसिस और स्प्रेडशीट14k · #11155

reason

यह क्या करती है

यह स्किल Semantica नॉलेज ग्राफ़ के तथ्यों पर तार्किक तर्क लागू करती है, ताकि निष्कर्ष निकले या व्याख्याएँ सुझाई जाएँ। यह उन लोगों के लिए है जो चाहते हैं कि ग्राफ़ उनके बनाए नियमों से अनुमान लगाए।

कब इस्तेमाल करें

  • ✓जब आपके पास तथ्य और नियम हैं और आप चाहते हैं कि ग्राफ़ निष्कर्ष निकाले।
  • ✓जब आपके पास कोई अवलोकन है और उसके संभावित कारण चाहिए।
  • ✓जब आप जाँचना चाहते हैं कि कोई दावा ज्ञात तथ्यों से निकलता है या नहीं।

Skill का लिंक

https://github.com/semantica-agi/semantica/blob/main/plugins/skills/reason/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/semantica-agi/semantica/blob/main/plugins/skills/reason/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“हमारे आपूर्तिकर्ताओं के बारे में ये तथ्य और यह नियम दिए गए हैं, तो बताइए कौन-से आपूर्तिकर्ता बोली नहीं लगा सकते?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट आपके तथ्य और नियम एक reasoning engine में डालता है, उन्हें लागू करके निष्कर्ष निकालता है, और हर निष्कर्ष के साथ वह नियम बताता है जिससे वह निकला। वह कोई कथन सिद्ध करने की कोशिश भी कर सकता है, और अवलोकनों को समझाने वाली परिकल्पनाएँ बना सकता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

/semantica:reason

Apply reasoning over the knowledge graph. Usage: /semantica:reason <mode> [args]

$ARGUMENTS = reasoning mode + rules/observations/query.


deductive [--facts '<json-list>'] [--rules '<rule1>|<rule2>']

Apply deductive rules to known facts to derive new conclusions.

from semantica.reasoning.deductive_reasoner import DeductiveReasoner, Premise

reasoner = DeductiveReasoner()

# Add base facts to working memory
# Facts can be strings like "Person(John)" or structured dicts
import json
facts = json.loads(facts_json) if facts_json else []
reasoner.add_facts(facts)

# Apply logic with explicit premises
# Premise objects have: statement, confidence, source
premises = [
    Premise(statement=fact, confidence=1.0)
    for fact in facts
]

conclusions = reasoner.apply_logic(premises=premises)

Return: | Conclusion | Triggering Premises | Confidence | Rule Applied |

If zero rules given, run reasoner.prove_theorem() on any provided theorem:

proof = reasoner.prove_theorem(theorem=theorem_text)

Output: Proof: <proof.steps> | Valid: YES / NO


prove <theorem> [--facts '<json-list>']

Prove or disprove a theorem against known facts.

from semantica.reasoning.deductive_reasoner import DeductiveReasoner

reasoner = DeductiveReasoner()
import json
reasoner.add_facts(json.loads(facts_json) if facts_json else [])

proof = reasoner.prove_theorem(theorem=theorem)

Output:

Theorem: "<theorem>"
Result:  PROVED ✓  |  DISPROVED ✗  |  UNDECIDABLE ⚠

Proof steps:
  1. <premise> — <justification>
  2. ...
  → QED: <theorem>

Confidence: <proof.confidence>

abductive <observation> [--knowledge '<json-list>'] [--top N]

Generate and rank hypotheses that explain an observation.

from semantica.reasoning.abductive_reasoner import (
    AbductiveReasoner, Observation
)

reasoner = AbductiveReasoner()

import json
if knowledge_json:
    reasoner.add_knowledge(json.loads(knowledge_json))

obs = Observation(description=observation)

# Generate all hypotheses then rank them
hypotheses = reasoner.generate_hypotheses(observations=[obs])
ranked = reasoner.rank_hypotheses(hypotheses)
best = reasoner.get_best_explanation(obs)

# Also get full explanations with evidence
explanations = reasoner.find_explanations(observations=[obs])

Output:

Abductive Reasoning for: "<observation>"

Best explanation:
  <best.description>  (confidence: 0.87)

All hypotheses (ranked):
  | Rank | Hypothesis | Confidence | Supporting Evidence |
  |  1   | <hyp>      | 0.87       | <evidence>         |
  |  2   | ...

Full explanations:
  Explanation 1: <explanation.summary>
    Evidence: <evidence items>

datalog <program>

Evaluate a Datalog program over graph facts.

from semantica.reasoning.datalog_reasoner import DatalogReasoner
from semantica.context import ContextGraph

graph = ContextGraph()
reasoner = DatalogReasoner()

# program is a string of Datalog rules and queries
results = reasoner.evaluate(program=program, graph=graph)

Return derived tuples as a relation table. Show rule derivation counts.


sparql <query>

Run a SPARQL query over the knowledge graph and return results.

from semantica.reasoning.sparql_reasoner import SPARQLReasoner
from semantica.context import ContextGraph

graph = ContextGraph()
reasoner = SPARQLReasoner()

results = reasoner.query(sparql_query=query, graph=graph)

Return as a Markdown table with bound variable columns matching the SELECT clause.


rete [--rules '<rule1>|<rule2>'] [--facts '<json-list>']

Incremental rule evaluation using the Rete network with working memory.

from semantica.reasoning.rete_engine import ReteEngine
import json

engine = ReteEngine()

rules = rules_str.split("|") if rules_str else []
facts = json.loads(facts_json) if facts_json else []

engine.load_rules(rules)
engine.process_facts(facts)
activations = engine.get_activations()

Return: | Rule Fired | Variable Bindings | Working Memory Delta | Activation Order |


hypotheses "<scenario>" [--knowledge '<json-list>'] [--top N]

Generate the top-N most probable explanations for a complex scenario.

from semantica.reasoning.abductive_reasoner import AbductiveReasoner, Observation
import json

reasoner = AbductiveReasoner()
if knowledge_json:
    reasoner.add_knowledge(json.loads(knowledge_json))

obs = Observation(description=scenario)
hypotheses 
अक्सर पूछे जाने वाले सवाल

abductive reasoning क्या है?

यह एक अवलोकन से पीछे की ओर जाकर सबसे संभावित व्याख्याएँ खोजने वाला तर्क है।

क्या यह कोई कथन सिद्ध कर सकती है?

हाँ। यह ज्ञात तथ्यों के आधार पर किसी प्रमेय की जाँच कर सकती है और बता सकती है कि प्रमाण टिकता है या नहीं।

यह किस तरह के नियम समझती है?

यह कई तरह के नियम समझती है, जिनमें Datalog प्रोग्राम, SPARQL क्वेरी और Rete नेटवर्क मूल्यांकन शामिल हैं।

जानकारी

लेखक का मूल विवरण

Run reasoning over the Semantica knowledge graph — deductive logic, abductive hypothesis generation, Datalog programs, SPARQL queries, Rete network evaluation. Uses DeductiveReasoner, AbductiveReasoner, DatalogReasoner, SPARQLReasoner, ReteEngine. Sub-commands: deductive, abductive, datalog, sparql, rete, prove, hypotheses.

repo: semantica-agi/semantica

लोकप्रियता

GitHub स्टार
14k
रैंकिंग में स्थान
#11155
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

semantica

14k

यह आपके एजेंट को नॉलेज ग्राफ़ का पूरा टूलकिट देती है, जिसमें निष्कर्षण, तर्क, प्रोवेनेंस, ऑन्टोलॉजी, नीतियाँ और एक्सपोर्ट शामिल हैं।

डेटाडेटाबेस

causal

14k

यह आपके एजेंट को नॉलेज ग्राफ़ में कारण और प्रभाव के संबंध खोजने में मदद करती है, जिसमें कारण-श्रृंखला और 'अगर ऐसा होता' वाले सवाल शामिल हैं।

डेटाएनालिसिस और स्प्रेडशीट

change

14k

यह आपके एजेंट को दिखाती है कि नॉलेज ग्राफ़ पहले किसी तारीख पर कैसा था, और दो तारीखों या दो ऑन्टोलॉजी संस्करणों के बीच क्या बदला।

डेटाएनालिसिस और स्प्रेडशीट

decision

14k

यह आपके एजेंट को नॉलेज ग्राफ़ में निर्णय दर्ज करने, खोजने, समझाने और समीक्षा करने में मदद करती है, पहले नोट से लेकर उसके नतीजे तक।

डेटाएनालिसिस और स्प्रेडशीट

मिलती-जुलती skills