@knolo/langchain
LangChain-style retrieval adapter for Knolo knowledge packs.
npm install @knolo/langchain @knolo/core
import { KnoLoRetriever } from '@knolo/langchain';
const retriever = new KnoLoRetriever({
packPath: './dist/knowledge.knolo',
topK: 5,
});
const documents = await retriever.getRelevantDocuments('billing policy');
This package is 6.2.0 and depends on @knolo/core ^6.0.0. It does not
implement composition or Cortex. The adapter preserves Knolo’s deterministic V4 retrieval
API. V5 Knowledge Image inspection, verification, migration, and runtime
management are exposed by @knolo/core
and @knolo/cli. Composition is
@knolo/core/composition. Cortex is @knolo/core/cortex. @knolo/cli 6.2.0 depends on @knolo/core
^6.2.0.
For a mounted V5 image, pass image (or a Node imagePath) to the retriever.
The adapter uses bounded V5 EQL search and includes the image state root, query
plan root, query result root, object ID, and compatibility marker in document
metadata. Legacy pack/packPath retrieval remains unchanged.
License
Apache-2.0