Nous.KnowledgeBase.Entry (nous v0.17.0)
View SourceA compiled wiki entry — the core unit of the knowledge base.
Entries are produced by LLM compilation of raw Documents. They contain
structured markdown with [[wiki-links]], summaries, extracted concepts,
and metadata for search and graph traversal.
Summary
Functions
Creates a new Entry from attributes.
Generates a URL-safe slug from a title.
Recomputes the cached downcased search fields from title/content.
Types
@type entry_type() :: :article | :concept | :summary | :index | :glossary
@type t() :: %Nous.KnowledgeBase.Entry{ concepts: [String.t()], confidence: float(), content: String.t(), content_down: String.t() | nil, created_at: DateTime.t(), embedding: [float()] | nil, entry_type: entry_type(), id: String.t(), kb_id: String.t() | nil, last_verified_at: DateTime.t() | nil, metadata: map(), slug: String.t(), source_doc_ids: [String.t()], summary: String.t() | nil, tags: [String.t()], title: String.t(), title_down: String.t() | nil, updated_at: DateTime.t() }
Functions
Creates a new Entry from attributes.
Requires :title and :content. Auto-generates id, slug, and timestamps.
Generates a URL-safe slug from a title.
Examples
iex> Nous.KnowledgeBase.Entry.slugify("Elixir GenServer Patterns")
"elixir-genserver-patterns"
Recomputes the cached downcased search fields from title/content.
Call after any mutation of title or content (e.g. store update_entry)
so search never scores against a stale cache.