Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions scripts/verify-governance.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

// SPDX-License-Identifier: Apache-2.0
import { mkdirSync, writeFileSync } from "node:fs";
import { spawnSync } from "node:child_process";
Expand Down
6 changes: 4 additions & 2 deletions scripts/verify-status-truth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ const docs = {
target: readFileSync("docs/architecture/target-state.md", "utf8"),
};

const rawFiles = execSync('find src test docs .github/workflows scripts -type f').toString('utf8').trim();
const files = rawFiles ? rawFiles.split('\n') : [];
const rawFiles = execSync("rg --files src test docs .github/workflows scripts")
.toString("utf8")
.trim();
const files = rawFiles ? rawFiles.split("\n") : [];
const hasFile = (pattern: RegExp) => files.some((f) => pattern.test(f));

const components: Component[] = [
Expand Down
2 changes: 0 additions & 2 deletions scripts/verify-threat-seams.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

// SPDX-License-Identifier: Apache-2.0
import { spawnSync } from "node:child_process";

Expand Down
2 changes: 0 additions & 2 deletions scripts/verify-version-drift.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

// SPDX-License-Identifier: Apache-2.0
import { readFileSync } from "node:fs";

Expand Down
11 changes: 6 additions & 5 deletions src/lib/control-plane/meshrag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,12 @@ export async function ingestRecords(input: { records: RetrievalIngestionRecord[]
if (input.embedding.status() === "unavailable") return { accepted: [], degraded: ["embedding_adapter_unavailable"] };
if (input.vectorStore.status() === "unavailable") return { accepted: [], degraded: ["vector_store_unavailable"] };
if (input.vectorStore.status() === "degraded") degraded.push("vector_store_degraded");
const rows = [];
for (const record of input.records) {
const embedded = await input.embedding.embed({ text: record.content });
rows.push({ recordId: record.recordId, vector: embedded.vector, record });
}
const rows = await Promise.all(
input.records.map(async (record) => {
const embedded = await input.embedding.embed({ text: record.content });
Comment thread
Hardonian marked this conversation as resolved.
return { recordId: record.recordId, vector: embedded.vector, record };
})
);
await input.vectorStore.upsert(rows);
return { accepted: rows.map((r) => r.recordId), degraded };
}
Expand Down
Loading