Compare commits

...

4 Commits

Author SHA1 Message Date
github-actions[bot] bb7622e4d4 Release 0.7.4 (#1365)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-22 00:55:33 -07:00
Alex Yang 06f632b2cb fix(cloud): allow filename in llama parse (#1364) 2024-10-22 00:49:15 -07:00
github-actions[bot] 76b925e62a Release 0.7.3 (#1357)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: himself65 <himself65@users.noreply.github.com>
2024-10-20 20:15:51 -07:00
Alex Yang 0493f679a4 fix(core): inline python-format-js (#1356) 2024-10-20 20:07:48 -07:00
58 changed files with 1788 additions and 575 deletions
+12
View File
@@ -1,5 +1,17 @@
# docs
## 0.0.96
### Patch Changes
- llamaindex@0.7.4
## 0.0.95
### Patch Changes
- llamaindex@0.7.3
## 0.0.94
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "docs",
"version": "0.0.94",
"version": "0.0.96",
"private": true,
"scripts": {
"docusaurus": "docusaurus",
Binary file not shown.
+52
View File
@@ -0,0 +1,52 @@
import { Language, LlamaParseReader } from "llamaindex";
import fs from "node:fs";
import path from "node:path";
type LlamaParseReaderParams = Partial<
Omit<LlamaParseReader, "language" | "apiKey">
> & {
language?: Language | Language[] | undefined;
apiKey?: string | undefined;
};
async function main() {
const filePath = "../data/pto_policy_employee.docx";
if (!fs.existsSync(filePath)) {
console.error(`File ${filePath} does not exist`);
process.exit(1);
} else {
console.log(`File ${filePath} exists`);
}
const params: LlamaParseReaderParams = {
verbose: true,
parsingInstruction:
"Extract the text from the document a long with any images and tables. This is a document for a course and the contents of the images are important.",
fastMode: false,
gpt4oMode: true,
useVendorMultimodalModel: true,
vendorMultimodalModelName: "anthropic-sonnet-3.5",
premiumMode: true,
resultType: "markdown",
apiKey: process.env.LLAMA_CLOUD_API_KEY,
doNotCache: true,
};
// set up the llamaparse reader
const reader = new LlamaParseReader(params);
const buffer = fs.readFileSync(filePath);
const documents = await reader.loadDataAsContent(
new Uint8Array(buffer),
path.basename(filePath),
);
let allText = "";
documents.forEach((doc) => {
allText += doc.text;
});
console.log(allText);
}
main().catch(console.error);
-3
View File
@@ -39,9 +39,6 @@
"overrides": {
"trim": "1.0.1",
"protobufjs": "7.2.6"
},
"patchedDependencies": {
"python-format-js@1.4.3": "patches/python-format-js@1.4.3.patch"
}
},
"lint-staged": {
+12
View File
@@ -1,5 +1,17 @@
# @llamaindex/autotool
## 4.0.4
### Patch Changes
- llamaindex@0.7.4
## 4.0.3
### Patch Changes
- llamaindex@0.7.3
## 4.0.2
### Patch Changes
@@ -1,5 +1,19 @@
# @llamaindex/autotool-01-node-example
## 0.0.36
### Patch Changes
- llamaindex@0.7.4
- @llamaindex/autotool@4.0.4
## 0.0.35
### Patch Changes
- llamaindex@0.7.3
- @llamaindex/autotool@4.0.3
## 0.0.34
### Patch Changes
@@ -13,5 +13,5 @@
"scripts": {
"start": "node --import tsx --import @llamaindex/autotool/node ./src/index.ts"
},
"version": "0.0.34"
"version": "0.0.36"
}
@@ -1,5 +1,19 @@
# @llamaindex/autotool-02-next-example
## 0.1.80
### Patch Changes
- llamaindex@0.7.4
- @llamaindex/autotool@4.0.4
## 0.1.79
### Patch Changes
- llamaindex@0.7.3
- @llamaindex/autotool@4.0.3
## 0.1.78
### Patch Changes
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/autotool-02-next-example",
"private": true,
"version": "0.1.78",
"version": "0.1.80",
"scripts": {
"dev": "next dev",
"build": "next build",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/autotool",
"type": "module",
"version": "4.0.2",
"version": "4.0.4",
"description": "auto transpile your JS function to LLM Agent compatible",
"files": [
"dist",
+13
View File
@@ -1,5 +1,18 @@
# @llamaindex/cloud
## 1.0.4
### Patch Changes
- 06f632b: fix(cloud): allow filename in llama parse
## 1.0.3
### Patch Changes
- Updated dependencies [0493f67]
- @llamaindex/core@0.3.3
## 1.0.2
### Patch Changes
+1166 -462
View File
File diff suppressed because it is too large Load Diff
+6 -5
View File
@@ -1,11 +1,12 @@
{
"name": "@llamaindex/cloud",
"version": "1.0.2",
"version": "1.0.4",
"type": "module",
"license": "MIT",
"scripts": {
"generate": "pnpx @hey-api/openapi-ts@0.53.0",
"build": "pnpm run generate && bunchee"
"generate": "pnpx @hey-api/openapi-ts@0.53.11",
"build": "pnpm run generate && bunchee",
"dev": "bunchee --watch"
},
"files": [
"openapi.json",
@@ -49,8 +50,8 @@
"directory": "packages/cloud"
},
"devDependencies": {
"@hey-api/client-fetch": "^0.2.4",
"@hey-api/openapi-ts": "^0.53.0",
"@hey-api/client-fetch": "^0.4.2",
"@hey-api/openapi-ts": "^0.53.11",
"@llamaindex/core": "workspace:*",
"@llamaindex/env": "workspace:*",
"bunchee": "5.5.1"
+35 -6
View File
@@ -84,6 +84,13 @@ export class LlamaParseReader extends FileReader {
disableReconstruction?: boolean | undefined;
inputS3Path?: string | undefined;
outputS3PathPrefix?: string | undefined;
continuousMode?: boolean | undefined;
isFormattingInstruction?: boolean | undefined;
annotateLinks?: boolean | undefined;
azureOpenaiDeploymentName?: string | undefined;
azureOpenaiEndpoint?: string | undefined;
azureOpenaiApiVersion?: string | undefined;
azureOpenaiKey?: string | undefined;
// numWorkers is implemented in SimpleDirectoryReader
stdout?: WriteStream | undefined;
@@ -144,13 +151,19 @@ export class LlamaParseReader extends FileReader {
}
// Create a job for the LlamaParse API
private async createJob(data: Uint8Array): Promise<string> {
async #createJob(data: Uint8Array, filename?: string): Promise<string> {
if (this.verbose) {
console.log("Started uploading the file");
}
// todo: remove Blob usage when we drop Node.js 18 support
const file: File | Blob =
globalThis.File && filename
? new File([data], filename)
: new Blob([data]);
const body = {
file: new Blob([data]),
file,
language: this.language,
parsing_instruction: this.parsingInstruction,
skip_diagonal_text: this.skipDiagonalText,
@@ -175,6 +188,13 @@ export class LlamaParseReader extends FileReader {
disable_reconstruction: this.disableReconstruction,
input_s3_path: this.inputS3Path,
output_s3_path_prefix: this.outputS3PathPrefix,
continuous_mode: this.continuousMode,
is_formatting_instruction: this.isFormattingInstruction,
annotate_links: this.annotateLinks,
azure_openai_deployment_name: this.azureOpenaiDeploymentName,
azure_openai_endpoint: this.azureOpenaiEndpoint,
azure_openai_api_version: this.azureOpenaiApiVersion,
azure_openai_key: this.azureOpenaiKey,
} satisfies {
[Key in keyof Body_upload_file_api_v1_parsing_upload_post]-?:
| Body_upload_file_api_v1_parsing_upload_post[Key]
@@ -286,10 +306,14 @@ export class LlamaParseReader extends FileReader {
* To be used with resultType = "text" and "markdown"
*
* @param {Uint8Array} fileContent - The content of the file to be loaded.
* @param {string} filename - The name of the file to be loaded.
* @return {Promise<Document[]>} A Promise object that resolves to an array of Document objects.
*/
async loadDataAsContent(fileContent: Uint8Array): Promise<Document[]> {
return this.createJob(fileContent)
async loadDataAsContent(
fileContent: Uint8Array,
filename?: string,
): Promise<Document[]> {
return this.#createJob(fileContent, filename)
.then(async (jobId) => {
if (this.verbose) {
console.log(`Started parsing the file under job id ${jobId}`);
@@ -312,7 +336,9 @@ export class LlamaParseReader extends FileReader {
})
.catch((error) => {
if (this.ignoreErrors) {
console.warn(`Error while parsing the file: ${error.message}`);
console.warn(
`Error while parsing the file: ${error.message ?? error.detail}`,
);
return [];
} else {
throw error;
@@ -336,7 +362,10 @@ export class LlamaParseReader extends FileReader {
? await fs.readFile(filePathOrContent)
: filePathOrContent;
// Creates a job for the file
jobId = await this.createJob(data);
jobId = await this.#createJob(
data,
isFilePath ? path.basename(filePathOrContent) : undefined,
);
if (this.verbose) {
console.log(`Started parsing the file under job id ${jobId}`);
}
+7
View File
@@ -1,5 +1,12 @@
# @llamaindex/community
## 0.0.51
### Patch Changes
- Updated dependencies [0493f67]
- @llamaindex/core@0.3.3
## 0.0.50
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/community",
"description": "Community package for LlamaIndexTS",
"version": "0.0.50",
"version": "0.0.51",
"type": "module",
"types": "dist/type/index.d.ts",
"main": "dist/cjs/index.js",
+6
View File
@@ -1,5 +1,11 @@
# @llamaindex/core
## 0.3.3
### Patch Changes
- 0493f67: fix(core): inline `python-format-js`
## 0.3.2
### Patch Changes
+2 -3
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/core",
"type": "module",
"version": "0.3.2",
"version": "0.3.3",
"description": "LlamaIndex Core Module",
"exports": {
"./agent": {
@@ -336,8 +336,7 @@
"ajv": "^8.17.1",
"bunchee": "5.5.1",
"happy-dom": "^15.7.4",
"natural": "^8.0.1",
"python-format-js": "^1.4.3"
"natural": "^8.0.1"
},
"dependencies": {
"@llamaindex/env": "workspace:*",
+1 -1
View File
@@ -1,7 +1,7 @@
import format from "python-format-js";
import type { ChatMessage } from "../llms";
import type { BaseOutputParser, Metadata } from "../schema";
import { objectEntries } from "../utils";
import { format } from "./format";
import { PromptType } from "./prompt-type";
type MappingFn<TemplatesVar extends string[] = string[]> = (
+207
View File
@@ -0,0 +1,207 @@
/**
* MIT License
*
* Copyright (c) 2019 jhonararipe
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
"use strict";
function formatImpl(this: string, ...args_: any[]) {
// Create variables
let self = this;
const __patterns__ = self.match(/({.*?})/g);
const {
REF,
FILL_CHAR,
MASK_NUMBER,
ALIGN_OP,
CROP_SIZE,
DOT,
FRACTION,
TYPE_VAR,
} = {
REF: 1,
FILL_CHAR: 2,
MASK_NUMBER: 3,
ALIGN_OP: 4,
CROP_SIZE: 5,
DOT: 6,
FRACTION: 7,
TYPE_VAR: 8,
};
const DEFAULT_PLACE = 6;
const ALL_REGEXP =
/{(\w+)?:([^>\^<\d#]|0)?([#%,])?([>^<\.])?(\d+)?(\.)?(\d+)?([eEfFgGdxXobn#%])?}/g;
const regExpBasic = /{\[?(\w+)\]?}/; // it's not best solution
const isObject = typeof args_[0] === "object";
// types/use logic
__patterns__?.map((pattern, patt_index) => {
const kargs = ALL_REGEXP.exec(pattern) || ALL_REGEXP.exec(pattern);
const wargs = regExpBasic.exec(pattern);
// Insert values (one 2 one / array / object)
const INDEX_VAR =
(wargs ? wargs[REF] : kargs ? kargs[REF] : patt_index) || patt_index;
// @ts-expect-error
const NATUAL_VALUE = isObject ? args_[0][INDEX_VAR] : args_[INDEX_VAR];
// @ts-expect-error
let ACTUAL_VALUE = isObject ? args_[0][INDEX_VAR] : args_[INDEX_VAR];
// Verify sintax/semantic
if (ACTUAL_VALUE === null || ACTUAL_VALUE === undefined)
throw new Error(
`Replacement index ${INDEX_VAR} out of range for positional args tuple`,
);
if (kargs) {
// If TYPE_VAR is not defined and the first argument is a number, pad a string should from left, so set TYPE_VAR to "d"
if (kargs[TYPE_VAR] === undefined && typeof ACTUAL_VALUE === "number") {
kargs[TYPE_VAR] = "d";
}
const LETTER =
(!kargs[FILL_CHAR]
? false
: !kargs[ALIGN_OP] &&
[..."FfbefoxXn"].includes(kargs[FILL_CHAR].toLowerCase())
? kargs[FILL_CHAR]
: kargs[TYPE_VAR]) || kargs[TYPE_VAR];
// padronaze
if (LETTER) {
const floatSize = pattern.includes(".")
? Number(kargs[FRACTION] || kargs[CROP_SIZE])
: DEFAULT_PLACE;
switch (LETTER) {
case "E":
ACTUAL_VALUE =
ACTUAL_VALUE.toExponential(DEFAULT_PLACE).toUpperCase();
break;
case "e":
ACTUAL_VALUE = ACTUAL_VALUE.toExponential(DEFAULT_PLACE);
break;
case "X":
ACTUAL_VALUE = ACTUAL_VALUE.toString(16).toUpperCase();
break;
case "x":
ACTUAL_VALUE = ACTUAL_VALUE.toString(16); // Hexadecimal
break;
case "b":
ACTUAL_VALUE = ACTUAL_VALUE.toString(2); // Binary
break;
case "f":
case "F":
ACTUAL_VALUE = ACTUAL_VALUE.toFixed(floatSize);
break;
case "o":
ACTUAL_VALUE = ACTUAL_VALUE.toString(8); // Octal
break;
default:
break;
}
// mask
switch (kargs[MASK_NUMBER]) {
case "#":
const MASK = {
x: "0x",
X: "0X",
o: "0o",
b: "0b",
}[LETTER];
ACTUAL_VALUE = MASK + ACTUAL_VALUE;
break;
}
}
// signal
if (
// @ts-expect-error
[..." +-,%"].includes(kargs[FILL_CHAR]) &&
typeof NATUAL_VALUE === "number"
) {
ACTUAL_VALUE = ACTUAL_VALUE.toString().replace("-", "");
if (NATUAL_VALUE >= 0)
switch (kargs[FILL_CHAR]) {
case "+":
ACTUAL_VALUE = "+" + ACTUAL_VALUE;
break;
case " ":
ACTUAL_VALUE = " " + ACTUAL_VALUE;
break;
case ",":
ACTUAL_VALUE = NATUAL_VALUE.toString()
.split(/(?=(?:...)*$)/)
.join(kargs[FILL_CHAR]);
break;
case "%":
ACTUAL_VALUE =
(NATUAL_VALUE * 100).toFixed(
// @ts-expect-error
kargs[FRACTION] || DEFAULT_PLACE,
) + "%";
break;
}
else ACTUAL_VALUE = "-" + ACTUAL_VALUE;
}
// space / order / trim
if (kargs[CROP_SIZE]) {
ACTUAL_VALUE = ACTUAL_VALUE.toString();
const FILL_ELEMENT = kargs[FILL_CHAR] || " ";
const SIZE_STRING = ACTUAL_VALUE.length;
const SIZE_ARG = kargs[CROP_SIZE];
const FILL_LENGTH = SIZE_STRING > SIZE_ARG ? SIZE_STRING : SIZE_ARG;
const FILL = FILL_ELEMENT.repeat(FILL_LENGTH);
switch (kargs[ALIGN_OP] || kargs[FILL_CHAR]) {
case "<":
ACTUAL_VALUE = ACTUAL_VALUE.padEnd(FILL_LENGTH, FILL_ELEMENT);
break;
case ".":
if (!(LETTER && /[fF]/.test(LETTER)))
ACTUAL_VALUE = ACTUAL_VALUE.slice(0, SIZE_ARG);
break;
case ">":
ACTUAL_VALUE = ACTUAL_VALUE.padStart(FILL_LENGTH, FILL_ELEMENT);
break;
case "^":
const length_start = Math.floor((FILL_LENGTH - SIZE_STRING) / 2);
const string_start =
length_start > 0
? FILL_ELEMENT.repeat(length_start) + ACTUAL_VALUE
: ACTUAL_VALUE;
ACTUAL_VALUE = FILL.replace(
RegExp(`.{${string_start.length}}`),
string_start,
);
break;
default:
ACTUAL_VALUE = LETTER
? ACTUAL_VALUE.padStart(FILL_LENGTH, FILL_ELEMENT)
: ACTUAL_VALUE.padEnd(FILL_LENGTH, FILL_ELEMENT);
break;
}
}
}
// SET Definitive value
self = self.replace(pattern, ACTUAL_VALUE);
});
return self;
}
export const format = (inputString: string, ...param: any[]) =>
formatImpl.apply(inputString, param);
+3 -3
View File
@@ -42,13 +42,13 @@ export interface BaseReader {
export abstract class FileReader implements BaseReader {
abstract loadDataAsContent(
fileContent: Uint8Array,
fileName?: string,
filename?: string,
): Promise<Document[]>;
async loadData(filePath: string): Promise<Document[]> {
const fileContent = await fs.readFile(filePath);
const fileName = path.basename(filePath);
const docs = await this.loadDataAsContent(fileContent, fileName);
const filename = path.basename(filePath);
const docs = await this.loadDataAsContent(fileContent, filename);
docs.forEach(FileReader.addMetaData(filePath));
return docs;
}
+12
View File
@@ -1,5 +1,17 @@
# @llamaindex/experimental
## 0.0.105
### Patch Changes
- llamaindex@0.7.4
## 0.0.104
### Patch Changes
- llamaindex@0.7.3
## 0.0.103
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/experimental",
"description": "Experimental package for LlamaIndexTS",
"version": "0.0.103",
"version": "0.0.105",
"type": "module",
"types": "dist/type/index.d.ts",
"main": "dist/cjs/index.js",
+24
View File
@@ -1,5 +1,29 @@
# llamaindex
## 0.7.4
### Patch Changes
- Updated dependencies [06f632b]
- @llamaindex/cloud@1.0.4
## 0.7.3
### Patch Changes
- Updated dependencies [0493f67]
- @llamaindex/core@0.3.3
- @llamaindex/cloud@1.0.3
- @llamaindex/anthropic@0.0.4
- @llamaindex/clip@0.0.4
- @llamaindex/deepinfra@0.0.4
- @llamaindex/huggingface@0.0.4
- @llamaindex/ollama@0.0.11
- @llamaindex/openai@0.1.20
- @llamaindex/portkey-ai@0.0.4
- @llamaindex/replicate@0.0.4
- @llamaindex/groq@0.0.19
## 0.7.2
### Patch Changes
@@ -1,5 +1,17 @@
# @llamaindex/cloudflare-worker-agent-test
## 0.0.89
### Patch Changes
- llamaindex@0.7.4
## 0.0.88
### Patch Changes
- llamaindex@0.7.3
## 0.0.87
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/cloudflare-worker-agent-test",
"version": "0.0.87",
"version": "0.0.89",
"type": "module",
"private": true,
"scripts": {
@@ -1,5 +1,18 @@
# @llamaindex/llama-parse-browser-test
## 0.0.15
### Patch Changes
- Updated dependencies [06f632b]
- @llamaindex/cloud@1.0.4
## 0.0.14
### Patch Changes
- @llamaindex/cloud@1.0.3
## 0.0.13
### Patch Changes
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/llama-parse-browser-test",
"private": true,
"version": "0.0.13",
"version": "0.0.15",
"type": "module",
"scripts": {
"dev": "vite",
@@ -1,5 +1,17 @@
# @llamaindex/next-agent-test
## 0.1.89
### Patch Changes
- llamaindex@0.7.4
## 0.1.88
### Patch Changes
- llamaindex@0.7.3
## 0.1.87
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/next-agent-test",
"version": "0.1.87",
"version": "0.1.89",
"private": true,
"scripts": {
"dev": "next dev",
@@ -1,5 +1,17 @@
# test-edge-runtime
## 0.1.88
### Patch Changes
- llamaindex@0.7.4
## 0.1.87
### Patch Changes
- llamaindex@0.7.3
## 0.1.86
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/nextjs-edge-runtime-test",
"version": "0.1.86",
"version": "0.1.88",
"private": true,
"scripts": {
"dev": "next dev",
@@ -1,5 +1,17 @@
# @llamaindex/next-node-runtime
## 0.0.70
### Patch Changes
- llamaindex@0.7.4
## 0.0.69
### Patch Changes
- llamaindex@0.7.3
## 0.0.68
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/next-node-runtime-test",
"version": "0.0.68",
"version": "0.0.70",
"private": true,
"scripts": {
"dev": "next dev",
@@ -1,5 +1,17 @@
# @llamaindex/waku-query-engine-test
## 0.0.89
### Patch Changes
- llamaindex@0.7.4
## 0.0.88
### Patch Changes
- llamaindex@0.7.3
## 0.0.87
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/waku-query-engine-test",
"version": "0.0.87",
"version": "0.0.89",
"type": "module",
"private": true,
"scripts": {
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "llamaindex",
"version": "0.7.2",
"version": "0.7.4",
"license": "MIT",
"type": "module",
"keywords": [
@@ -40,7 +40,7 @@
"@llamaindex/ollama": "workspace:*",
"@llamaindex/openai": "workspace:*",
"@llamaindex/portkey-ai": "workspace:*",
"@llamaindex/replicate": "workspace:^0.0.3",
"@llamaindex/replicate": "workspace:^0.0.4",
"@mistralai/mistralai": "^1.0.4",
"@mixedbread-ai/sdk": "^2.2.11",
"@pinecone-database/pinecone": "^3.0.2",
@@ -1,5 +1,12 @@
# @llamaindex/anthropic
## 0.0.4
### Patch Changes
- Updated dependencies [0493f67]
- @llamaindex/core@0.3.3
## 0.0.3
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/anthropic",
"description": "Anthropic Adapter for LlamaIndex",
"version": "0.0.3",
"version": "0.0.4",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
+8
View File
@@ -1,5 +1,13 @@
# @llamaindex/clip
## 0.0.4
### Patch Changes
- Updated dependencies [0493f67]
- @llamaindex/core@0.3.3
- @llamaindex/openai@0.1.20
## 0.0.3
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/clip",
"description": "Clip Embedding Adapter for LlamaIndex",
"version": "0.0.3",
"version": "0.0.4",
"type": "module",
"types": "dist/index.d.ts",
"main": "dist/index.cjs",
@@ -1,5 +1,13 @@
# @llamaindex/deepinfra
## 0.0.4
### Patch Changes
- Updated dependencies [0493f67]
- @llamaindex/core@0.3.3
- @llamaindex/openai@0.1.20
## 0.0.3
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/deepinfra",
"description": "Deepinfra Adapter for LlamaIndex",
"version": "0.0.3",
"version": "0.0.4",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
+6
View File
@@ -1,5 +1,11 @@
# @llamaindex/groq
## 0.0.19
### Patch Changes
- @llamaindex/openai@0.1.20
## 0.0.18
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/groq",
"description": "Groq Adapter for LlamaIndex",
"version": "0.0.18",
"version": "0.0.19",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -1,5 +1,13 @@
# @llamaindex/huggingface
## 0.0.4
### Patch Changes
- Updated dependencies [0493f67]
- @llamaindex/core@0.3.3
- @llamaindex/openai@0.1.20
## 0.0.3
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/huggingface",
"description": "Huggingface Adapter for LlamaIndex",
"version": "0.0.3",
"version": "0.0.4",
"type": "module",
"types": "dist/index.d.ts",
"main": "dist/index.cjs",
+7
View File
@@ -1,5 +1,12 @@
# @llamaindex/ollama
## 0.0.11
### Patch Changes
- Updated dependencies [0493f67]
- @llamaindex/core@0.3.3
## 0.0.10
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/ollama",
"description": "Ollama Adapter for LlamaIndex",
"version": "0.0.10",
"version": "0.0.11",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
+7
View File
@@ -1,5 +1,12 @@
# @llamaindex/openai
## 0.1.20
### Patch Changes
- Updated dependencies [0493f67]
- @llamaindex/core@0.3.3
## 0.1.19
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/openai",
"description": "OpenAI Adapter for LlamaIndex",
"version": "0.1.19",
"version": "0.1.20",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -1,5 +1,12 @@
# @llamaindex/portkey-ai
## 0.0.4
### Patch Changes
- Updated dependencies [0493f67]
- @llamaindex/core@0.3.3
## 0.0.3
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/portkey-ai",
"description": "Portkey Adapter for LlamaIndex",
"version": "0.0.3",
"version": "0.0.4",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -1,5 +1,12 @@
# @llamaindex/replicate
## 0.0.4
### Patch Changes
- Updated dependencies [0493f67]
- @llamaindex/core@0.3.3
## 0.0.3
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/replicate",
"description": "Replicate Adapter for LlamaIndex",
"version": "0.0.3",
"version": "0.0.4",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
+41 -69
View File
@@ -8,11 +8,6 @@ overrides:
trim: 1.0.1
protobufjs: 7.2.6
patchedDependencies:
python-format-js@1.4.3:
hash: 2qoyzwmpaczaj2mabgmoz6ccpy
path: patches/python-format-js@1.4.3.patch
importers:
.:
@@ -350,11 +345,11 @@ importers:
packages/cloud:
devDependencies:
'@hey-api/client-fetch':
specifier: ^0.2.4
version: 0.2.4
specifier: ^0.4.2
version: 0.4.2
'@hey-api/openapi-ts':
specifier: ^0.53.0
version: 0.53.0(typescript@5.6.3)
specifier: ^0.53.11
version: 0.53.11(typescript@5.6.3)
'@llamaindex/core':
specifier: workspace:*
version: link:../core
@@ -420,9 +415,6 @@ importers:
natural:
specifier: ^8.0.1
version: 8.0.1(@aws-sdk/credential-providers@3.675.0)
python-format-js:
specifier: ^1.4.3
version: 1.4.3(patch_hash=2qoyzwmpaczaj2mabgmoz6ccpy)
packages/core/tests:
devDependencies:
@@ -564,7 +556,7 @@ importers:
specifier: workspace:*
version: link:../providers/portkey-ai
'@llamaindex/replicate':
specifier: workspace:^0.0.3
specifier: workspace:^0.0.4
version: link:../providers/replicate
'@mistralai/mistralai':
specifier: ^1.0.4
@@ -3322,11 +3314,11 @@ packages:
'@hapi/topo@5.1.0':
resolution: {integrity: sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==}
'@hey-api/client-fetch@0.2.4':
resolution: {integrity: sha512-SGTVAVw3PlKDLw+IyhNhb/jCH3P1P2xJzLxA8Kyz1g95HrkYOJdRpl9F5I7LLwo9aCIB7nwR2NrSeX7QaQD7vQ==}
'@hey-api/client-fetch@0.4.2':
resolution: {integrity: sha512-9BqcLTjsM3rWbads3afJkELS86vK7EqJvYgT429EVS9IO/kN75HEka3Ay/k142xCHSfXOuOShMdDam3nbG8wVA==}
'@hey-api/openapi-ts@0.53.0':
resolution: {integrity: sha512-5pDd/s0yHJniruYyKYmEsAMbY10Nh/EwhHlgIrdpQ1KZWQdyTbH/tn8rVHT5Mopr1dMuYX0kq0TzpjcNlvrROQ==}
'@hey-api/openapi-ts@0.53.11':
resolution: {integrity: sha512-PaO+o0jDhfHVS5SjtonP5CzP/NYoW8dVZUn8WthSgzpgPts8AiWYXplOyk5uEnM4ZxbkZbeTiREwaNLnJmXlTQ==}
engines: {node: ^18.0.0 || >=20.0.0}
hasBin: true
peerDependencies:
@@ -5949,10 +5941,10 @@ packages:
resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==}
engines: {node: '>= 0.8'}
c12@1.11.1:
resolution: {integrity: sha512-KDU0TvSvVdaYcQKQ6iPHATGz/7p/KiVjPg4vQrB6Jg/wX9R0yl5RZxWm9IoZqaIHD2+6PZd81+KMGwRr/lRIUg==}
c12@2.0.1:
resolution: {integrity: sha512-Z4JgsKXHG37C6PYUtIxCfLJZvo6FyhHJoClwwb9ftUkLpPSkuYqn6Tr+vnaN8hymm0kIbcg6Ey3kv/Q71k5w/A==}
peerDependencies:
magicast: ^0.3.4
magicast: ^0.3.5
peerDependenciesMeta:
magicast:
optional: true
@@ -6085,6 +6077,10 @@ packages:
resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==}
engines: {node: '>= 8.10.0'}
chokidar@4.0.1:
resolution: {integrity: sha512-n8enUVCED/KVRQlab1hr3MVpcVMvxtZjmEa956u+4YijlmQED223XMSYj2tLuKvr4jcCTzNNMpQDUer72MMmzA==}
engines: {node: '>= 14.16.0'}
chownr@1.1.4:
resolution: {integrity: sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==}
@@ -8397,6 +8393,10 @@ packages:
resolution: {integrity: sha512-2yTgeWTWzMWkHu6Jp9NKgePDaYHbntiwvYuuJLbbN9vl7DC9DvXKOB2BC3ZZ92D3cvV/aflH0osDfwpHepQ53w==}
hasBin: true
jiti@2.3.3:
resolution: {integrity: sha512-EX4oNDwcXSivPrw2qKH2LB5PoFxEvgtv2JgwW0bU858HoLQ+kutSvjLMUqBd0PeJYEinLWhoI9Ol0eYMqj/wNQ==}
hasBin: true
joi@17.13.3:
resolution: {integrity: sha512-otDA4ldcIx+ZXsKHWmp0YizCweVRZG96J10b0FevjfuncLO1oX59THoAmHkNubYJ+9gWsYsp5k8v4ib6oDv1fA==}
@@ -9470,9 +9470,6 @@ packages:
obuf@1.1.2:
resolution: {integrity: sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==}
ohash@1.1.3:
resolution: {integrity: sha512-zuHHiGTYTA1sYJ/wZN+t5HKZaH23i4yI1HMwbuXm24Nid7Dv0KcuRlKoNKS9UNfAVSBlnGLcuQrnOKWOZoEGaw==}
ohash@1.1.4:
resolution: {integrity: sha512-FlDryZAahJmEF3VR3w1KogSEdWX3WhA5GPakFx4J81kEAiHyLMpdLLElS8n8dfNadMgAne/MywcvmogzscVt4g==}
@@ -10326,9 +10323,6 @@ packages:
resolution: {integrity: sha512-FLpr4flz5xZTSJxSeaheeMKN/EDzMdK7b8PTOC6a5PYFKTucWbdqjgqaEyH0shFiSJrVB1+Qqi4Tk19ccU6Aug==}
engines: {node: '>=12.20'}
python-format-js@1.4.3:
resolution: {integrity: sha512-0iK5zP5HMf4F3Xc3Uo6hggPu4ylEQCKNoLXUYe3S1YfYkFG6DxGDO3KozCrySntAZTPmP9yRI+eMq0MXweHqIw==}
qs@6.11.0:
resolution: {integrity: sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==}
engines: {node: '>=0.6'}
@@ -10533,6 +10527,10 @@ packages:
resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==}
engines: {node: '>=8.10.0'}
readdirp@4.0.2:
resolution: {integrity: sha512-yDMz9g+VaZkqBYS/ozoBJwaBhTbZo3UNYQHNRw1D3UFQB8oHB4uS/tAODO+ZLjGWmUbKnIlOWO+aaIiAxrUWHA==}
engines: {node: '>= 14.16.0'}
reading-time@1.5.0:
resolution: {integrity: sha512-onYyVhBNr4CmAxFsKS7bz+uTLRakypIe4R+5A824vBSkQy/hB3fZepoVEf8OVAxzLvK+H/jm9TzpI3ETSm64Kg==}
@@ -16705,12 +16703,12 @@ snapshots:
dependencies:
'@hapi/hoek': 9.3.0
'@hey-api/client-fetch@0.2.4': {}
'@hey-api/client-fetch@0.4.2': {}
'@hey-api/openapi-ts@0.53.0(typescript@5.6.3)':
'@hey-api/openapi-ts@0.53.11(typescript@5.6.3)':
dependencies:
'@apidevtools/json-schema-ref-parser': 11.7.0
c12: 1.11.1
c12: 2.0.1
commander: 12.1.0
handlebars: 4.7.8
typescript: 5.6.3
@@ -19897,16 +19895,16 @@ snapshots:
bytes@3.1.2: {}
c12@1.11.1:
c12@2.0.1:
dependencies:
chokidar: 3.6.0
chokidar: 4.0.1
confbox: 0.1.7
defu: 6.1.4
dotenv: 16.4.5
giget: 1.2.3
jiti: 1.21.6
jiti: 2.3.3
mlly: 1.7.1
ohash: 1.1.3
ohash: 1.1.4
pathe: 1.1.2
perfect-debounce: 1.0.0
pkg-types: 1.2.0
@@ -20065,6 +20063,10 @@ snapshots:
optionalDependencies:
fsevents: 2.3.3
chokidar@4.0.1:
dependencies:
readdirp: 4.0.2
chownr@1.1.4: {}
chownr@2.0.0: {}
@@ -21132,7 +21134,7 @@ snapshots:
'@typescript-eslint/parser': 7.2.0(eslint@8.57.0)(typescript@5.6.2)
eslint: 8.57.0
eslint-import-resolver-node: 0.3.9
eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.6.2))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.6.2))(eslint@8.57.0))(eslint@8.57.0)
eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.6.2))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1)(eslint@8.57.0)
eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.6.2))(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.0)
eslint-plugin-jsx-a11y: 6.9.0(eslint@8.57.0)
eslint-plugin-react: 7.35.0(eslint@8.57.0)
@@ -21180,25 +21182,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.6.2))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.6.2))(eslint@8.57.0))(eslint@8.57.0):
dependencies:
'@nolyfill/is-core-module': 1.0.39
debug: 4.3.7
enhanced-resolve: 5.17.1
eslint: 8.57.0
eslint-module-utils: 2.8.2(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.6.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.6.2))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.6.2))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0)
fast-glob: 3.3.2
get-tsconfig: 4.8.0
is-bun-module: 1.1.0
is-glob: 4.0.3
optionalDependencies:
eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.6.2))(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.0)
transitivePeerDependencies:
- '@typescript-eslint/parser'
- eslint-import-resolver-node
- eslint-import-resolver-webpack
- supports-color
eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.6.2))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1)(eslint@8.57.0):
dependencies:
'@nolyfill/is-core-module': 1.0.39
@@ -21218,17 +21201,6 @@ snapshots:
- eslint-import-resolver-webpack
- supports-color
eslint-module-utils@2.8.2(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.6.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.6.2))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.6.2))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0):
dependencies:
debug: 3.2.7
optionalDependencies:
'@typescript-eslint/parser': 7.2.0(eslint@8.57.0)(typescript@5.6.2)
eslint: 8.57.0
eslint-import-resolver-node: 0.3.9
eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.6.2))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.6.2))(eslint@8.57.0))(eslint@8.57.0)
transitivePeerDependencies:
- supports-color
eslint-module-utils@2.8.2(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.6.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.6.2))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1)(eslint@8.57.0))(eslint@8.57.0):
dependencies:
debug: 3.2.7
@@ -21250,7 +21222,7 @@ snapshots:
doctrine: 2.1.0
eslint: 8.57.0
eslint-import-resolver-node: 0.3.9
eslint-module-utils: 2.8.2(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.6.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.6.2))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.6.2))(eslint@8.57.0))(eslint@8.57.0))(eslint@8.57.0)
eslint-module-utils: 2.8.2(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.6.2))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.6.2))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.1)(eslint@8.57.0))(eslint@8.57.0)
hasown: 2.0.2
is-core-module: 2.15.1
is-glob: 4.0.3
@@ -22935,6 +22907,8 @@ snapshots:
jiti@1.21.6: {}
jiti@2.3.3: {}
joi@17.13.3:
dependencies:
'@hapi/hoek': 9.3.0
@@ -24419,8 +24393,6 @@ snapshots:
obuf@1.1.2: {}
ohash@1.1.3: {}
ohash@1.1.4: {}
ollama@0.5.9:
@@ -25286,8 +25258,6 @@ snapshots:
dependencies:
escape-goat: 4.0.0
python-format-js@1.4.3(patch_hash=2qoyzwmpaczaj2mabgmoz6ccpy): {}
qs@6.11.0:
dependencies:
side-channel: 1.0.6
@@ -25565,6 +25535,8 @@ snapshots:
dependencies:
picomatch: 2.3.1
readdirp@4.0.2: {}
reading-time@1.5.0: {}
rechoir@0.6.2: