Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions openkb/agent/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,12 @@
- "brief": A single sentence (under 100 chars) defining this concept
- "content": The full concept page in Markdown. Include clear explanation, \
key details from the source document, and [[wikilinks]] to related concepts \
and [[summaries/{doc_name}]] — subject to the wikilink rules from the \
whitelist message above.
and [[summaries/{doc_name}]].

Linking to [[summaries/{doc_name}]] connects this concept back to the \
original source document. The summary page contains a `full_text` frontmatter \
field that points to the original document content, allowing readers to \
trace concepts back to their source.

Return ONLY valid JSON, no fences.
"""
Expand Down Expand Up @@ -184,8 +188,12 @@
- "type": one of __ENTITY_TYPES__
- "content": The full entity page in Markdown — what this entity is, the key
facts about it from this document, and [[wikilinks]] to related concepts,
other [[entities/...]], and [[summaries/{doc_name}]] — subject to the
whitelist rules from the message above.
other [[entities/...]], and [[summaries/{doc_name}]].

Linking to [[summaries/{doc_name}]] connects this entity back to the \
original source document. The summary page contains a `full_text` frontmatter \
field that points to the original document content, allowing readers to \
trace entities back to their source.

Return ONLY valid JSON, no fences.
"""
Expand Down