Views
No views yet


/analyze)/reconstruct)/story)/interrogate)agent_manifest.jsonsystem_prompt.mdreasoning_template.mdpersonality_fingerprint.mdguardrails.mddetective_core_knowledge.mdcase_archetypes_merged.csvcontradiction_patterns.csvmotive_patterns.csvbehavioral_anomalies.csvperception_witness_reliability_matrix.csvscenario_timelines_patterns.csvinterrogation_dataset.csvtrace_evidence_matrix.csvforensics_pattern_mtrx.csvepisodic_case_memory_schema.csvepisodic_case_memory_schema_examples.csvuser_profile_schema.csvuser_profile_schema_examples.csvreflection_log_schema.csvreflection_log_schema_examples.csvworkflow_notes.mdproduct_readme.md1from openai import OpenAI
2
3client = OpenAI()
4
5system = open("core/system_prompt.md").read()
6reasoning = open("core/reasoning_template.md").read()
7guardrails = open("guardrails/guardrails.md").read()
8
9context = f"{system}\n{reasoning}\n{guardrails}"
10
11message = """
12/analyze
13Here is the fictional case:
14A ceramic mug was found broken near the balcony. Two guests claim different timelines...
15"""
16
17response = client.chat.completions.create(
18 model="gpt-4.1",
19 messages=[
20 {"role": "system", "content": context},
21 {"role": "user", "content": message}
22 ]
23)
24
25print(response.choices[0].message["content"])
26
27Any LLM works: **GPT, Claude, Gemini, DeepSeek, Llama, Mistral.**
28Any agent engine works: **LangChain, LlamaIndex, n8n, Relevance AI, custom orchestrators.**
29
30---
31
32 **Example Output (Short)**
33
34> **FACTS (F)**
35Mug shattered near balcony door
36Guest A claims incident at 21:10
37Guest B claims 21:40
38
39> **CONTRADICTION**
40TMP-01: 30-minute gap in mutually exclusive accounts
41
42> **LEADING HYPOTHESIS (H1)**
43Accidental slip during door opening
44
45> **ALTERNATIVES (H2, H3)**
46H2: object bumped during argument
47H3: artifact already cracked, final failure during movement
48
49> **NEXT QUESTIONS**
50Did anyone hear glass before 21:10?
51Was the mug already damaged earlier?
52
53*(This is fictional and non-operational.)*
54
55---
56
57 **The Master Grid (Optional, Advanced)**
58
59Orion optionally supports a **vectorized knowledge graph** — the Master Grid.
60
61It merges:
62
63- dataset rows
64- contradiction patterns
65- motive structures
66- archetypes
67- sensory anomaly matrices
68- detective core knowledge
69
70into **one unified vector space**.
71
72At runtime, you can fetch **3–10** relevant pattern nodes to enable:
73
74- deeper hypothesis diversity
75- more coherent timelines
76- improved anomaly detection
77- emergent reasoning behaviors
78
79Use any vector store: **Pinecone, Chroma, Weaviate, FAISS, pgvector, LanceDB, etc. **.
80
81---
82
83 **Memory System **
84
85**1. Episodic Case Memory**
86Stores case briefs, facts, contradictions, hypotheses, next tests, confidence scores.
87
88**2. User Profile Memory**
89Stores preferences: mode, depth, noir flavor, language, hypothesis density.
90
91**3. Reflection Log**
92Tracks uncertainty, missed insights, and improvement suggestions.
93
94Schemas are clean, minimal, and developer-friendly.
95
96---
97
98 **Safety & Limitations**
99
100Orion is designed **exclusively for fictional detective reasoning**.
101
102It does **not**:
103
104- analyze real crimes
105- accuse real individuals
106- act as forensic guidance
107- produce operational investigative advice
108- store personal data
109
110All datasets are **abstract, synthetic, and non-functional** for real-world investigations.
111Guardrails are included and should remain active.
112
113---
114
115 **License**
116
117**MIT License**
118+ recommended **Fiction-Only Addendum**.
119
120Users may study, modify, integrate, or extend Orion —
121**but must not use it for real-world investigations.**
122
123---
124
125 **Why Orion?**
126
127Because Agentarium builds **modular, structured artificial minds**, not loose prompts.
128
129Orion demonstrates:
130
131- dataset-driven cognition
132- memory-enabled reasoning
133- modular prompt architecture
134- cross-platform compatibility
135- safe emergent behavior
136
137**Welcome to the next era of agent engineering.
138Welcome to Agentarium.**
139
140By Frank Brsrk