Skip to content

Commit 5ab17c3

Browse files
committed
fix: bump llamaindex
1 parent c61b136 commit 5ab17c3

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

bun.lockb

-16.9 KB
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"d3-dsv": "^3.0.1",
7979
"html-to-text": "^9.0.5",
8080
"langchain": "^0.2.0",
81-
"llamaindex": "0.6.0",
81+
"llamaindex": "0.6.12",
8282
"nanoid": "^5.0.7",
8383
"pdf-parse": "^1.1.1",
8484
"unstructured-client": "^0.15.1",

src/database.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { DEFAULT_SIMILARITY_THRESHOLD, DEFAULT_TOP_K } from "./constants";
66
import { FileDataLoader } from "./file-loader";
77
import type { AddContextOptions } from "./types";
88
import type { UnstructuredLoaderOptions } from "@langchain/community/document_loaders/fs/unstructured";
9-
import type { LlamaParseReader } from "llamaindex/readers/LlamaParseReader";
9+
import type { LlamaParseReader } from "llamaindex";
1010

1111
export type FilePath = string;
1212
export type URL = string;
@@ -84,7 +84,7 @@ export class Database {
8484
this.index = index;
8585
}
8686

87-
async reset(options?: ResetOptions ) {
87+
async reset(options?: ResetOptions) {
8888
await this.index.reset({ namespace: options?.namespace });
8989
}
9090

src/file-loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { RecursiveCharacterTextSplitter } from "langchain/text_splitter";
1212
import { nanoid } from "nanoid";
1313
import { UnstructuredClient } from "unstructured-client";
1414
import type { DatasWithFileSource, FilePath, ProcessorType, URL } from "./database";
15-
import { LlamaParseReader } from "llamaindex/readers/LlamaParseReader";
15+
import { LlamaParseReader } from "llamaindex";
1616

1717
type Element = {
1818
type: string;

0 commit comments

Comments
 (0)