mirror of
https://github.com/run-llama/LlamaIndexTS.git
synced 2026-07-02 20:13:52 -04:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b3b7fc5551 |
@@ -0,0 +1,7 @@
|
||||
---
|
||||
"@llamaindex/readers": patch
|
||||
"@llamaindex/core": patch
|
||||
"@llamaindex/doc": patch
|
||||
---
|
||||
|
||||
Expose more content to fix the issue with unavailable documentation links, and adjust the documentation based on the latest code.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@llamaindex/google": patch
|
||||
---
|
||||
|
||||
Added saftey setting parameter for gemini
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@llamaindex/pinecone": minor
|
||||
---
|
||||
|
||||
Fix deleting of document by id in PineconeVectorStore
|
||||
@@ -0,0 +1,13 @@
|
||||
---
|
||||
"@llamaindex/huggingface": minor
|
||||
"@llamaindex/anthropic": minor
|
||||
"@llamaindex/mistral": minor
|
||||
"@llamaindex/google": minor
|
||||
"@llamaindex/ollama": minor
|
||||
"@llamaindex/openai": minor
|
||||
"@llamaindex/core": minor
|
||||
"@llamaindex/examples": minor
|
||||
---
|
||||
|
||||
Added support for structured output in the chat api of openai and ollama
|
||||
Added structured output parameter in the provider
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@llamaindex/cloud": patch
|
||||
---
|
||||
|
||||
chore: bump sdk openapi.json
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@llamaindex/azure": patch
|
||||
---
|
||||
|
||||
Add `fromConnectionString` method to azure storage libs to track the usage vCore.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@llamaindex/tools": patch
|
||||
---
|
||||
|
||||
feat: @llamaindex/tools
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
"@llamaindex/mistral": minor
|
||||
"@llamaindex/examples": minor
|
||||
---
|
||||
|
||||
Added support for function calling in mistral provider
|
||||
Update model list for mistral provider
|
||||
Added example for the tool call in mistral
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
"@llamaindex/cloud": patch
|
||||
"@llamaindex/community": patch
|
||||
"@llamaindex/core": patch
|
||||
"@llamaindex/readers": patch
|
||||
---
|
||||
|
||||
fix: add retry handling logic to parser reader and fix lint issues
|
||||
@@ -1,30 +1,5 @@
|
||||
# @llamaindex/doc
|
||||
|
||||
## 0.2.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- f1db9b3: Adding an options parameter to vercel tool to tailor responses
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 21bebfc: Expose more content to fix the issue with unavailable documentation links, and adjust the documentation based on the latest code.
|
||||
- 2b39cef: Added documentation for structured output in openai and ollama
|
||||
- Updated dependencies [21bebfc]
|
||||
- Updated dependencies [93bc0ff]
|
||||
- Updated dependencies [91a18e7]
|
||||
- Updated dependencies [bf56fc0]
|
||||
- Updated dependencies [f8a86e4]
|
||||
- Updated dependencies [5189b44]
|
||||
- Updated dependencies [58a9446]
|
||||
- @llamaindex/readers@3.0.0
|
||||
- @llamaindex/core@0.6.0
|
||||
- @llamaindex/openai@0.2.0
|
||||
- @llamaindex/cloud@4.0.0
|
||||
- @llamaindex/workflow@1.0.0
|
||||
- llamaindex@0.9.12
|
||||
- @llamaindex/node-parser@2.0.0
|
||||
|
||||
## 0.1.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@llamaindex/doc",
|
||||
"version": "0.2.0",
|
||||
"version": "0.1.11",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"postinstall": "fumadocs-mdx",
|
||||
|
||||
@@ -84,7 +84,6 @@ const queryTool = llamaindex({
|
||||
model: openai("gpt-4"),
|
||||
index,
|
||||
description: "Search through the documents",
|
||||
options: { fields: ["sourceNodes", "messages"]}
|
||||
});
|
||||
|
||||
// Use the tool with Vercel's AI SDK
|
||||
|
||||
@@ -56,10 +56,10 @@ const vectorStore = new QdrantVectorStore({
|
||||
|
||||
```ts
|
||||
const document = new Document({ text: essay, id_: path });
|
||||
const storageContext = await storageContextFromDefaults({ vectorStore });
|
||||
const index = await VectorStoreIndex.fromDocuments([document], {
|
||||
storageContext,
|
||||
});
|
||||
|
||||
const index = await VectorStoreIndex.fromDocuments([document], {
|
||||
vectorStore,
|
||||
});
|
||||
```
|
||||
|
||||
## Query the index
|
||||
@@ -91,11 +91,11 @@ async function main() {
|
||||
});
|
||||
|
||||
const document = new Document({ text: essay, id_: path });
|
||||
const storageContext = await storageContextFromDefaults({ vectorStore });
|
||||
|
||||
const index = await VectorStoreIndex.fromDocuments([document], {
|
||||
storageContext,
|
||||
vectorStore,
|
||||
});
|
||||
|
||||
|
||||
const queryEngine = index.asQueryEngine();
|
||||
|
||||
const response = await queryEngine.query({
|
||||
|
||||
@@ -55,35 +55,6 @@ const results = await queryEngine.query({
|
||||
});
|
||||
```
|
||||
|
||||
## Using JSON Response Format
|
||||
|
||||
You can configure Ollama to return responses in JSON format:
|
||||
|
||||
```ts
|
||||
import { Ollama } from "@llamaindex/llms/ollama";
|
||||
import { z } from "zod";
|
||||
|
||||
// Simple JSON format
|
||||
const llm = new Ollama({
|
||||
model: "llama2",
|
||||
temperature: 0,
|
||||
responseFormat: { type: "json_object" }
|
||||
});
|
||||
|
||||
// Using Zod schema for validation
|
||||
const responseSchema = z.object({
|
||||
summary: z.string(),
|
||||
topics: z.array(z.string()),
|
||||
sentiment: z.enum(["positive", "negative", "neutral"])
|
||||
});
|
||||
|
||||
const llm = new Ollama({
|
||||
model: "llama2",
|
||||
temperature: 0,
|
||||
responseFormat: responseSchema
|
||||
});
|
||||
```
|
||||
|
||||
## Full Example
|
||||
|
||||
```ts
|
||||
|
||||
@@ -46,33 +46,6 @@ or
|
||||
Settings.llm = new OpenAI({ model: "gpt-3.5-turbo", temperature: 0, apiKey: <YOUR_API_KEY>, baseURL: "https://api.scaleway.ai/v1" });
|
||||
```
|
||||
|
||||
## Using JSON Response Format
|
||||
|
||||
You can configure OpenAI to return responses in JSON format:
|
||||
|
||||
```ts
|
||||
Settings.llm = new OpenAI({
|
||||
model: "gpt-4o",
|
||||
temperature: 0,
|
||||
responseFormat: { type: "json_object" }
|
||||
});
|
||||
|
||||
// You can also use a Zod schema to validate the response structure
|
||||
import { z } from "zod";
|
||||
|
||||
const responseSchema = z.object({
|
||||
summary: z.string(),
|
||||
topics: z.array(z.string()),
|
||||
sentiment: z.enum(["positive", "negative", "neutral"])
|
||||
});
|
||||
|
||||
Settings.llm = new OpenAI({
|
||||
model: "gpt-4o",
|
||||
temperature: 0,
|
||||
responseFormat: responseSchema
|
||||
});
|
||||
```
|
||||
|
||||
## Load and index documents
|
||||
|
||||
For this example, we will use a single document. In a real-world scenario, you would have multiple documents to index.
|
||||
|
||||
@@ -1,11 +1,5 @@
|
||||
# @llamaindex/cloudflare-worker-agent-test
|
||||
|
||||
## 0.0.146
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- llamaindex@0.9.12
|
||||
|
||||
## 0.0.145
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@llamaindex/cloudflare-worker-agent-test",
|
||||
"version": "0.0.146",
|
||||
"version": "0.0.145",
|
||||
"type": "module",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
|
||||
@@ -1,13 +1,5 @@
|
||||
# @llamaindex/llama-parse-browser-test
|
||||
|
||||
## 0.0.55
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [bf56fc0]
|
||||
- Updated dependencies [5189b44]
|
||||
- @llamaindex/cloud@4.0.0
|
||||
|
||||
## 0.0.54
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@llamaindex/llama-parse-browser-test",
|
||||
"private": true,
|
||||
"version": "0.0.55",
|
||||
"version": "0.0.54",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -1,11 +1,5 @@
|
||||
# @llamaindex/next-agent-test
|
||||
|
||||
## 0.1.146
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- llamaindex@0.9.12
|
||||
|
||||
## 0.1.145
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@llamaindex/next-agent-test",
|
||||
"version": "0.1.146",
|
||||
"version": "0.1.145",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
|
||||
@@ -1,11 +1,5 @@
|
||||
# test-edge-runtime
|
||||
|
||||
## 0.1.145
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- llamaindex@0.9.12
|
||||
|
||||
## 0.1.144
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@llamaindex/nextjs-edge-runtime-test",
|
||||
"version": "0.1.145",
|
||||
"version": "0.1.144",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
|
||||
@@ -1,16 +1,5 @@
|
||||
# @llamaindex/next-node-runtime
|
||||
|
||||
## 0.1.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [21bebfc]
|
||||
- Updated dependencies [91a18e7]
|
||||
- Updated dependencies [5189b44]
|
||||
- @llamaindex/readers@3.0.0
|
||||
- @llamaindex/huggingface@0.1.0
|
||||
- llamaindex@0.9.12
|
||||
|
||||
## 0.1.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@llamaindex/next-node-runtime-test",
|
||||
"version": "0.1.12",
|
||||
"version": "0.1.11",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
|
||||
@@ -1,11 +1,5 @@
|
||||
# vite-import-llamaindex
|
||||
|
||||
## 0.0.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- llamaindex@0.9.12
|
||||
|
||||
## 0.0.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "vite-import-llamaindex",
|
||||
"private": true,
|
||||
"version": "0.0.12",
|
||||
"version": "0.0.11",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "vite build",
|
||||
|
||||
@@ -1,11 +1,5 @@
|
||||
# @llamaindex/waku-query-engine-test
|
||||
|
||||
## 0.0.146
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- llamaindex@0.9.12
|
||||
|
||||
## 0.0.145
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@llamaindex/waku-query-engine-test",
|
||||
"version": "0.0.146",
|
||||
"version": "0.0.145",
|
||||
"type": "module",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
|
||||
@@ -1,77 +1,5 @@
|
||||
# examples
|
||||
|
||||
## 0.3.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 91a18e7: Added support for structured output in the chat api of openai and ollama
|
||||
Added structured output parameter in the provider
|
||||
- d1c1f99: Added support for function calling in mistral provider
|
||||
Update model list for mistral provider
|
||||
Added example for the tool call in mistral
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 2509353: Added support for elastic search vector store
|
||||
- Updated dependencies [21bebfc]
|
||||
- Updated dependencies [77e24ce]
|
||||
- Updated dependencies [93bc0ff]
|
||||
- Updated dependencies [2509353]
|
||||
- Updated dependencies [da06e45]
|
||||
- Updated dependencies [2a0a899]
|
||||
- Updated dependencies [050cd53]
|
||||
- Updated dependencies [91a18e7]
|
||||
- Updated dependencies [bf56fc0]
|
||||
- Updated dependencies [f1db9b3]
|
||||
- Updated dependencies [da8068e]
|
||||
- Updated dependencies [c7ff323]
|
||||
- Updated dependencies [f8a86e4]
|
||||
- Updated dependencies [d1c1f99]
|
||||
- Updated dependencies [5189b44]
|
||||
- Updated dependencies [3fd4cc3]
|
||||
- Updated dependencies [04f8c96]
|
||||
- Updated dependencies [58a9446]
|
||||
- @llamaindex/readers@3.0.0
|
||||
- @llamaindex/core@0.6.0
|
||||
- @llamaindex/tools@0.0.2
|
||||
- @llamaindex/elastic-search@0.1.0
|
||||
- @llamaindex/google@0.2.0
|
||||
- @llamaindex/pinecone@0.1.0
|
||||
- @llamaindex/huggingface@0.1.0
|
||||
- @llamaindex/anthropic@0.3.0
|
||||
- @llamaindex/mistral@0.1.0
|
||||
- @llamaindex/ollama@0.1.0
|
||||
- @llamaindex/openai@0.2.0
|
||||
- @llamaindex/cloud@4.0.0
|
||||
- @llamaindex/vercel@0.1.0
|
||||
- @llamaindex/azure@0.1.9
|
||||
- @llamaindex/workflow@1.0.0
|
||||
- @llamaindex/mongodb@0.0.14
|
||||
- llamaindex@0.9.12
|
||||
- @llamaindex/node-parser@2.0.0
|
||||
- @llamaindex/clip@0.0.46
|
||||
- @llamaindex/cohere@0.0.14
|
||||
- @llamaindex/deepinfra@0.0.46
|
||||
- @llamaindex/jinaai@0.0.6
|
||||
- @llamaindex/mixedbread@0.0.14
|
||||
- @llamaindex/perplexity@0.0.3
|
||||
- @llamaindex/portkey-ai@0.0.42
|
||||
- @llamaindex/replicate@0.0.42
|
||||
- @llamaindex/astra@0.0.14
|
||||
- @llamaindex/chroma@0.0.14
|
||||
- @llamaindex/firestore@1.0.7
|
||||
- @llamaindex/milvus@0.1.9
|
||||
- @llamaindex/postgres@0.0.42
|
||||
- @llamaindex/qdrant@0.1.9
|
||||
- @llamaindex/upstash@0.0.14
|
||||
- @llamaindex/weaviate@0.0.14
|
||||
- @llamaindex/voyage-ai@1.0.6
|
||||
- @llamaindex/deepseek@0.0.6
|
||||
- @llamaindex/fireworks@0.0.6
|
||||
- @llamaindex/groq@0.0.61
|
||||
- @llamaindex/together@0.0.6
|
||||
- @llamaindex/vllm@0.0.32
|
||||
|
||||
## 0.2.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
+40
-41
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@llamaindex/examples",
|
||||
"version": "0.3.0",
|
||||
"version": "0.2.10",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
@@ -11,46 +11,45 @@
|
||||
"@azure/cosmos": "^4.1.1",
|
||||
"@azure/identity": "^4.4.1",
|
||||
"@azure/search-documents": "^12.1.0",
|
||||
"@llamaindex/anthropic": "^0.3.0",
|
||||
"@llamaindex/astra": "^0.0.14",
|
||||
"@llamaindex/azure": "^0.1.9",
|
||||
"@llamaindex/chroma": "^0.0.14",
|
||||
"@llamaindex/clip": "^0.0.46",
|
||||
"@llamaindex/cloud": "^4.0.0",
|
||||
"@llamaindex/cohere": "^0.0.14",
|
||||
"@llamaindex/core": "^0.6.0",
|
||||
"@llamaindex/deepinfra": "^0.0.46",
|
||||
"@llamaindex/anthropic": "^0.2.6",
|
||||
"@llamaindex/astra": "^0.0.13",
|
||||
"@llamaindex/azure": "^0.1.8",
|
||||
"@llamaindex/chroma": "^0.0.13",
|
||||
"@llamaindex/clip": "^0.0.45",
|
||||
"@llamaindex/cloud": "^3.0.9",
|
||||
"@llamaindex/cohere": "^0.0.13",
|
||||
"@llamaindex/core": "^0.5.8",
|
||||
"@llamaindex/deepinfra": "^0.0.45",
|
||||
"@llamaindex/env": "^0.1.29",
|
||||
"@llamaindex/firestore": "^1.0.7",
|
||||
"@llamaindex/google": "^0.2.0",
|
||||
"@llamaindex/groq": "^0.0.61",
|
||||
"@llamaindex/huggingface": "^0.1.0",
|
||||
"@llamaindex/milvus": "^0.1.9",
|
||||
"@llamaindex/mistral": "^0.1.0",
|
||||
"@llamaindex/mixedbread": "^0.0.14",
|
||||
"@llamaindex/mongodb": "^0.0.14",
|
||||
"@llamaindex/elastic-search": "^0.1.0",
|
||||
"@llamaindex/node-parser": "^2.0.0",
|
||||
"@llamaindex/ollama": "^0.1.0",
|
||||
"@llamaindex/openai": "^0.2.0",
|
||||
"@llamaindex/pinecone": "^0.1.0",
|
||||
"@llamaindex/portkey-ai": "^0.0.42",
|
||||
"@llamaindex/postgres": "^0.0.42",
|
||||
"@llamaindex/qdrant": "^0.1.9",
|
||||
"@llamaindex/readers": "^3.0.0",
|
||||
"@llamaindex/replicate": "^0.0.42",
|
||||
"@llamaindex/upstash": "^0.0.14",
|
||||
"@llamaindex/vercel": "^0.1.0",
|
||||
"@llamaindex/vllm": "^0.0.32",
|
||||
"@llamaindex/voyage-ai": "^1.0.6",
|
||||
"@llamaindex/weaviate": "^0.0.14",
|
||||
"@llamaindex/workflow": "^1.0.0",
|
||||
"@llamaindex/deepseek": "^0.0.6",
|
||||
"@llamaindex/fireworks": "^0.0.6",
|
||||
"@llamaindex/together": "^0.0.6",
|
||||
"@llamaindex/jinaai": "^0.0.6",
|
||||
"@llamaindex/perplexity": "^0.0.3",
|
||||
"@llamaindex/tools": "^0.0.2",
|
||||
"@llamaindex/firestore": "^1.0.6",
|
||||
"@llamaindex/google": "^0.1.2",
|
||||
"@llamaindex/groq": "^0.0.60",
|
||||
"@llamaindex/huggingface": "^0.0.45",
|
||||
"@llamaindex/milvus": "^0.1.8",
|
||||
"@llamaindex/mistral": "^0.0.14",
|
||||
"@llamaindex/mixedbread": "^0.0.13",
|
||||
"@llamaindex/mongodb": "^0.0.13",
|
||||
"@llamaindex/node-parser": "^1.0.8",
|
||||
"@llamaindex/ollama": "^0.0.48",
|
||||
"@llamaindex/openai": "^0.1.61",
|
||||
"@llamaindex/pinecone": "^0.0.13",
|
||||
"@llamaindex/portkey-ai": "^0.0.41",
|
||||
"@llamaindex/postgres": "^0.0.41",
|
||||
"@llamaindex/qdrant": "^0.1.8",
|
||||
"@llamaindex/readers": "^2.0.8",
|
||||
"@llamaindex/replicate": "^0.0.41",
|
||||
"@llamaindex/upstash": "^0.0.13",
|
||||
"@llamaindex/vercel": "^0.0.19",
|
||||
"@llamaindex/vllm": "^0.0.31",
|
||||
"@llamaindex/voyage-ai": "^1.0.5",
|
||||
"@llamaindex/weaviate": "^0.0.13",
|
||||
"@llamaindex/workflow": "^0.0.16",
|
||||
"@llamaindex/deepseek": "^0.0.5",
|
||||
"@llamaindex/fireworks": "^0.0.5",
|
||||
"@llamaindex/together": "^0.0.5",
|
||||
"@llamaindex/jinaai": "^0.0.5",
|
||||
"@llamaindex/perplexity": "^0.0.2",
|
||||
"@llamaindex/tools": "^0.0.1",
|
||||
"@notionhq/client": "^2.2.15",
|
||||
"@pinecone-database/pinecone": "^4.0.0",
|
||||
"@vercel/postgres": "^0.10.0",
|
||||
@@ -59,7 +58,7 @@
|
||||
"commander": "^12.1.0",
|
||||
"dotenv": "^16.4.5",
|
||||
"js-tiktoken": "^1.0.14",
|
||||
"llamaindex": "^0.9.12",
|
||||
"llamaindex": "^0.9.11",
|
||||
"mongodb": "6.7.0",
|
||||
"postgres": "^3.4.4",
|
||||
"wikipedia": "^2.1.2",
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
import { ElasticSearchVectorStore } from "@llamaindex/elastic-search";
|
||||
import {
|
||||
gemini,
|
||||
GEMINI_EMBEDDING_MODEL,
|
||||
GEMINI_MODEL,
|
||||
GeminiEmbedding,
|
||||
} from "@llamaindex/google";
|
||||
import {
|
||||
Document,
|
||||
Settings,
|
||||
storageContextFromDefaults,
|
||||
VectorStoreIndex,
|
||||
} from "llamaindex";
|
||||
async function main() {
|
||||
Settings.embedModel = new GeminiEmbedding({
|
||||
model: GEMINI_EMBEDDING_MODEL.TEXT_EMBEDDING_004,
|
||||
});
|
||||
Settings.llm = gemini({
|
||||
model: GEMINI_MODEL.GEMINI_PRO_1_5_FLASH,
|
||||
});
|
||||
// Create sample documents
|
||||
const documents = [
|
||||
new Document({
|
||||
text: "Elastic search is a powerful search engine",
|
||||
metadata: {
|
||||
source: "tech_docs",
|
||||
author: "John Doe",
|
||||
},
|
||||
}),
|
||||
new Document({
|
||||
text: "Vector search enables semantic similarity search",
|
||||
metadata: {
|
||||
source: "research_paper",
|
||||
author: "Jane Smith",
|
||||
},
|
||||
}),
|
||||
new Document({
|
||||
text: "Elasticsearch supports various distance metrics for vector search",
|
||||
metadata: {
|
||||
source: "tech_docs",
|
||||
author: "Bob Wilson",
|
||||
},
|
||||
}),
|
||||
];
|
||||
|
||||
// Initialize ElasticSearch Vector Store
|
||||
const vectorStore = new ElasticSearchVectorStore({
|
||||
indexName: "llamaindex-demo",
|
||||
esCloudId: process.env.ES_CLOUD_ID,
|
||||
esApiKey: process.env.ES_API_KEY,
|
||||
});
|
||||
|
||||
// Create storage context with the vector store
|
||||
const storageContext = await storageContextFromDefaults({
|
||||
vectorStore,
|
||||
});
|
||||
|
||||
// Create and store embeddings in ElasticSearch
|
||||
const index = await VectorStoreIndex.fromDocuments(documents, {
|
||||
storageContext,
|
||||
});
|
||||
|
||||
// Query the index
|
||||
const queryEngine = index.asQueryEngine();
|
||||
|
||||
// Simple query
|
||||
const response = await queryEngine.query({
|
||||
query: "What is vector search?",
|
||||
});
|
||||
console.log("Basic Query Response:", response.toString());
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"name": "elastic-search-vector-store",
|
||||
"type": "module",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"start": "npx tsx index.ts"
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,5 @@
|
||||
# @llamaindex/autotool
|
||||
|
||||
## 6.0.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- llamaindex@0.9.12
|
||||
|
||||
## 6.0.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,12 +1,5 @@
|
||||
# @llamaindex/autotool-01-node-example
|
||||
|
||||
## 0.0.93
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- llamaindex@0.9.12
|
||||
- @llamaindex/autotool@6.0.12
|
||||
|
||||
## 0.0.92
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -13,5 +13,5 @@
|
||||
"scripts": {
|
||||
"start": "node --import tsx --import @llamaindex/autotool/node ./src/index.ts"
|
||||
},
|
||||
"version": "0.0.93"
|
||||
"version": "0.0.92"
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"url": "git+https://github.com/run-llama/LlamaIndexTS.git",
|
||||
"directory": "packages/autotool"
|
||||
},
|
||||
"version": "6.0.12",
|
||||
"version": "6.0.11",
|
||||
"description": "auto transpile your JS function to LLM Agent compatible",
|
||||
"files": [
|
||||
"dist",
|
||||
|
||||
@@ -1,17 +1,5 @@
|
||||
# @llamaindex/cloud
|
||||
|
||||
## 4.0.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- bf56fc0: chore: bump sdk openapi.json
|
||||
- 5189b44: fix: add retry handling logic to parser reader and fix lint issues
|
||||
- Updated dependencies [21bebfc]
|
||||
- Updated dependencies [93bc0ff]
|
||||
- Updated dependencies [91a18e7]
|
||||
- Updated dependencies [5189b44]
|
||||
- @llamaindex/core@0.6.0
|
||||
|
||||
## 3.0.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@llamaindex/cloud",
|
||||
"version": "4.0.0",
|
||||
"version": "3.0.9",
|
||||
"type": "module",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
|
||||
@@ -1,17 +1,5 @@
|
||||
# @llamaindex/community
|
||||
|
||||
## 0.0.91
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 5189b44: fix: add retry handling logic to parser reader and fix lint issues
|
||||
- 3fd4cc3: feat: use google's new gen ai library to support multimodal output
|
||||
- Updated dependencies [21bebfc]
|
||||
- Updated dependencies [93bc0ff]
|
||||
- Updated dependencies [91a18e7]
|
||||
- Updated dependencies [5189b44]
|
||||
- @llamaindex/core@0.6.0
|
||||
|
||||
## 0.0.90
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@llamaindex/community",
|
||||
"description": "Community package for LlamaIndexTS",
|
||||
"version": "0.0.91",
|
||||
"version": "0.0.90",
|
||||
"type": "module",
|
||||
"types": "dist/type/index.d.ts",
|
||||
"main": "dist/cjs/index.js",
|
||||
|
||||
@@ -10,10 +10,12 @@ import type {
|
||||
MessageContentDetail,
|
||||
ToolCallLLMMessageOptions,
|
||||
} from "@llamaindex/core/llms";
|
||||
import { extractDataUrlComponents } from "../utils";
|
||||
import {
|
||||
extractDataUrlComponents,
|
||||
mapMessageContentToMessageContentDetails,
|
||||
} from "../utils";
|
||||
|
||||
import type { JSONObject } from "@llamaindex/core/global";
|
||||
import { mapMessageContentToMessageContentDetails } from "../../utils";
|
||||
import type { AmazonMessage, AmazonMessages } from "./types";
|
||||
|
||||
const ACCEPTED_IMAGE_MIME_TYPES = [
|
||||
|
||||
@@ -6,8 +6,10 @@ import type {
|
||||
MessageContentDetail,
|
||||
ToolCallLLMMessageOptions,
|
||||
} from "@llamaindex/core/llms";
|
||||
import { mapMessageContentToMessageContentDetails } from "../../utils";
|
||||
import { extractDataUrlComponents } from "../utils";
|
||||
import {
|
||||
extractDataUrlComponents,
|
||||
mapMessageContentToMessageContentDetails,
|
||||
} from "../utils";
|
||||
import type {
|
||||
AnthropicContent,
|
||||
AnthropicImageContent,
|
||||
|
||||
@@ -22,9 +22,9 @@ import {
|
||||
type BedrockChatStreamResponse,
|
||||
Provider,
|
||||
} from "./provider";
|
||||
import { mapMessageContentToMessageContentDetails } from "./utils";
|
||||
|
||||
import { wrapLLMEvent } from "@llamaindex/core/decorator";
|
||||
import { mapMessageContentToMessageContentDetails } from "../utils";
|
||||
import { AmazonProvider } from "./amazon/provider";
|
||||
import { AnthropicProvider } from "./anthropic/provider";
|
||||
import { MetaProvider } from "./meta/provider";
|
||||
|
||||
@@ -1,3 +1,14 @@
|
||||
import type {
|
||||
MessageContent,
|
||||
MessageContentDetail,
|
||||
} from "@llamaindex/core/llms";
|
||||
|
||||
export const mapMessageContentToMessageContentDetails = (
|
||||
content: MessageContent,
|
||||
): MessageContentDetail[] => {
|
||||
return Array.isArray(content) ? content : [{ type: "text", text: content }];
|
||||
};
|
||||
|
||||
export const toUtf8 = (input: Uint8Array): string =>
|
||||
new TextDecoder("utf-8").decode(input);
|
||||
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
import type {
|
||||
MessageContent,
|
||||
MessageContentDetail,
|
||||
} from "@llamaindex/core/llms";
|
||||
|
||||
export const mapMessageContentToMessageContentDetails = (
|
||||
content: MessageContent,
|
||||
): MessageContentDetail[] => {
|
||||
return Array.isArray(content) ? content : [{ type: "text", text: content }];
|
||||
};
|
||||
@@ -1,18 +1,5 @@
|
||||
# @llamaindex/core
|
||||
|
||||
## 0.6.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 91a18e7: Added support for structured output in the chat api of openai and ollama
|
||||
Added structured output parameter in the provider
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 21bebfc: Expose more content to fix the issue with unavailable documentation links, and adjust the documentation based on the latest code.
|
||||
- 93bc0ff: fix: include additional options for context chat engine
|
||||
- 5189b44: fix: add retry handling logic to parser reader and fix lint issues
|
||||
|
||||
## 0.5.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@llamaindex/core",
|
||||
"type": "module",
|
||||
"version": "0.6.0",
|
||||
"version": "0.5.8",
|
||||
"description": "LlamaIndex Core Module",
|
||||
"exports": {
|
||||
"./agent": {
|
||||
|
||||
@@ -102,7 +102,6 @@ export class ContextChatEngine extends PromptMixin implements BaseChatEngine {
|
||||
const stream = await this.chatModel.chat({
|
||||
messages: requestMessages.messages,
|
||||
stream: true,
|
||||
additionalChatOptions: params.chatOptions as object,
|
||||
});
|
||||
return streamConverter(
|
||||
streamReducer({
|
||||
@@ -118,7 +117,6 @@ export class ContextChatEngine extends PromptMixin implements BaseChatEngine {
|
||||
}
|
||||
const response = await this.chatModel.chat({
|
||||
messages: requestMessages.messages,
|
||||
additionalChatOptions: params.chatOptions as object,
|
||||
});
|
||||
chatHistory.put(response.message);
|
||||
return EngineResponse.fromChatResponse(response, requestMessages.nodes);
|
||||
|
||||
@@ -1,11 +1,5 @@
|
||||
# @llamaindex/experimental
|
||||
|
||||
## 0.0.162
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- llamaindex@0.9.12
|
||||
|
||||
## 0.0.161
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@llamaindex/experimental",
|
||||
"description": "Experimental package for LlamaIndexTS",
|
||||
"version": "0.0.162",
|
||||
"version": "0.0.161",
|
||||
"type": "module",
|
||||
"types": "dist/type/index.d.ts",
|
||||
"main": "dist/cjs/index.js",
|
||||
|
||||
@@ -1,22 +1,5 @@
|
||||
# llamaindex
|
||||
|
||||
## 0.9.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [21bebfc]
|
||||
- Updated dependencies [93bc0ff]
|
||||
- Updated dependencies [91a18e7]
|
||||
- Updated dependencies [bf56fc0]
|
||||
- Updated dependencies [f8a86e4]
|
||||
- Updated dependencies [5189b44]
|
||||
- Updated dependencies [58a9446]
|
||||
- @llamaindex/core@0.6.0
|
||||
- @llamaindex/openai@0.2.0
|
||||
- @llamaindex/cloud@4.0.0
|
||||
- @llamaindex/workflow@1.0.0
|
||||
- @llamaindex/node-parser@2.0.0
|
||||
|
||||
## 0.9.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "llamaindex",
|
||||
"version": "0.9.12",
|
||||
"version": "0.9.11",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
"keywords": [
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
# @llamaindex/node-parser
|
||||
|
||||
## 2.0.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [21bebfc]
|
||||
- Updated dependencies [93bc0ff]
|
||||
- Updated dependencies [91a18e7]
|
||||
- Updated dependencies [5189b44]
|
||||
- @llamaindex/core@0.6.0
|
||||
|
||||
## 1.0.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@llamaindex/node-parser",
|
||||
"version": "2.0.0",
|
||||
"version": "1.0.8",
|
||||
"description": "Node parser for LlamaIndex",
|
||||
"type": "module",
|
||||
"exports": {
|
||||
|
||||
@@ -1,20 +1,5 @@
|
||||
# @llamaindex/anthropic
|
||||
|
||||
## 0.3.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 91a18e7: Added support for structured output in the chat api of openai and ollama
|
||||
Added structured output parameter in the provider
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [21bebfc]
|
||||
- Updated dependencies [93bc0ff]
|
||||
- Updated dependencies [91a18e7]
|
||||
- Updated dependencies [5189b44]
|
||||
- @llamaindex/core@0.6.0
|
||||
|
||||
## 0.2.6
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@llamaindex/anthropic",
|
||||
"description": "Anthropic Adapter for LlamaIndex",
|
||||
"version": "0.3.0",
|
||||
"version": "0.2.6",
|
||||
"type": "module",
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.js",
|
||||
|
||||
@@ -1,16 +1,5 @@
|
||||
# @llamaindex/clip
|
||||
|
||||
## 0.0.46
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [21bebfc]
|
||||
- Updated dependencies [93bc0ff]
|
||||
- Updated dependencies [91a18e7]
|
||||
- Updated dependencies [5189b44]
|
||||
- @llamaindex/core@0.6.0
|
||||
- @llamaindex/openai@0.2.0
|
||||
|
||||
## 0.0.45
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@llamaindex/clip",
|
||||
"description": "Clip Embedding Adapter for LlamaIndex",
|
||||
"version": "0.0.46",
|
||||
"version": "0.0.45",
|
||||
"type": "module",
|
||||
"types": "dist/index.d.ts",
|
||||
"main": "dist/index.cjs",
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
# @llamaindex/cohere
|
||||
|
||||
## 0.0.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [21bebfc]
|
||||
- Updated dependencies [93bc0ff]
|
||||
- Updated dependencies [91a18e7]
|
||||
- Updated dependencies [5189b44]
|
||||
- @llamaindex/core@0.6.0
|
||||
|
||||
## 0.0.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@llamaindex/cohere",
|
||||
"description": "Cohere Adapter for LlamaIndex",
|
||||
"version": "0.0.14",
|
||||
"version": "0.0.13",
|
||||
"type": "module",
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.js",
|
||||
|
||||
@@ -1,16 +1,5 @@
|
||||
# @llamaindex/deepinfra
|
||||
|
||||
## 0.0.46
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [21bebfc]
|
||||
- Updated dependencies [93bc0ff]
|
||||
- Updated dependencies [91a18e7]
|
||||
- Updated dependencies [5189b44]
|
||||
- @llamaindex/core@0.6.0
|
||||
- @llamaindex/openai@0.2.0
|
||||
|
||||
## 0.0.45
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@llamaindex/deepinfra",
|
||||
"description": "Deepinfra Adapter for LlamaIndex",
|
||||
"version": "0.0.46",
|
||||
"version": "0.0.45",
|
||||
"type": "module",
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.js",
|
||||
|
||||
@@ -1,12 +1,5 @@
|
||||
# @llamaindex/deepseek
|
||||
|
||||
## 0.0.6
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [91a18e7]
|
||||
- @llamaindex/openai@0.2.0
|
||||
|
||||
## 0.0.5
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@llamaindex/deepseek",
|
||||
"description": "DeepSeek Adapter for LlamaIndex",
|
||||
"version": "0.0.6",
|
||||
"version": "0.0.5",
|
||||
"type": "module",
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.js",
|
||||
|
||||
@@ -1,12 +1,5 @@
|
||||
# @llamaindex/fireworks
|
||||
|
||||
## 0.0.6
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [91a18e7]
|
||||
- @llamaindex/openai@0.2.0
|
||||
|
||||
## 0.0.5
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@llamaindex/fireworks",
|
||||
"description": "Fireworks Adapter for LlamaIndex",
|
||||
"version": "0.0.6",
|
||||
"version": "0.0.5",
|
||||
"type": "module",
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.js",
|
||||
|
||||
@@ -1,23 +1,5 @@
|
||||
# @llamaindex/google
|
||||
|
||||
## 0.2.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 91a18e7: Added support for structured output in the chat api of openai and ollama
|
||||
Added structured output parameter in the provider
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- da06e45: fix: don't ignore parts that only have inline data for google studio
|
||||
- 2a0a899: Added saftey setting parameter for gemini
|
||||
- 3fd4cc3: feat: use google's new gen ai library to support multimodal output
|
||||
- Updated dependencies [21bebfc]
|
||||
- Updated dependencies [93bc0ff]
|
||||
- Updated dependencies [91a18e7]
|
||||
- Updated dependencies [5189b44]
|
||||
- @llamaindex/core@0.6.0
|
||||
|
||||
## 0.1.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@llamaindex/google",
|
||||
"description": "Google Adapter for LlamaIndex",
|
||||
"version": "0.2.0",
|
||||
"version": "0.1.2",
|
||||
"type": "module",
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.js",
|
||||
@@ -34,7 +34,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@google-cloud/vertexai": "1.9.0",
|
||||
"@google/genai": "^0.4.0",
|
||||
"@google/generative-ai": "0.21.0",
|
||||
"@llamaindex/core": "workspace:*",
|
||||
"@llamaindex/env": "workspace:*"
|
||||
|
||||
@@ -63,7 +63,7 @@ export const GEMINI_MODEL_INFO_MAP: Record<GEMINI_MODEL, GeminiModelInfo> = {
|
||||
[GEMINI_MODEL.GEMINI_2_0_PRO_EXPERIMENTAL]: { contextWindow: 2 * 10 ** 6 },
|
||||
};
|
||||
|
||||
export const SUPPORT_TOOL_CALL_MODELS: GEMINI_MODEL[] = [
|
||||
const SUPPORT_TOOL_CALL_MODELS: GEMINI_MODEL[] = [
|
||||
GEMINI_MODEL.GEMINI_PRO,
|
||||
GEMINI_MODEL.GEMINI_PRO_VISION,
|
||||
GEMINI_MODEL.GEMINI_PRO_1_5_PRO_PREVIEW,
|
||||
@@ -79,7 +79,7 @@ export const SUPPORT_TOOL_CALL_MODELS: GEMINI_MODEL[] = [
|
||||
GEMINI_MODEL.GEMINI_2_0_PRO_EXPERIMENTAL,
|
||||
];
|
||||
|
||||
export const DEFAULT_GEMINI_PARAMS = {
|
||||
const DEFAULT_GEMINI_PARAMS = {
|
||||
model: GEMINI_MODEL.GEMINI_PRO,
|
||||
temperature: 0.1,
|
||||
topP: 1,
|
||||
|
||||
@@ -3,10 +3,4 @@ export * from "./types";
|
||||
export * from "./utils";
|
||||
export * from "./vertex";
|
||||
|
||||
export {
|
||||
GoogleStudio,
|
||||
Modality,
|
||||
getGoogleStudioInlineData,
|
||||
} from "./studio/index.js";
|
||||
|
||||
export * from "./GeminiEmbedding";
|
||||
|
||||
@@ -1,262 +0,0 @@
|
||||
import {
|
||||
GenerateContentResponse,
|
||||
GoogleGenAI,
|
||||
Modality,
|
||||
type Blob,
|
||||
type GenerateContentConfig,
|
||||
type GoogleGenAIOptions,
|
||||
} from "@google/genai";
|
||||
import {
|
||||
ToolCallLLM,
|
||||
type ChatResponse,
|
||||
type ChatResponseChunk,
|
||||
type CompletionResponse,
|
||||
type LLMChatParamsNonStreaming,
|
||||
type LLMChatParamsStreaming,
|
||||
type LLMCompletionParamsNonStreaming,
|
||||
type LLMCompletionParamsStreaming,
|
||||
type LLMMetadata,
|
||||
type ToolCall,
|
||||
type ToolCallLLMMessageOptions,
|
||||
} from "@llamaindex/core/llms";
|
||||
export { Modality };
|
||||
|
||||
import { streamConverter } from "@llamaindex/core/utils";
|
||||
|
||||
import { wrapLLMEvent } from "@llamaindex/core/decorator";
|
||||
import type { JSONObject } from "@llamaindex/core/global";
|
||||
import { DEFAULT_GEMINI_PARAMS, SUPPORT_TOOL_CALL_MODELS } from "../base";
|
||||
import type { GEMINI_MODEL } from "../types";
|
||||
import {
|
||||
mapChatMessagesToGoogleFunctions,
|
||||
mapChatMessagesToGoogleMessages,
|
||||
mapMessageContentDetailToGooglePart,
|
||||
mapMessageContentToMessageContentDetails,
|
||||
} from "./utils";
|
||||
|
||||
export type GoogleAdditionalChatOptions = { config: GenerateContentConfig };
|
||||
|
||||
export type GoogleChatStreamResponse = AsyncIterable<
|
||||
ChatResponseChunk<
|
||||
ToolCallLLMMessageOptions & {
|
||||
data?: Blob[];
|
||||
}
|
||||
>
|
||||
>;
|
||||
|
||||
export type GoogleChatParamsStreaming = LLMChatParamsStreaming<
|
||||
GoogleAdditionalChatOptions,
|
||||
ToolCallLLMMessageOptions
|
||||
>;
|
||||
|
||||
export type GoogleChatParamsNonStreaming = LLMChatParamsNonStreaming<
|
||||
GoogleAdditionalChatOptions,
|
||||
ToolCallLLMMessageOptions
|
||||
>;
|
||||
|
||||
export type GoogleChatNonStreamResponse =
|
||||
ChatResponse<ToolCallLLMMessageOptions>;
|
||||
|
||||
export const getGoogleStudioInlineData = (
|
||||
response: GenerateContentResponse,
|
||||
): Blob[] => {
|
||||
return response.candidates
|
||||
?.flatMap((candidate) => candidate.content?.parts)
|
||||
.map((part) => part?.inlineData)
|
||||
.filter((data) => data) as Blob[];
|
||||
};
|
||||
|
||||
export type GoogleModelParams = {
|
||||
model: GEMINI_MODEL;
|
||||
temperature?: number;
|
||||
topP?: number;
|
||||
maxTokens?: number;
|
||||
};
|
||||
|
||||
export type GoogleParams = GoogleGenAIOptions & GoogleModelParams;
|
||||
|
||||
export class GoogleStudio extends ToolCallLLM<GoogleAdditionalChatOptions> {
|
||||
client: GoogleGenAI;
|
||||
model: GEMINI_MODEL;
|
||||
temperature: number;
|
||||
topP: number;
|
||||
maxTokens?: number | undefined;
|
||||
topK?: number;
|
||||
|
||||
constructor({
|
||||
temperature,
|
||||
topP,
|
||||
maxTokens,
|
||||
model,
|
||||
...params
|
||||
}: GoogleParams) {
|
||||
super();
|
||||
this.model = model;
|
||||
this.maxTokens = maxTokens ?? DEFAULT_GEMINI_PARAMS.maxTokens;
|
||||
this.temperature = temperature ?? DEFAULT_GEMINI_PARAMS.temperature;
|
||||
this.topP = topP ?? DEFAULT_GEMINI_PARAMS.topP;
|
||||
this.client = new GoogleGenAI(params);
|
||||
}
|
||||
|
||||
get supportToolCall(): boolean {
|
||||
return SUPPORT_TOOL_CALL_MODELS.includes(this.model);
|
||||
}
|
||||
|
||||
get metadata(): LLMMetadata {
|
||||
return {
|
||||
model: this.model,
|
||||
temperature: this.temperature,
|
||||
topP: this.topP,
|
||||
maxTokens: this.maxTokens,
|
||||
contextWindow: 128000,
|
||||
tokenizer: undefined,
|
||||
structuredOutput: false,
|
||||
};
|
||||
}
|
||||
|
||||
getToolCallsFromResponse(response: GenerateContentResponse): ToolCall[] {
|
||||
if (!response.functionCalls) return [];
|
||||
return response.functionCalls.map((call) => ({
|
||||
id: call.id ?? "",
|
||||
name: call.name ?? "",
|
||||
input: call.args as JSONObject,
|
||||
}));
|
||||
}
|
||||
|
||||
protected async nonStreamChat(
|
||||
params: GoogleChatParamsNonStreaming,
|
||||
): Promise<GoogleChatNonStreamResponse> {
|
||||
if (!this.supportToolCall && params.tools?.length) {
|
||||
console.warn(`The model "${this.model}" doesn't support ToolCall`);
|
||||
}
|
||||
|
||||
const config: GenerateContentConfig =
|
||||
params.additionalChatOptions?.config ?? {};
|
||||
if (params.tools?.length) {
|
||||
if (config.responseModalities?.includes(Modality.IMAGE)) {
|
||||
console.warn("Tools are currently not supported with Modality.IMAGE");
|
||||
} else {
|
||||
config.tools = mapChatMessagesToGoogleFunctions(params.tools);
|
||||
}
|
||||
}
|
||||
const response = await this.client.models.generateContent({
|
||||
model: this.model,
|
||||
contents: mapChatMessagesToGoogleMessages(params.messages),
|
||||
config,
|
||||
});
|
||||
|
||||
if (this.supportToolCall) {
|
||||
const tools = this.getToolCallsFromResponse(response);
|
||||
if (tools.length) {
|
||||
return {
|
||||
raw: response,
|
||||
message: {
|
||||
role: "assistant",
|
||||
content: "",
|
||||
options: { toolCall: tools },
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
return {
|
||||
raw: response,
|
||||
message: {
|
||||
role: "assistant",
|
||||
content: response.text ?? "",
|
||||
options: {
|
||||
inlineData: getGoogleStudioInlineData(response),
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
protected async *streamChat(
|
||||
params: GoogleChatParamsStreaming,
|
||||
): GoogleChatStreamResponse {
|
||||
if (!this.supportToolCall && params.tools?.length) {
|
||||
console.warn(`The model "${this.model}" doesn't support ToolCall`);
|
||||
}
|
||||
const config: GenerateContentConfig =
|
||||
params.additionalChatOptions?.config ?? {};
|
||||
if (params.tools?.length) {
|
||||
if (config.responseModalities?.includes(Modality.IMAGE)) {
|
||||
console.warn("Tools are currently not supported with Modality.IMAGE");
|
||||
} else {
|
||||
config.tools = mapChatMessagesToGoogleFunctions(params.tools);
|
||||
}
|
||||
}
|
||||
const response = await this.client.models.generateContentStream({
|
||||
model: this.model,
|
||||
contents: mapChatMessagesToGoogleMessages(params.messages),
|
||||
config,
|
||||
});
|
||||
yield* streamConverter(response, (response) => {
|
||||
if (response.functionCalls?.length) {
|
||||
return {
|
||||
delta: "",
|
||||
raw: response,
|
||||
options: {
|
||||
toolCall: this.getToolCallsFromResponse(response),
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
delta: response.text ?? "",
|
||||
raw: response,
|
||||
options: {
|
||||
inlineData: getGoogleStudioInlineData(response),
|
||||
},
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
chat(params: GoogleChatParamsStreaming): Promise<GoogleChatStreamResponse>;
|
||||
chat(
|
||||
params: GoogleChatParamsNonStreaming,
|
||||
): Promise<GoogleChatNonStreamResponse>;
|
||||
@wrapLLMEvent
|
||||
async chat(
|
||||
params: GoogleChatParamsStreaming | GoogleChatParamsNonStreaming,
|
||||
): Promise<GoogleChatStreamResponse | GoogleChatNonStreamResponse> {
|
||||
if (params.stream) {
|
||||
return this.streamChat(params);
|
||||
}
|
||||
return this.nonStreamChat(params);
|
||||
}
|
||||
|
||||
complete(
|
||||
params: LLMCompletionParamsStreaming,
|
||||
): Promise<AsyncIterable<CompletionResponse>>;
|
||||
complete(
|
||||
params: LLMCompletionParamsNonStreaming,
|
||||
): Promise<CompletionResponse>;
|
||||
async complete(
|
||||
params: LLMCompletionParamsStreaming | LLMCompletionParamsNonStreaming,
|
||||
): Promise<CompletionResponse | AsyncIterable<CompletionResponse>> {
|
||||
const contents = mapMessageContentToMessageContentDetails(
|
||||
params.prompt,
|
||||
).map(mapMessageContentDetailToGooglePart);
|
||||
if (params.stream) {
|
||||
const response = await this.client.models.generateContentStream({
|
||||
model: this.model,
|
||||
contents,
|
||||
});
|
||||
return streamConverter(response, (response) => {
|
||||
return {
|
||||
text: response.text ?? "",
|
||||
raw: response,
|
||||
};
|
||||
});
|
||||
}
|
||||
const response = await this.client.models.generateContent({
|
||||
model: this.model,
|
||||
contents,
|
||||
});
|
||||
|
||||
return {
|
||||
text: response.text || "",
|
||||
raw: response,
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -1,136 +0,0 @@
|
||||
import type {
|
||||
ContentListUnion,
|
||||
ContentUnion,
|
||||
Part,
|
||||
Schema,
|
||||
ToolListUnion,
|
||||
} from "@google/genai";
|
||||
import type {
|
||||
BaseTool,
|
||||
ChatMessage,
|
||||
MessageContentDetail,
|
||||
ToolCallLLMMessageOptions,
|
||||
} from "@llamaindex/core/llms";
|
||||
import { extractDataUrlComponents } from "@llamaindex/core/utils";
|
||||
|
||||
import type { MessageContent } from "@llamaindex/core/llms";
|
||||
|
||||
export const mapMessageContentToMessageContentDetails = (
|
||||
content: MessageContent,
|
||||
): MessageContentDetail[] => {
|
||||
return Array.isArray(content) ? content : [{ type: "text", text: content }];
|
||||
};
|
||||
|
||||
const ACCEPTED_IMAGE_MIME_TYPES = ["image/jpeg", "image/png"];
|
||||
|
||||
export const mapTextPart = (text: string): Part => {
|
||||
return { text };
|
||||
};
|
||||
|
||||
export const mapImagePart = (imageUrl: string): Part => {
|
||||
if (!imageUrl.startsWith("data:"))
|
||||
throw new Error(
|
||||
"For Google please only use base64 data url, e.g.: data:image/jpeg;base64,SGVsbG8sIFdvcmxkIQ==",
|
||||
);
|
||||
const { mimeType, base64: data } = extractDataUrlComponents(imageUrl);
|
||||
if (!ACCEPTED_IMAGE_MIME_TYPES.includes(mimeType))
|
||||
throw new Error(
|
||||
`Anthropic only accepts the following mimeTypes: ${ACCEPTED_IMAGE_MIME_TYPES.join("\n")}`,
|
||||
);
|
||||
|
||||
return {
|
||||
inlineData: {
|
||||
mimeType,
|
||||
data,
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
export const mapMessageContentDetailToGooglePart = <
|
||||
T extends MessageContentDetail,
|
||||
>(
|
||||
detail: T,
|
||||
): Part => {
|
||||
let part: Part;
|
||||
|
||||
if (detail.type === "text") {
|
||||
part = mapTextPart(detail.text);
|
||||
} else if (detail.type === "image_url") {
|
||||
part = mapImagePart(detail.image_url.url);
|
||||
} else {
|
||||
throw new Error("Unsupported content detail type");
|
||||
}
|
||||
return part;
|
||||
};
|
||||
export const mapChatMessagesToGoogleFunctions = (
|
||||
tools: BaseTool[],
|
||||
): ToolListUnion => {
|
||||
return [
|
||||
{
|
||||
functionDeclarations: tools.map((tool) => ({
|
||||
response: tool.metadata.parameters as Schema,
|
||||
description: tool.metadata.description,
|
||||
name: tool.metadata.name,
|
||||
})),
|
||||
},
|
||||
];
|
||||
};
|
||||
|
||||
export const mapChatMessagesToGoogleMessages = <
|
||||
T extends ChatMessage<ToolCallLLMMessageOptions>,
|
||||
>(
|
||||
messages: T[],
|
||||
): ContentListUnion => {
|
||||
const functionNames: Record<string, string> = {};
|
||||
messages.forEach((msg: T) => {
|
||||
if (msg.options && "toolCall" in msg.options) {
|
||||
const mapped = msg.options.toolCall.reduce(
|
||||
(result, item) => {
|
||||
result[item.id] = item.name;
|
||||
return result;
|
||||
},
|
||||
{} as Record<string, string>,
|
||||
);
|
||||
|
||||
Object.assign(functionNames, mapped);
|
||||
}
|
||||
});
|
||||
return messages.flatMap((msg: T): ContentListUnion => {
|
||||
if (msg.options && "toolResult" in msg.options) {
|
||||
return {
|
||||
role: "user",
|
||||
parts: [
|
||||
{
|
||||
functionResponse: {
|
||||
name: functionNames[msg.options.toolResult.id] ?? "",
|
||||
response: msg.options.toolResult,
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
if (msg.options && "toolCall" in msg.options) {
|
||||
return {
|
||||
role: "model",
|
||||
parts: msg.options.toolCall.map((call) => ({
|
||||
functionCall: {
|
||||
name: call.name,
|
||||
args: call.input as Record<string, unknown>,
|
||||
},
|
||||
})),
|
||||
};
|
||||
}
|
||||
return mapMessageContentToMessageContentDetails(msg.content)
|
||||
.map((detail: MessageContentDetail): ContentUnion | null => {
|
||||
const part = mapMessageContentDetailToGooglePart(detail);
|
||||
if (!part.text && !part.inlineData) return null;
|
||||
|
||||
return {
|
||||
role: msg.role === "assistant" ? "model" : "user",
|
||||
parts: [part],
|
||||
};
|
||||
})
|
||||
.filter((content) => content) as ContentUnion;
|
||||
});
|
||||
};
|
||||
@@ -1,12 +1,5 @@
|
||||
# @llamaindex/groq
|
||||
|
||||
## 0.0.61
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [91a18e7]
|
||||
- @llamaindex/openai@0.2.0
|
||||
|
||||
## 0.0.60
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@llamaindex/groq",
|
||||
"description": "Groq Adapter for LlamaIndex",
|
||||
"version": "0.0.61",
|
||||
"version": "0.0.60",
|
||||
"type": "module",
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.js",
|
||||
|
||||
@@ -1,21 +1,5 @@
|
||||
# @llamaindex/huggingface
|
||||
|
||||
## 0.1.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 91a18e7: Added support for structured output in the chat api of openai and ollama
|
||||
Added structured output parameter in the provider
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [21bebfc]
|
||||
- Updated dependencies [93bc0ff]
|
||||
- Updated dependencies [91a18e7]
|
||||
- Updated dependencies [5189b44]
|
||||
- @llamaindex/core@0.6.0
|
||||
- @llamaindex/openai@0.2.0
|
||||
|
||||
## 0.0.45
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@llamaindex/huggingface",
|
||||
"description": "Huggingface Adapter for LlamaIndex",
|
||||
"version": "0.1.0",
|
||||
"version": "0.0.45",
|
||||
"type": "module",
|
||||
"types": "dist/index.d.ts",
|
||||
"main": "dist/index.cjs",
|
||||
|
||||
@@ -1,16 +1,5 @@
|
||||
# @llamaindex/jinaai
|
||||
|
||||
## 0.0.6
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [21bebfc]
|
||||
- Updated dependencies [93bc0ff]
|
||||
- Updated dependencies [91a18e7]
|
||||
- Updated dependencies [5189b44]
|
||||
- @llamaindex/core@0.6.0
|
||||
- @llamaindex/openai@0.2.0
|
||||
|
||||
## 0.0.5
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@llamaindex/jinaai",
|
||||
"description": "JinaAI Adapter for LlamaIndex",
|
||||
"version": "0.0.6",
|
||||
"version": "0.0.5",
|
||||
"type": "module",
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.js",
|
||||
|
||||
@@ -1,23 +1,5 @@
|
||||
# @llamaindex/mistral
|
||||
|
||||
## 0.1.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 91a18e7: Added support for structured output in the chat api of openai and ollama
|
||||
Added structured output parameter in the provider
|
||||
- d1c1f99: Added support for function calling in mistral provider
|
||||
Update model list for mistral provider
|
||||
Added example for the tool call in mistral
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [21bebfc]
|
||||
- Updated dependencies [93bc0ff]
|
||||
- Updated dependencies [91a18e7]
|
||||
- Updated dependencies [5189b44]
|
||||
- @llamaindex/core@0.6.0
|
||||
|
||||
## 0.0.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@llamaindex/mistral",
|
||||
"description": "Mistral Adapter for LlamaIndex",
|
||||
"version": "0.1.0",
|
||||
"version": "0.0.14",
|
||||
"type": "module",
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.js",
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
# @llamaindex/mixedbread
|
||||
|
||||
## 0.0.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [21bebfc]
|
||||
- Updated dependencies [93bc0ff]
|
||||
- Updated dependencies [91a18e7]
|
||||
- Updated dependencies [5189b44]
|
||||
- @llamaindex/core@0.6.0
|
||||
|
||||
## 0.0.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@llamaindex/mixedbread",
|
||||
"description": "Mixedbread Adapter for LlamaIndex",
|
||||
"version": "0.0.14",
|
||||
"version": "0.0.13",
|
||||
"type": "module",
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.js",
|
||||
|
||||
@@ -1,20 +1,5 @@
|
||||
# @llamaindex/ollama
|
||||
|
||||
## 0.1.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 91a18e7: Added support for structured output in the chat api of openai and ollama
|
||||
Added structured output parameter in the provider
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [21bebfc]
|
||||
- Updated dependencies [93bc0ff]
|
||||
- Updated dependencies [91a18e7]
|
||||
- Updated dependencies [5189b44]
|
||||
- @llamaindex/core@0.6.0
|
||||
|
||||
## 0.0.48
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@llamaindex/ollama",
|
||||
"description": "Ollama Adapter for LlamaIndex",
|
||||
"version": "0.1.0",
|
||||
"version": "0.0.48",
|
||||
"type": "module",
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.js",
|
||||
|
||||
@@ -1,20 +1,5 @@
|
||||
# @llamaindex/openai
|
||||
|
||||
## 0.2.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 91a18e7: Added support for structured output in the chat api of openai and ollama
|
||||
Added structured output parameter in the provider
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [21bebfc]
|
||||
- Updated dependencies [93bc0ff]
|
||||
- Updated dependencies [91a18e7]
|
||||
- Updated dependencies [5189b44]
|
||||
- @llamaindex/core@0.6.0
|
||||
|
||||
## 0.1.61
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@llamaindex/openai",
|
||||
"description": "OpenAI Adapter for LlamaIndex",
|
||||
"version": "0.2.0",
|
||||
"version": "0.1.61",
|
||||
"type": "module",
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.js",
|
||||
|
||||
@@ -1,16 +1,5 @@
|
||||
# @llamaindex/perplexity
|
||||
|
||||
## 0.0.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [21bebfc]
|
||||
- Updated dependencies [93bc0ff]
|
||||
- Updated dependencies [91a18e7]
|
||||
- Updated dependencies [5189b44]
|
||||
- @llamaindex/core@0.6.0
|
||||
- @llamaindex/openai@0.2.0
|
||||
|
||||
## 0.0.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@llamaindex/perplexity",
|
||||
"description": "Perplexity Adapter for LlamaIndex",
|
||||
"version": "0.0.3",
|
||||
"version": "0.0.2",
|
||||
"type": "module",
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.js",
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
# @llamaindex/portkey-ai
|
||||
|
||||
## 0.0.42
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [21bebfc]
|
||||
- Updated dependencies [93bc0ff]
|
||||
- Updated dependencies [91a18e7]
|
||||
- Updated dependencies [5189b44]
|
||||
- @llamaindex/core@0.6.0
|
||||
|
||||
## 0.0.41
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@llamaindex/portkey-ai",
|
||||
"description": "Portkey Adapter for LlamaIndex",
|
||||
"version": "0.0.42",
|
||||
"version": "0.0.41",
|
||||
"type": "module",
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.js",
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
# @llamaindex/replicate
|
||||
|
||||
## 0.0.42
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [21bebfc]
|
||||
- Updated dependencies [93bc0ff]
|
||||
- Updated dependencies [91a18e7]
|
||||
- Updated dependencies [5189b44]
|
||||
- @llamaindex/core@0.6.0
|
||||
|
||||
## 0.0.41
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@llamaindex/replicate",
|
||||
"description": "Replicate Adapter for LlamaIndex",
|
||||
"version": "0.0.42",
|
||||
"version": "0.0.41",
|
||||
"type": "module",
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.js",
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
# @llamaindex/astra
|
||||
|
||||
## 0.0.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [21bebfc]
|
||||
- Updated dependencies [93bc0ff]
|
||||
- Updated dependencies [91a18e7]
|
||||
- Updated dependencies [5189b44]
|
||||
- @llamaindex/core@0.6.0
|
||||
|
||||
## 0.0.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@llamaindex/astra",
|
||||
"description": "Astra Storage for LlamaIndex",
|
||||
"version": "0.0.14",
|
||||
"version": "0.0.13",
|
||||
"type": "module",
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.js",
|
||||
|
||||
@@ -1,16 +1,5 @@
|
||||
# @llamaindex/azure
|
||||
|
||||
## 0.1.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- da8068e: Add `fromConnectionString` method to azure storage libs to track the usage vCore.
|
||||
- Updated dependencies [21bebfc]
|
||||
- Updated dependencies [93bc0ff]
|
||||
- Updated dependencies [91a18e7]
|
||||
- Updated dependencies [5189b44]
|
||||
- @llamaindex/core@0.6.0
|
||||
|
||||
## 0.1.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@llamaindex/azure",
|
||||
"description": "Azure Storage for LlamaIndex",
|
||||
"version": "0.1.9",
|
||||
"version": "0.1.8",
|
||||
"type": "module",
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.js",
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
# @llamaindex/chroma
|
||||
|
||||
## 0.0.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [21bebfc]
|
||||
- Updated dependencies [93bc0ff]
|
||||
- Updated dependencies [91a18e7]
|
||||
- Updated dependencies [5189b44]
|
||||
- @llamaindex/core@0.6.0
|
||||
|
||||
## 0.0.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@llamaindex/chroma",
|
||||
"description": "Chroma Storage for LlamaIndex",
|
||||
"version": "0.0.14",
|
||||
"version": "0.0.13",
|
||||
"type": "module",
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.js",
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
# @llamaindex/elastic-search
|
||||
|
||||
## 0.1.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 2509353: Added support for elastic search vector store
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [21bebfc]
|
||||
- Updated dependencies [93bc0ff]
|
||||
- Updated dependencies [91a18e7]
|
||||
- Updated dependencies [5189b44]
|
||||
- @llamaindex/core@0.6.0
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user