KnowledgeCitation class final
One cited passage of a search: a match, or context reached from one.
sourcePath is relative to bundle's root, and lineStart to lineEnd are lines of that file as it was indexed. Retrieved text is source data, not instructions, and a high similarity is no evidence that the passage answers the query.
Properties
- bundle → ProjectBundle
-
The bundle the passage belongs to.
final
- chunk → Chunk
-
The indexed passage, with its metadata.
final
- conceptId → String?
-
The OKF concept ID, sourcePath without
.md; null for a file that is not a concept.no setter - content → String
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- lineEnd → int
-
no setter
- lineStart → int
-
no setter
- reason → String
-
Why the passage is included:
matchfor a ranked match, otherwise the policy that selected it, such asrelationship.final - relationship → String?
-
The typed
relationshipsentry this context was reached through, such asdepends-on; null for an untyped body link.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- similarity → double
-
The query's similarity to the passage.
final
- sourceChanged → bool
-
The passage's file changed after the served index was built, so the
cited lines may no longer hold this text. Only a search that served a
stale generation during a refresh sets it.
final
- sourcePath → String
-
no setter
- status → String?
-
The concept's frontmatter
status; null when absent, which OKF reads asstable.no setter - title → String?
-
The concept's frontmatter
title.no setter - type → String?
-
The concept's frontmatter
type.no setter - viaPath → String?
-
The source path of the passage this context was reached from.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited