temporal
यह क्या करती है
यह स्किल Semantica नॉलेज ग्राफ़ पर समय-आधारित सवाल चलाती है, जैसे किसी तारीख पर क्या सच था। यह उन लोगों के लिए है जिन्हें किसी एक क्षण तक सीमित नतीजे चाहिए।
कब इस्तेमाल करें
- ✓जब आप सिर्फ़ उन आइटम के नतीजे चाहते हैं जो किसी खास तारीख पर सक्रिय थे।
- ✓जब आप पूरे ग्राफ़ को किसी पिछले समय में जैसा था वैसा देखना चाहते हैं।
- ✓जब आप जानना चाहते हैं कि किसी पिछले क्षण में कौन-से पूर्ववर्ती निर्णय या कारण लागू थे।
Skill का लिंक
https://github.com/semantica-agi/semantica/blob/main/plugins/skills/temporal/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“15 मार्च तक ग्राफ़ हमारी वेंडर मंज़ूरी के बारे में क्या दिखा रहा था, और कौन-से आइटम तब तक बने ही नहीं थे?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट 'पिछले महीने' या 'Q3 2024' जैसे तारीख वाले वाक्यांश पढ़कर उन्हें मानक तारीख में बदलता है, फिर उस समय सीमा के साथ सवाल दोबारा लिखता है। नतीजे रैंक किए हुए आते हैं, हर एक पर उसकी वैधता तारीख और यह कि आइटम उस समय मौजूद था या नहीं, इसके निशान के साथ।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
/semantica:temporal
Temporal graph operations. Usage: /semantica:temporal <sub-command> [args]
$ARGUMENTS = sub-command + query/node + date expression.
query "<question>" [at|before|after <date>]
Temporally-scoped natural-language graph query.
from semantica.kg.temporal_query_rewriter import TemporalQueryRewriter
from semantica.kg.temporal_normalizer import TemporalNormalizer
normalizer = TemporalNormalizer()
# Normalize natural date expressions: "last month", "Q3 2024", "2025-01-15"
date = normalizer.normalize(date_expr)
rewriter = TemporalQueryRewriter()
# Rewrite query with temporal constraint
rewritten = rewriter.rewrite(
query=question,
temporal_constraint={"op": direction, "value": date}, # op: "at"|"before"|"after"
)
Then run the rewritten query through AgentContext.retrieve() or ContextGraph.query().
Return ranked results with Valid From, Valid Until, Active At <date> columns. Mark nodes that were not yet created at the target time as [not yet created].
snapshot <date>
Reconstruct the full graph state as it existed at a specific point in time.
from semantica.context import ContextGraph
graph = ContextGraph(advanced_analytics=True)
# state_at returns a dict snapshot of the graph at that timestamp
snapshot = graph.state_at(timestamp=date) # ISO string or datetime
Output:
Graph snapshot at <date>:
Nodes: N (M added since prev snapshot, K removed)
Edges: P
Density: 0.21
Communities: Q
Active decision categories at <date>:
| Category | Count | Avg Confidence |
Top 10 nodes (by degree at <date>):
| Node | Type | Degree |
[Compact Mermaid graph TD — top-10 most connected nodes at that time]
timeline <node_id>
Show attribute and relationship changes for a node across its full history.
from semantica.context import ContextGraph
graph = ContextGraph()
# Use state_at() at multiple time points to reconstruct history
# Check add_node timestamps and edge addition times from graph data
node_data = graph.find_node(node_id)
Output as Markdown timeline:
Timeline for "<node_id>" (<type>):
<timestamp> CREATED
Properties: {confidence: 0.71, category: "loan_approval"}
Source: extraction/pipeline
<timestamp> UPDATED
confidence: 0.71 → 0.91 [source: review]
<timestamp> RELATIONSHIP ADDED
"<node_id>" →[CAUSED]→ "Decision_B"
<timestamp> RELATIONSHIP REMOVED
"<node_id>" →[PRECEDED_BY]→ "Decision_X" (superseded)
Total lifespan: <duration>
Current state: <active|superseded>
causal-at <decision_id> <date> [--direction upstream|downstream]
Trace a causal chain as it existed at a specific point in time.
from semantica.context.causal_analyzer import CausalChainAnalyzer
from semantica.context import AgentContext
ctx = AgentContext(decision_tracking=True)
analyzer = CausalChainAnalyzer(graph_store=ctx.graph_store)
historical_chain = analyzer.trace_at_time(
event_id=decision_id,
at_time=date, # ISO string or datetime
direction=direction or "upstream",
max_depth=10,
)
Output:
Historical causal chain for <decision_id> at <date>:
Direction: upstream (what caused it?)
[Mermaid graph TD showing chain as it existed at <date>]
Decisions present then but not now: [list]
Decisions added since then: [list]
precedents-at "<scenario>" <date> [--category <cat>]
Find precedent decisions that existed as of a specific date — useful for auditing what context was available when a decision was made.
from semantica.context import AgentContext
ctx = AgentContext(decision_tracking=True, advanced_analytics=True)
# find_precedents supports as_of parameter for temporal precedent search
precedents = ctx.find_precedents(
scenario=scenario,
category=category or None,
limit=10,
use_hybrid_search=True,
include_context=True,
include_superseded=False,
as_of=date, # Only return precedents that existed at this date
)
Return: | Rank | Decision ID | Scenario | Outcome | Confidence | Set Date | Valid Until |
Note decisions that were superseded before or after the target date.
अक्सर पूछे जाने वाले सवाल
क्या यह 'पिछले महीने' जैसे वाक्यांश समझती है?
हाँ। यह रोज़मर्रा की तारीख अभिव्यक्तियों को मानक तारीख में बदल देती है।
जो आइटम तब तक बने नहीं थे, वे कैसे दिखाए जाते हैं?
उन्हें 'अभी बनाया नहीं गया' के रूप में चिह्नित किया जाता है।
क्या यह पिछली तारीख पर ग्राफ़ दोबारा बना सकती है?
हाँ। यह चुनी हुई तारीख पर ग्राफ़ की पूरी स्थिति दोबारा बना सकती है।
जानकारी
लेखक का मूल विवरण
Temporal graph operations on Semantica — scoped queries at a point in time, graph snapshots, node change timelines, temporal causal analysis, and graph state reconstruction. Uses AgentContext.find_precedents(as_of=), ContextGraph.state_at(), CausalChainAnalyzer.trace_at_time(), and TemporalQueryRewriter. Sub-commands: query, snapshot, timeline, causal-at, precedents-at.
repo: semantica-agi/semantica
लोकप्रियता
- GitHub स्टार
- 14k
- रैंकिंग में स्थान
- #11156
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
semantica
14kयह आपके एजेंट को नॉलेज ग्राफ़ का पूरा टूलकिट देती है, जिसमें निष्कर्षण, तर्क, प्रोवेनेंस, ऑन्टोलॉजी, नीतियाँ और एक्सपोर्ट शामिल हैं।
causal
14kयह आपके एजेंट को नॉलेज ग्राफ़ में कारण और प्रभाव के संबंध खोजने में मदद करती है, जिसमें कारण-श्रृंखला और 'अगर ऐसा होता' वाले सवाल शामिल हैं।
change
14kयह आपके एजेंट को दिखाती है कि नॉलेज ग्राफ़ पहले किसी तारीख पर कैसा था, और दो तारीखों या दो ऑन्टोलॉजी संस्करणों के बीच क्या बदला।
decision
14kयह आपके एजेंट को नॉलेज ग्राफ़ में निर्णय दर्ज करने, खोजने, समझाने और समीक्षा करने में मदद करती है, पहले नोट से लेकर उसके नतीजे तक।
मिलती-जुलती skills
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
slacrawl
394kयह आपके एजेंट को स्थानीय Slack आर्काइव में संदेश खोजने और गिनने, उसकी ताज़गी जांचने और ज़रूरत पड़ने पर उसे ताज़ा करने देती है।
goplaces
394kयह आपके एजेंट को Google Places से जगहें खोजने, उनका विवरण और समीक्षाएं पाने, और जगह के नाम हल करने में मदद करती है, स्क्रिप्ट के लिए JSON आउटपुट के साथ।