Nous.KnowledgeBase.Entry (nous v0.15.7)

View Source

A 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.

Types

entry_type()

@type entry_type() :: :article | :concept | :summary | :index | :glossary

t()

@type t() :: %Nous.KnowledgeBase.Entry{
  concepts: [String.t()],
  confidence: float(),
  content: String.t(),
  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(),
  updated_at: DateTime.t()
}

Functions

new(attrs)

Creates a new Entry from attributes.

Requires :title and :content. Auto-generates id, slug, and timestamps.

slugify(title)

Generates a URL-safe slug from a title.

Examples

iex> Nous.KnowledgeBase.Entry.slugify("Elixir GenServer Patterns")
"elixir-genserver-patterns"