veryfront/knowledge

Import

TypeScript
import {  createSearchKnowledgeTool,  formatKnowledgeContext,  inspectOkfDocument,  normalizedProjectKnowledgeScopeGrantsAnyPath,  normalizeKnowledgeQuery,  normalizeProjectKnowledgeScopeSelector,} from "veryfront/knowledge";

Examples

TypeScript
import { projectKnowledge } from "veryfront/knowledge"; const knowledge = projectKnowledge();await knowledge.index();const result = await knowledge.retrieve("SSO login failure");

Exports

Components

NameDescriptionSource
OKF_SPEC_REVISIONImmutable upstream revision used by this reader's conformance checks.source
OKF_SPEC_VERSIONSupported canonical OKF version. Existing documents are never migrated implicitly.source

Functions

NameDescriptionSource
createSearchKnowledgeToolCreate a project-authored knowledge tool with a configurable ID and hosted-compatible response shape.source
formatKnowledgeContextFormat search results into a deterministic prompt context block.source
inspectOkfDocumentInspect the basic OKF document contract at the pinned revision.source
normalizedProjectKnowledgeScopeGrantsAnyPathsource
normalizeKnowledgeQueryNormalize a knowledge query before retrieval.source
normalizeProjectKnowledgeScopeSelectorsource
projectKnowledgeCreate a project knowledge helper backed by the configured RAG store.source
projectKnowledgeScopeSelectorGrantsAnyPathsource
searchProjectKnowledgeSearch the local OKF knowledge manifest with the response shape of Veryfront Cloud's veryfront__search_knowledge operation. Two inputs differ from the hosted operation: lookup_target names one knowledge file (a path or { path }) rather than a source, and limit defaults to 8 rather than 6.source

Types

NameDescriptionSource
CreateSearchKnowledgeToolOptionssource
NormalizedProjectKnowledgeScopeSelectorsource
OkfDocumentDiagnosticAn actionable source defect, rather than a reason to discard document content.source
OkfDocumentInspectionLossless source plus decoded metadata; inspection does not serialize or edit YAML.source
ProjectKnowledgeHelper for indexing and retrieving project knowledge.source
ProjectKnowledgeConfigConfiguration for project knowledge indexing and retrieval.source
ProjectKnowledgeLookupFrontmatterFieldsource
ProjectKnowledgeLookupInputsource
ProjectKnowledgeLookupItemsource
ProjectKnowledgeLookupOutputsource
ProjectKnowledgeLookupPageInfosource
ProjectKnowledgeLookupShardsource
ProjectKnowledgeResultResult returned from project knowledge retrieval.source
ProjectKnowledgeRetrieveOptionsPer-call options for project knowledge retrieval.source
ProjectKnowledgeScopeSelectorsource
SearchKnowledgeToolsource