Compare commits

...

12 Commits

Author SHA1 Message Date
sweep-ai[bot] fdf1724092 Merge main into sweep/add-metadata-loading-documents 2023-08-24 06:19:55 +00:00
Yi Ding 293b83c3df 0.0.22 2023-08-23 23:19:41 -07:00
sweep-ai[bot] c2b45b57d0 Merge main into sweep/add-metadata-loading-documents 2023-08-24 06:19:28 +00:00
sweep-ai[bot] 4a26484777 Merge main into sweep/add-metadata-loading-documents 2023-08-23 06:42:43 +00:00
sweep-ai[bot] 9f299e6869 Merge main into sweep/add-metadata-loading-documents 2023-08-23 06:41:41 +00:00
sweep-ai[bot] 03a895ba72 Merge main into sweep/add-metadata-loading-documents 2023-08-23 06:29:09 +00:00
sweep-ai[bot] fb89e5ab8d Merge main into sweep/add-metadata-loading-documents 2023-08-23 05:44:20 +00:00
sweep-ai[bot] cae2ef6b64 Merge main into sweep/add-metadata-loading-documents 2023-08-23 05:30:46 +00:00
sweep-ai[bot] bc3a51b946 Merge main into sweep/add-metadata-loading-documents 2023-08-20 01:25:08 +00:00
sweep-ai[bot] 371b776b91 Merge main into sweep/add-metadata-loading-documents 2023-08-20 01:23:10 +00:00
sweep-ai[bot] 4adc8cac6d Added metadata when converting JSON to Document 2023-08-18 12:09:25 +00:00
sweep-ai[bot] be5fe9e090 Added metadata when loading documents from JSON 2023-08-18 12:09:12 +00:00
11 changed files with 29 additions and 28 deletions
-5
View File
@@ -1,5 +0,0 @@
---
"llamaindex": patch
---
CJK sentence splitting (thanks @TomPenguin)
-5
View File
@@ -1,5 +0,0 @@
---
"llamaindex": patch
---
Export options for Windows formatted text files
-5
View File
@@ -1,5 +0,0 @@
---
"llamaindex": patch
---
Disable long sentence splitting by default
-5
View File
@@ -1,5 +0,0 @@
---
"llamaindex": patch
---
Make sentence splitter not split on decimals.
-5
View File
@@ -1,5 +0,0 @@
---
"llamaindex": patch
---
Anthropic 0.6.1 and OpenAI 4.2.0. Changed Anthropic timeout back to 60s
+11
View File
@@ -1,5 +1,16 @@
# simple
## 0.0.20
### Patch Changes
- Updated dependencies [454f3f8]
- Updated dependencies [454f3f8]
- Updated dependencies [454f3f8]
- Updated dependencies [454f3f8]
- Updated dependencies [99df58f]
- llamaindex@0.0.22
## 0.0.19
### Patch Changes
+1 -1
View File
@@ -1,5 +1,5 @@
{
"version": "0.0.19",
"version": "0.0.20",
"private": true,
"name": "simple",
"dependencies": {
+10
View File
@@ -1,5 +1,15 @@
# llamaindex
## 0.0.22
### Patch Changes
- 454f3f8: CJK sentence splitting (thanks @TomPenguin)
- 454f3f8: Export options for Windows formatted text files
- 454f3f8: Disable long sentence splitting by default
- 454f3f8: Make sentence splitter not split on decimals.
- 99df58f: Anthropic 0.6.1 and OpenAI 4.2.0. Changed Anthropic timeout back to 60s
## 0.0.21
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "llamaindex",
"version": "0.0.21",
"version": "0.0.22",
"dependencies": {
"@anthropic-ai/sdk": "^0.6.1",
"lodash": "^4.17.21",
@@ -48,6 +48,7 @@ export class KVDocumentStore extends BaseDocumentStore {
let data = docToJson(doc);
await this.kvstore.put(nodeKey, data, this.nodeCollection);
let metadata: DocMetaData = { docHash: doc.hash };
metadata = {...metadata, ...doc.metadata};
if (doc.getType() === ObjectType.TEXT && doc.sourceNode !== undefined) {
let refDocInfo = (await this.getRefDocInfo(doc.sourceNode.nodeId)) || {
@@ -82,7 +83,10 @@ export class KVDocumentStore extends BaseDocumentStore {
return;
}
}
return jsonToDoc(json);
let doc = jsonToDoc(json);
let metadata = await this.kvstore.get(docId, this.metadataCollection);
doc.metadata = metadata;
return doc;
}
async getRefDocInfo(refDocId: string): Promise<RefDocInfo | undefined> {
@@ -23,6 +23,7 @@ export function jsonToDoc(docDict: Record<string, any>): BaseNode {
hash: dataDict.hash,
metadata: dataDict.metadata,
});
doc.metadata = dataDict.metadata;
} else if (docType === ObjectType.TEXT) {
doc = new TextNode({
text: dataDict.text,