Compare commits

..

5 Commits

Author SHA1 Message Date
Emanuel Ferreira 8fbe296cee Merge branch 'main' into feat/check-version 2024-03-14 09:28:19 -03:00
Marcus Schiesser 964e045903 feat: add support for snapshots 2024-03-14 10:23:58 +07:00
Marcus Schiesser 137cf67f40 fix: Use Pinecone namespaces for all operations (#633) 2024-03-14 10:15:52 +07:00
Emanuel Ferreira 34b42d2c20 chore: expected minor version 2024-03-13 22:18:39 -03:00
Emanuel Ferreira 309a526e3c RELEASING: Releasing 5 package(s) (#643) 2024-03-13 22:17:27 -03:00
19 changed files with 120 additions and 51 deletions
-6
View File
@@ -1,6 +0,0 @@
---
"llamaindex": patch
"examples": patch
---
add support for Milvus vector store
-5
View File
@@ -1,5 +0,0 @@
---
"llamaindex": patch
---
feat: experimental package + json query engine
-12
View File
@@ -1,12 +0,0 @@
---
"llamaindex": patch
"@llamaindex/core-test": patch
---
- Add missing exports:
- `IndexStructType`,
- `IndexDict`,
- `jsonToIndexStruct`,
- `IndexList`,
- `IndexStruct`
- Fix `IndexDict.toJson()` method
+5
View File
@@ -0,0 +1,5 @@
---
"llamaindex": patch
---
Use Pinecone namespaces for all operations
-5
View File
@@ -1,5 +0,0 @@
---
"llamaindex": patch
---
Add streaming to agents
-5
View File
@@ -1,5 +0,0 @@
---
"llamaindex": patch
---
add Claude Haiku support and update anthropic SDK
-5
View File
@@ -1,5 +0,0 @@
---
"llamaindex": minor
---
Use parameter object for retrieve function of Retriever (to align usage with query function of QueryEngine)
+14
View File
@@ -0,0 +1,14 @@
# examples
## 0.0.4
### Patch Changes
- d2e8d0c: add support for Milvus vector store
- Updated dependencies [d2e8d0c]
- Updated dependencies [aefc326]
- Updated dependencies [484a710]
- Updated dependencies [d766bd0]
- Updated dependencies [dd95927]
- Updated dependencies [bf583a7]
- llamaindex@0.2.0
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "examples",
"private": true,
"version": "0.0.3",
"version": "0.0.4",
"dependencies": {
"@aws-crypto/sha256-js": "^5.2.0",
"@datastax/astra-db-ts": "^0.1.4",
+11
View File
@@ -0,0 +1,11 @@
# llamaindex-loader-example
### Patch Changes
- Updated dependencies [d2e8d0c]
- Updated dependencies [aefc326]
- Updated dependencies [484a710]
- Updated dependencies [d766bd0]
- Updated dependencies [dd95927]
- Updated dependencies [bf583a7]
- llamaindex@0.2.0
+4 -2
View File
@@ -11,8 +11,10 @@
"prepare": "husky",
"test": "turbo run test",
"type-check": "tsc -b --diagnostics",
"release": "pnpm run build:release && changeset publish",
"new-version": "pnpm run build:release && changeset version"
"release": "pnpm run check-minor-version && pnpm run build:release && changeset publish",
"check-minor-version": "node ./scripts/check-minor-version",
"new-version": "pnpm run build:release && changeset version && pnpm run check-minor-version",
"new-snapshot": "pnpm run build:release && changeset version --snapshot"
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
+20
View File
@@ -1,5 +1,25 @@
# llamaindex
## 0.2.0
### Minor Changes
- bf583a7: Use parameter object for retrieve function of Retriever (to align usage with query function of QueryEngine)
### Patch Changes
- d2e8d0c: add support for Milvus vector store
- aefc326: feat: experimental package + json query engine
- 484a710: - Add missing exports:
- `IndexStructType`,
- `IndexDict`,
- `jsonToIndexStruct`,
- `IndexList`,
- `IndexStruct`
- Fix `IndexDict.toJson()` method
- d766bd0: Add streaming to agents
- dd95927: add Claude Haiku support and update anthropic SDK
## 0.1.21
### Patch Changes
+2 -1
View File
@@ -1,6 +1,7 @@
{
"name": "llamaindex",
"version": "0.1.21",
"version": "0.2.0",
"expectedMinorVersion": "2",
"license": "MIT",
"type": "module",
"dependencies": {
@@ -73,7 +73,7 @@ export class PineconeVectorStore implements VectorStore {
async index() {
const db: Pinecone = await this.getDb();
return await db.index(this.indexName);
return db.index(this.indexName).namespace(this.namespace);
}
/**
@@ -82,8 +82,8 @@ export class PineconeVectorStore implements VectorStore {
* @returns The result of the delete query.
*/
async clearIndex() {
const db: Pinecone = await this.getDb();
return await db.index(this.indexName).deleteAll();
const idx = await this.index();
return await idx.deleteAll();
}
/**
@@ -155,12 +155,10 @@ export class PineconeVectorStore implements VectorStore {
};
const idx = await this.index();
const results = await idx.namespace(this.namespace).query(options);
const results = await idx.query(options);
const idList = results.matches.map((row) => row.id);
const records: FetchResponse<any> = await idx
.namespace(this.namespace)
.fetch(idList);
const records: FetchResponse<any> = await idx.fetch(idList);
const rows = Object.values(records.records);
const nodes = rows.map((row) => {
+13
View File
@@ -0,0 +1,13 @@
# @llamaindex/core-test
## 0.0.2
### Patch Changes
- 484a710: - Add missing exports:
- `IndexStructType`,
- `IndexDict`,
- `jsonToIndexStruct`,
- `IndexList`,
- `IndexStruct`
- Fix `IndexDict.toJson()` method
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/core-test",
"private": true,
"version": "0.0.1",
"version": "0.0.2",
"type": "module",
"scripts": {
"test": "vitest run"
+12
View File
@@ -1 +1,13 @@
# @llamaindex/experimental
## 0.0.3
### Patch Changes
- Updated dependencies [d2e8d0c]
- Updated dependencies [aefc326]
- Updated dependencies [484a710]
- Updated dependencies [d766bd0]
- Updated dependencies [dd95927]
- Updated dependencies [bf583a7]
- llamaindex@0.2.0
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@llamaindex/experimental",
"description": "Experimental package for LlamaIndexTS",
"version": "0.0.2",
"version": "0.0.3",
"type": "module",
"types": "dist/type/index.d.ts",
"main": "dist/cjs/index.js",
+31
View File
@@ -0,0 +1,31 @@
const fs = require("fs");
const packageJson = JSON.parse(
fs.readFileSync("./packages/core/package.json", "utf8"),
);
const versions = packageJson.version.split(".");
const minorVersion = packageJson.version.split(".")[1];
const expectedMinorVersion = packageJson.expectedMinorVersion;
if (versions.length !== 3) {
console.error(
"Version must be in format x.y.z but is " + packageJson.version,
);
process.exit(1);
}
if (minorVersion !== expectedMinorVersion) {
console.error(
"Minor version must be " +
expectedMinorVersion +
" but is " +
minorVersion +
". Please adjust that on the packages/core/package.json.",
);
process.exit(1);
}
console.log("Current expected minor version is: " + expectedMinorVersion);
console.log("Minor version is: " + minorVersion);
console.log("Good to go!");