chore: Lint fixes

This commit is contained in:
2026-03-27 17:47:12 +05:30
parent b6dbcfe91a
commit 0f5a31137f
6 changed files with 41 additions and 32 deletions
+9 -9
View File
@@ -1,16 +1,16 @@
import fs from "node:fs";
import {
VectorStoreIndex,
storageContextFromDefaults,
Settings,
QueryEngineTool,
ReActAgent,
} from "llamaindex";
import { OllamaEmbedding } from "@llamaindex/ollama";
import { OpenAI } from "@llamaindex/openai";
import { Graph } from "graphology";
import {
QueryEngineTool,
ReActAgent,
Settings,
storageContextFromDefaults,
VectorStoreIndex,
} from "llamaindex";
import { STORAGE_DIR, GRAPH_FILE } from "./constants.ts";
import { GRAPH_FILE, STORAGE_DIR } from "./constants.ts";
// Configure Settings
Settings.embedModel = new OllamaEmbedding({
@@ -94,7 +94,7 @@ async function main() {
const attr = graph.getNodeAttributes(neighbor);
const edges = graph.edges(nodeId, neighbor);
const edgeAttr = graph.getEdgeAttributes(edges[0]);
result += `- ${neighbor} (${attr.type}) via ${edgeAttr.type}${attr.title ? ": " + attr.title : ""}\n`;
result += `- ${neighbor} (${attr.type}) via ${edgeAttr.type}${attr.title ? `: ${attr.title}` : ""}\n`;
});
return result;
}