This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// The knowledge module's manifest (spec §4.1): the one place it registers anything. The normal
|
||||
// (Postgres) app binds the worker implementations of the index/remove jobs; the module's own
|
||||
// outbox subscribers enqueue them, so a web request writes the row and answers, never waiting on
|
||||
// chunking, embeddings or the vector store.
|
||||
|
||||
import { defineModule } from "@conusai-kit/core"
|
||||
import { KNOWLEDGE_JOBS, KNOWLEDGE_SUBSCRIPTIONS } from "./adapters/jobs.js"
|
||||
import { KNOWLEDGE_EVENTS } from "./contract/index.js"
|
||||
import { KNOWLEDGE_MODULE_BASE } from "./module.shared.js"
|
||||
|
||||
export const knowledgeModule = defineModule({
|
||||
...KNOWLEDGE_MODULE_BASE,
|
||||
jobs: KNOWLEDGE_JOBS,
|
||||
events: { publishes: [...KNOWLEDGE_EVENTS], subscribes: KNOWLEDGE_SUBSCRIPTIONS },
|
||||
})
|
||||
Reference in New Issue
Block a user