mirror of
https://github.com/bendtherules/ask262.git
synced 2026-08-18 13:21:55 +00:00
chore(types) - Fix type checks
This commit is contained in:
+3
-3
@@ -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 @@
|
||||
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", () => {
|
||||
|
||||
Reference in New Issue
Block a user