MCPcopy
hub / github.com/codedogQBY/ReadAny / setVectorDB

Function setVectorDB

packages/core/src/rag/vector-db.ts:27–29  ·  view source on GitHub ↗
(db: IVectorDB)

Source from the content-addressed store, hash-verified

25let vectorDB: IVectorDB | null = null;
26
27export function setVectorDB(db: IVectorDB): void {
28 vectorDB = db;
29}
30
31export function getVectorDB(): IVectorDB | null {
32 return vectorDB;

Callers 1

main.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected