Skip to content

Commit

Permalink
fix: bump llamaindex
Browse files Browse the repository at this point in the history
  • Loading branch information
ytkimirti committed Oct 2, 2024
1 parent c61b136 commit 5ab17c3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"d3-dsv": "^3.0.1",
"html-to-text": "^9.0.5",
"langchain": "^0.2.0",
"llamaindex": "0.6.0",
"llamaindex": "0.6.12",
"nanoid": "^5.0.7",
"pdf-parse": "^1.1.1",
"unstructured-client": "^0.15.1",
Expand Down
4 changes: 2 additions & 2 deletions src/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { DEFAULT_SIMILARITY_THRESHOLD, DEFAULT_TOP_K } from "./constants";
import { FileDataLoader } from "./file-loader";
import type { AddContextOptions } from "./types";
import type { UnstructuredLoaderOptions } from "@langchain/community/document_loaders/fs/unstructured";
import type { LlamaParseReader } from "llamaindex/readers/LlamaParseReader";
import type { LlamaParseReader } from "llamaindex";

export type FilePath = string;
export type URL = string;
Expand Down Expand Up @@ -84,7 +84,7 @@ export class Database {
this.index = index;
}

async reset(options?: ResetOptions ) {
async reset(options?: ResetOptions) {
await this.index.reset({ namespace: options?.namespace });
}

Expand Down
2 changes: 1 addition & 1 deletion src/file-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { RecursiveCharacterTextSplitter } from "langchain/text_splitter";
import { nanoid } from "nanoid";
import { UnstructuredClient } from "unstructured-client";
import type { DatasWithFileSource, FilePath, ProcessorType, URL } from "./database";
import { LlamaParseReader } from "llamaindex/readers/LlamaParseReader";
import { LlamaParseReader } from "llamaindex";

type Element = {
type: string;
Expand Down

0 comments on commit 5ab17c3

Please sign in to comment.