Compare commits

..

3 Commits

Author SHA1 Message Date
github-actions[bot] 21ba0a80d1 Release 0.7.10 (#1392)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: himself65 <himself65@users.noreply.github.com>
2024-10-24 17:43:00 -07:00
Alex Yang 9df9a8fc1d fix: export all huggingface module (#1390) 2024-10-24 15:55:58 -07:00
Alex Yang 60b185ff53 fix: source nodes is empty (#1391) 2024-10-24 15:55:45 -07:00
53 changed files with 217 additions and 35 deletions
+7
View File
@@ -1,5 +1,12 @@
# docs
## 0.0.102
### Patch Changes
- Updated dependencies [9df9a8f]
- llamaindex@0.7.10
## 0.0.101
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "docs",
"version": "0.0.101",
"version": "0.0.102",
"private": true,
"scripts": {
"docusaurus": "docusaurus",
+7
View File
@@ -1,5 +1,12 @@
# @llamaindex/autotool
## 4.0.10
### Patch Changes
- Updated dependencies [9df9a8f]
- llamaindex@0.7.10
## 4.0.9
### Patch Changes
@@ -1,5 +1,13 @@
# @llamaindex/autotool-01-node-example
## 0.0.42
### Patch Changes
- Updated dependencies [9df9a8f]
- llamaindex@0.7.10
- @llamaindex/autotool@4.0.10
## 0.0.41
### Patch Changes
@@ -13,5 +13,5 @@
"scripts": {
"start": "node --import tsx --import @llamaindex/autotool/node ./src/index.ts"
},
"version": "0.0.41"
"version": "0.0.42"
}
@@ -1,5 +1,13 @@
# @llamaindex/autotool-02-next-example
## 0.1.86
### Patch Changes
- Updated dependencies [9df9a8f]
- llamaindex@0.7.10
- @llamaindex/autotool@4.0.10
## 0.1.85
### Patch Changes
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/autotool-02-next-example",
"private": true,
"version": "0.1.85",
"version": "0.1.86",
"scripts": {
"dev": "next dev",
"build": "next build",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/autotool",
"type": "module",
"version": "4.0.9",
"version": "4.0.10",
"description": "auto transpile your JS function to LLM Agent compatible",
"files": [
"dist",
+7
View File
@@ -1,5 +1,12 @@
# @llamaindex/cloud
## 1.0.8
### Patch Changes
- Updated dependencies [60b185f]
- @llamaindex/core@0.3.7
## 1.0.7
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/cloud",
"version": "1.0.7",
"version": "1.0.8",
"type": "module",
"license": "MIT",
"scripts": {
+7
View File
@@ -1,5 +1,12 @@
# @llamaindex/community
## 0.0.56
### Patch Changes
- Updated dependencies [60b185f]
- @llamaindex/core@0.3.7
## 0.0.55
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/community",
"description": "Community package for LlamaIndexTS",
"version": "0.0.55",
"version": "0.0.56",
"type": "module",
"types": "dist/type/index.d.ts",
"main": "dist/cjs/index.js",
+6
View File
@@ -1,5 +1,11 @@
# @llamaindex/core
## 0.3.7
### Patch Changes
- 60b185f: fix: source nodes is empty
## 0.3.6
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/core",
"type": "module",
"version": "0.3.6",
"version": "0.3.7",
"description": "LlamaIndex Core Module",
"exports": {
"./agent": {
@@ -43,9 +43,9 @@ export abstract class BaseSynthesizer extends PromptMixin {
let response: EngineResponse | AsyncIterable<EngineResponse>;
if (query.nodes.length === 0) {
if (stream) {
response = EngineResponse.fromResponse("Empty Response", true);
response = EngineResponse.fromResponse("Empty Response", true, []);
} else {
response = EngineResponse.fromResponse("Empty Response", false);
response = EngineResponse.fromResponse("Empty Response", false, []);
}
} else {
const queryMessage: MessageContent =
@@ -108,10 +108,10 @@ class Refine extends BaseSynthesizer {
// fixme: no source nodes provided, cannot fix right now due to lack of context
if (typeof response === "string") {
return EngineResponse.fromResponse(response, false);
return EngineResponse.fromResponse(response, false, nodes);
} else {
return streamConverter(response!, (text) =>
EngineResponse.fromResponse(text, true),
EngineResponse.fromResponse(text, true, nodes),
);
}
}
@@ -293,12 +293,13 @@ class TreeSummarize extends BaseSynthesizer {
if (stream) {
const response = await this.llm.complete({ ...params, stream });
return streamConverter(response, (chunk) =>
EngineResponse.fromResponse(chunk.text, true),
EngineResponse.fromResponse(chunk.text, true, nodes),
);
}
return EngineResponse.fromResponse(
(await this.llm.complete(params)).text,
false,
nodes,
);
} else {
const summaries = await Promise.all(
@@ -393,13 +394,13 @@ class MultiModal extends BaseSynthesizer {
stream,
});
return streamConverter(response, ({ text }) =>
EngineResponse.fromResponse(text, true),
EngineResponse.fromResponse(text, true, nodes),
);
}
const response = await llm.complete({
prompt,
});
return EngineResponse.fromResponse(response.text, false);
return EngineResponse.fromResponse(response.text, false, nodes);
}
}
@@ -26,7 +26,7 @@ export class EngineResponse implements ChatResponse, ChatResponseChunk {
static fromResponse(
response: string,
stream: boolean,
sourceNodes?: NodeWithScore[],
sourceNodes: NodeWithScore[],
): EngineResponse {
return new EngineResponse(
EngineResponse.toChatResponse(response),
+7
View File
@@ -1,5 +1,12 @@
# @llamaindex/experimental
## 0.0.111
### Patch Changes
- Updated dependencies [9df9a8f]
- llamaindex@0.7.10
## 0.0.110
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/experimental",
"description": "Experimental package for LlamaIndexTS",
"version": "0.0.110",
"version": "0.0.111",
"type": "module",
"types": "dist/type/index.d.ts",
"main": "dist/cjs/index.js",
+18
View File
@@ -1,5 +1,23 @@
# llamaindex
## 0.7.10
### Patch Changes
- 9df9a8f: fix: export all huggingface module
- Updated dependencies [60b185f]
- @llamaindex/core@0.3.7
- @llamaindex/cloud@1.0.8
- @llamaindex/anthropic@0.0.8
- @llamaindex/clip@0.0.8
- @llamaindex/deepinfra@0.0.8
- @llamaindex/huggingface@0.0.8
- @llamaindex/ollama@0.0.15
- @llamaindex/openai@0.1.24
- @llamaindex/portkey-ai@0.0.8
- @llamaindex/replicate@0.0.8
- @llamaindex/groq@0.0.23
## 0.7.9
### Patch Changes
@@ -1,5 +1,12 @@
# @llamaindex/cloudflare-worker-agent-test
## 0.0.95
### Patch Changes
- Updated dependencies [9df9a8f]
- llamaindex@0.7.10
## 0.0.94
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/cloudflare-worker-agent-test",
"version": "0.0.94",
"version": "0.0.95",
"type": "module",
"private": true,
"scripts": {
@@ -1,5 +1,11 @@
# @llamaindex/llama-parse-browser-test
## 0.0.19
### Patch Changes
- @llamaindex/cloud@1.0.8
## 0.0.18
### Patch Changes
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/llama-parse-browser-test",
"private": true,
"version": "0.0.18",
"version": "0.0.19",
"type": "module",
"scripts": {
"dev": "vite",
@@ -1,5 +1,12 @@
# @llamaindex/next-agent-test
## 0.1.95
### Patch Changes
- Updated dependencies [9df9a8f]
- llamaindex@0.7.10
## 0.1.94
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/next-agent-test",
"version": "0.1.94",
"version": "0.1.95",
"private": true,
"scripts": {
"dev": "next dev",
@@ -1,5 +1,12 @@
# test-edge-runtime
## 0.1.94
### Patch Changes
- Updated dependencies [9df9a8f]
- llamaindex@0.7.10
## 0.1.93
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/nextjs-edge-runtime-test",
"version": "0.1.93",
"version": "0.1.94",
"private": true,
"scripts": {
"dev": "next dev",
@@ -1,5 +1,12 @@
# @llamaindex/next-node-runtime
## 0.0.76
### Patch Changes
- Updated dependencies [9df9a8f]
- llamaindex@0.7.10
## 0.0.75
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/next-node-runtime-test",
"version": "0.0.75",
"version": "0.0.76",
"private": true,
"scripts": {
"dev": "next dev",
@@ -1,5 +1,12 @@
# @llamaindex/waku-query-engine-test
## 0.0.95
### Patch Changes
- Updated dependencies [9df9a8f]
- llamaindex@0.7.10
## 0.0.94
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "@llamaindex/waku-query-engine-test",
"version": "0.0.94",
"version": "0.0.95",
"type": "module",
"private": true,
"scripts": {
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "llamaindex",
"version": "0.7.9",
"version": "0.7.10",
"license": "MIT",
"type": "module",
"keywords": [
@@ -40,7 +40,7 @@
"@llamaindex/ollama": "workspace:*",
"@llamaindex/openai": "workspace:*",
"@llamaindex/portkey-ai": "workspace:*",
"@llamaindex/replicate": "workspace:^0.0.7",
"@llamaindex/replicate": "workspace:^0.0.8",
"@mistralai/mistralai": "^1.0.4",
"@mixedbread-ai/sdk": "^2.2.11",
"@pinecone-database/pinecone": "^3.0.2",
+1 -1
View File
@@ -3,7 +3,7 @@ export { ClipEmbedding, ClipEmbeddingModelType } from "./ClipEmbedding.js";
export { DeepInfraEmbedding } from "./DeepInfraEmbedding.js";
export { FireworksEmbedding } from "./fireworks.js";
export * from "./GeminiEmbedding.js";
export { HuggingFaceInferenceAPIEmbedding } from "./HuggingFaceEmbedding.js";
export * from "./HuggingFaceEmbedding.js";
export * from "./JinaAIEmbedding.js";
export * from "./MistralAIEmbedding.js";
export * from "./MixedbreadAIEmbeddings.js";
@@ -1,5 +1,12 @@
# @llamaindex/anthropic
## 0.0.8
### Patch Changes
- Updated dependencies [60b185f]
- @llamaindex/core@0.3.7
## 0.0.7
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/anthropic",
"description": "Anthropic Adapter for LlamaIndex",
"version": "0.0.7",
"version": "0.0.8",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
+8
View File
@@ -1,5 +1,13 @@
# @llamaindex/clip
## 0.0.8
### Patch Changes
- Updated dependencies [60b185f]
- @llamaindex/core@0.3.7
- @llamaindex/openai@0.1.24
## 0.0.7
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/clip",
"description": "Clip Embedding Adapter for LlamaIndex",
"version": "0.0.7",
"version": "0.0.8",
"type": "module",
"types": "dist/index.d.ts",
"main": "dist/index.cjs",
@@ -1,5 +1,13 @@
# @llamaindex/deepinfra
## 0.0.8
### Patch Changes
- Updated dependencies [60b185f]
- @llamaindex/core@0.3.7
- @llamaindex/openai@0.1.24
## 0.0.7
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/deepinfra",
"description": "Deepinfra Adapter for LlamaIndex",
"version": "0.0.7",
"version": "0.0.8",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
+6
View File
@@ -1,5 +1,11 @@
# @llamaindex/groq
## 0.0.23
### Patch Changes
- @llamaindex/openai@0.1.24
## 0.0.22
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/groq",
"description": "Groq Adapter for LlamaIndex",
"version": "0.0.22",
"version": "0.0.23",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -1,5 +1,13 @@
# @llamaindex/huggingface
## 0.0.8
### Patch Changes
- Updated dependencies [60b185f]
- @llamaindex/core@0.3.7
- @llamaindex/openai@0.1.24
## 0.0.7
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/huggingface",
"description": "Huggingface Adapter for LlamaIndex",
"version": "0.0.7",
"version": "0.0.8",
"type": "module",
"types": "dist/index.d.ts",
"main": "dist/index.cjs",
+7
View File
@@ -1,5 +1,12 @@
# @llamaindex/ollama
## 0.0.15
### Patch Changes
- Updated dependencies [60b185f]
- @llamaindex/core@0.3.7
## 0.0.14
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/ollama",
"description": "Ollama Adapter for LlamaIndex",
"version": "0.0.14",
"version": "0.0.15",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
+7
View File
@@ -1,5 +1,12 @@
# @llamaindex/openai
## 0.1.24
### Patch Changes
- Updated dependencies [60b185f]
- @llamaindex/core@0.3.7
## 0.1.23
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/openai",
"description": "OpenAI Adapter for LlamaIndex",
"version": "0.1.23",
"version": "0.1.24",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -1,5 +1,12 @@
# @llamaindex/portkey-ai
## 0.0.8
### Patch Changes
- Updated dependencies [60b185f]
- @llamaindex/core@0.3.7
## 0.0.7
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/portkey-ai",
"description": "Portkey Adapter for LlamaIndex",
"version": "0.0.7",
"version": "0.0.8",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -1,5 +1,12 @@
# @llamaindex/replicate
## 0.0.8
### Patch Changes
- Updated dependencies [60b185f]
- @llamaindex/core@0.3.7
## 0.0.7
### Patch Changes
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/replicate",
"description": "Replicate Adapter for LlamaIndex",
"version": "0.0.7",
"version": "0.0.8",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
+1 -1
View File
@@ -647,7 +647,7 @@ importers:
specifier: workspace:*
version: link:../providers/portkey-ai
'@llamaindex/replicate':
specifier: workspace:^0.0.7
specifier: workspace:^0.0.8
version: link:../providers/replicate
'@mistralai/mistralai':
specifier: ^1.0.4