mirror of
https://github.com/bendtherules/ask262.git
synced 2026-08-19 00:31:06 +00:00
chore(types) - Fix type checks
This commit is contained in:
@@ -13,8 +13,8 @@
|
||||
|
||||
import * as lancedbSdk from "@lancedb/lancedb";
|
||||
import { OllamaEmbeddings } from "@langchain/ollama";
|
||||
import { createSearchSpecSectionsTool } from "../../agent-tools";
|
||||
import { EMBEDDING_MODEL, STORAGE_DIR } from "../../constants";
|
||||
import { createSearchSpecSectionsTool } from "../../agent-tools/index.js";
|
||||
import { EMBEDDING_MODEL, STORAGE_DIR } from "../../constants.js";
|
||||
|
||||
async function main() {
|
||||
// Get query from command line or use default
|
||||
@@ -43,7 +43,7 @@ async function main() {
|
||||
console.log("✓ Tool created\n");
|
||||
|
||||
console.log("Executing tool...\n");
|
||||
const result = await searchSpecSectionsTool.func({ query });
|
||||
const result = await searchSpecSectionsTool({ query });
|
||||
|
||||
console.log("=== TOOL OUTPUT ===");
|
||||
console.log(result);
|
||||
|
||||
@@ -21,7 +21,7 @@ import type { Table } from "@lancedb/lancedb";
|
||||
import * as lancedbSdk from "@lancedb/lancedb";
|
||||
import { OllamaEmbeddings } from "@langchain/ollama";
|
||||
import { Command } from "commander";
|
||||
import { EMBEDDING_MODEL, STORAGE_DIR } from "../../constants";
|
||||
import { EMBEDDING_MODEL, STORAGE_DIR } from "../../constants.js";
|
||||
|
||||
const embeddings = new OllamaEmbeddings({
|
||||
model: EMBEDDING_MODEL,
|
||||
|
||||
Reference in New Issue
Block a user