@llamaindex/core
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -5,2 +5,19 @@ import { CustomEvent, Tokenizer } from '@llamaindex/env'; | ||
declare const DEFAULT_CONTEXT_WINDOW = 3900; | ||
declare const DEFAULT_NUM_OUTPUTS = 256; | ||
declare const DEFAULT_CHUNK_SIZE = 1024; | ||
declare const DEFAULT_CHUNK_OVERLAP = 20; | ||
declare const DEFAULT_CHUNK_OVERLAP_RATIO = 0.1; | ||
declare const DEFAULT_PADDING = 5; | ||
declare const DEFAULT_COLLECTION = "data"; | ||
declare const DEFAULT_PERSIST_DIR: string; | ||
declare const DEFAULT_INDEX_STORE_PERSIST_FILENAME = "index_store.json"; | ||
declare const DEFAULT_DOC_STORE_PERSIST_FILENAME = "doc_store.json"; | ||
declare const DEFAULT_VECTOR_STORE_PERSIST_FILENAME = "vector_store.json"; | ||
declare const DEFAULT_GRAPH_STORE_PERSIST_FILENAME = "graph_store.json"; | ||
declare const DEFAULT_NAMESPACE = "docstore"; | ||
declare const DEFAULT_IMAGE_VECTOR_NAMESPACE = "images"; | ||
declare const DEFAULT_PROJECT_NAME = "Default"; | ||
declare const DEFAULT_BASE_URL = "https://api.cloud.llamaindex.ai"; | ||
/** | ||
@@ -90,2 +107,2 @@ * EventCaller is used to track the caller of an event. | ||
export { CallbackManager, type JSONArray, type JSONObject, type JSONValue, type LLMEndEvent, type LLMStartEvent, type LLMStreamEvent, type LLMToolCallEvent, type LLMToolResultEvent, type LlamaIndexEventMaps, Settings }; | ||
export { CallbackManager, DEFAULT_BASE_URL, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_OVERLAP_RATIO, DEFAULT_CHUNK_SIZE, DEFAULT_COLLECTION, DEFAULT_CONTEXT_WINDOW, DEFAULT_DOC_STORE_PERSIST_FILENAME, DEFAULT_GRAPH_STORE_PERSIST_FILENAME, DEFAULT_IMAGE_VECTOR_NAMESPACE, DEFAULT_INDEX_STORE_PERSIST_FILENAME, DEFAULT_NAMESPACE, DEFAULT_NUM_OUTPUTS, DEFAULT_PADDING, DEFAULT_PERSIST_DIR, DEFAULT_PROJECT_NAME, DEFAULT_VECTOR_STORE_PERSIST_FILENAME, type JSONArray, type JSONObject, type JSONValue, type LLMEndEvent, type LLMStartEvent, type LLMStreamEvent, type LLMToolCallEvent, type LLMToolResultEvent, type LlamaIndexEventMaps, Settings }; |
@@ -1,3 +0,25 @@ | ||
import { AsyncLocalStorage, CustomEvent, tokenizers } from '@llamaindex/env'; | ||
import { path, AsyncLocalStorage, CustomEvent, tokenizers } from '@llamaindex/env'; | ||
//#region llm | ||
const DEFAULT_CONTEXT_WINDOW = 3900; | ||
const DEFAULT_NUM_OUTPUTS = 256; | ||
const DEFAULT_CHUNK_SIZE = 1024; | ||
const DEFAULT_CHUNK_OVERLAP = 20; | ||
const DEFAULT_CHUNK_OVERLAP_RATIO = 0.1; | ||
const DEFAULT_PADDING = 5; | ||
//#endregion | ||
//#region storage | ||
const DEFAULT_COLLECTION = "data"; | ||
const DEFAULT_PERSIST_DIR = path.join("./storage"); | ||
const DEFAULT_INDEX_STORE_PERSIST_FILENAME = "index_store.json"; | ||
const DEFAULT_DOC_STORE_PERSIST_FILENAME = "doc_store.json"; | ||
const DEFAULT_VECTOR_STORE_PERSIST_FILENAME = "vector_store.json"; | ||
const DEFAULT_GRAPH_STORE_PERSIST_FILENAME = "graph_store.json"; | ||
const DEFAULT_NAMESPACE = "docstore"; | ||
const DEFAULT_IMAGE_VECTOR_NAMESPACE = "images"; | ||
//#endregion | ||
//#region llama cloud | ||
const DEFAULT_PROJECT_NAME = "Default"; | ||
const DEFAULT_BASE_URL = "https://api.cloud.llamaindex.ai"; //#endregion | ||
const eventReasonAsyncLocalStorage = new AsyncLocalStorage(); | ||
@@ -127,2 +149,2 @@ function getEventCaller() { | ||
export { CallbackManager, Settings }; | ||
export { CallbackManager, DEFAULT_BASE_URL, DEFAULT_CHUNK_OVERLAP, DEFAULT_CHUNK_OVERLAP_RATIO, DEFAULT_CHUNK_SIZE, DEFAULT_COLLECTION, DEFAULT_CONTEXT_WINDOW, DEFAULT_DOC_STORE_PERSIST_FILENAME, DEFAULT_GRAPH_STORE_PERSIST_FILENAME, DEFAULT_IMAGE_VECTOR_NAMESPACE, DEFAULT_INDEX_STORE_PERSIST_FILENAME, DEFAULT_NAMESPACE, DEFAULT_NUM_OUTPUTS, DEFAULT_PADDING, DEFAULT_PERSIST_DIR, DEFAULT_PROJECT_NAME, DEFAULT_VECTOR_STORE_PERSIST_FILENAME, Settings }; |
{ | ||
"name": "@llamaindex/core", | ||
"type": "module", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"description": "LlamaIndex Core Module", | ||
@@ -151,3 +151,3 @@ "exports": { | ||
"zod": "^3.23.8", | ||
"@llamaindex/env": "0.1.9" | ||
"@llamaindex/env": "0.1.10" | ||
}, | ||
@@ -154,0 +154,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
293469
6399
+ Added@llamaindex/env@0.1.10(transitive)
+ Added@types/node@22.10.1(transitive)
+ Addedzod@3.24.0(transitive)
- Removed@llamaindex/env@0.1.9(transitive)
- Removed@types/node@20.17.1022.10.2(transitive)
- Removedundici-types@6.19.8(transitive)
- Removedzod@3.24.1(transitive)
Updated@llamaindex/env@0.1.10