chore(types) - Fix type checks

This commit is contained in:
2026-04-14 16:47:20 +05:30
parent 5413f86d2b
commit 164747c255
10 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -8,9 +8,9 @@ import { OllamaEmbeddings } from "@langchain/ollama";
import * as cheerio from "cheerio";
import { glob } from "glob";
import ora from "ora";
import { EMBEDDING_MODEL, SPEC_DIR, STORAGE_DIR } from "../constants";
import { HTMLTextSplitter } from "./text-splitters";
import { formatForIngestion } from "./utils/formatHTMLForIngestion";
import { EMBEDDING_MODEL, SPEC_DIR, STORAGE_DIR } from "../constants.js";
import { HTMLTextSplitter } from "./text-splitters/index.js";
import { formatForIngestion } from "./utils/formatHTMLForIngestion.js";
const embeddings = new OllamaEmbeddings({
model: EMBEDDING_MODEL,
@@ -1,6 +1,6 @@
import { describe, expect, test } from "bun:test";
import { Document } from "@langchain/core/documents";
import { HTMLTextSplitter } from "./index";
import { HTMLTextSplitter } from "./index.js";
describe("HTMLTextSplitter", () => {
test("keeps small HTML in a single chunk", async () => {
+1 -1
View File
@@ -1 +1 @@
export * from "./HtmlTextSplitter";
export * from "./HtmlTextSplitter.js";
@@ -9,7 +9,7 @@ import {
convertTablesToMarkdown,
DEFAULT_CONFIG,
formatForIngestion,
} from "./formatHTMLForIngestion";
} from "./formatHTMLForIngestion.js";
describe("formatHTMLForIngestion", () => {
describe("convertLinksToMarkdown", () => {