-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into tp/add-vercel-chat-example
- Loading branch information
Showing
33 changed files
with
194 additions
and
19 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
# docs | ||
|
||
## 0.0.129 | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [515f2c1] | ||
- [email protected] | ||
|
||
## 0.0.128 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
# @llamaindex/doc | ||
|
||
## 0.0.27 | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [515f2c1] | ||
- [email protected] | ||
|
||
## 0.0.26 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
# @llamaindex/cloudflare-worker-agent-test | ||
|
||
## 0.0.120 | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [515f2c1] | ||
- [email protected] | ||
|
||
## 0.0.119 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
# @llamaindex/next-agent-test | ||
|
||
## 0.1.120 | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [515f2c1] | ||
- [email protected] | ||
|
||
## 0.1.119 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
# test-edge-runtime | ||
|
||
## 0.1.119 | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [515f2c1] | ||
- [email protected] | ||
|
||
## 0.1.118 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
# @llamaindex/next-node-runtime | ||
|
||
## 0.0.101 | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [515f2c1] | ||
- [email protected] | ||
|
||
## 0.0.100 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
# @llamaindex/waku-query-engine-test | ||
|
||
## 0.0.120 | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [515f2c1] | ||
- [email protected] | ||
|
||
## 0.0.119 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { ObsidianReader } from "@llamaindex/readers/obsidian"; | ||
|
||
const obsidianReader = new ObsidianReader( | ||
"/Users/jingyi/Documents/jingyi-vault", | ||
); | ||
|
||
obsidianReader.loadData().then((documents) => { | ||
console.log("documents:", documents.length); | ||
documents.forEach((doc) => { | ||
console.log(`document (${doc.id_}):`, doc.getText()); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
# @llamaindex/autotool | ||
|
||
## 5.0.24 | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [515f2c1] | ||
- [email protected] | ||
|
||
## 5.0.23 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
# @llamaindex/autotool-01-node-example | ||
|
||
## 0.0.67 | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [515f2c1] | ||
- [email protected] | ||
- @llamaindex/autotool@5.0.24 | ||
|
||
## 0.0.66 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
# @llamaindex/autotool-02-next-example | ||
|
||
## 0.1.111 | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [515f2c1] | ||
- [email protected] | ||
- @llamaindex/autotool@5.0.24 | ||
|
||
## 0.1.110 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
# @llamaindex/experimental | ||
|
||
## 0.0.136 | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [515f2c1] | ||
- [email protected] | ||
|
||
## 0.0.135 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
# llamaindex | ||
|
||
## 0.8.24 | ||
|
||
### Patch Changes | ||
|
||
- 515f2c1: Add vector store for CosmosDB | ||
|
||
## 0.8.23 | ||
|
||
### Patch Changes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"type": "module", | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"edge-light": "./dist/index.edge-light.js", | ||
"workerd": "./dist/index.workerd.js", | ||
"default": "./dist/index.js" | ||
} | ||
}, | ||
"private": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { type BaseReader, Document } from "@llamaindex/core/schema"; | ||
import * as fs from "node:fs"; | ||
import path from "node:path"; | ||
import { MarkdownReader } from "./markdown"; | ||
|
||
export class ObsidianReader implements BaseReader<Document> { | ||
protected inputDir: string; | ||
protected docs: Document[] = []; | ||
|
||
constructor(inputDir: string) { | ||
this.inputDir = inputDir; | ||
} | ||
|
||
private async processPath(file: fs.Dirent, filepath: string) { | ||
if (file.isDirectory() && !file.name.startsWith(".")) { | ||
await this.readFromPath(filepath); | ||
} else if (file.isFile() && file.name.endsWith(".md")) { | ||
await this.convertToDocuments(filepath); | ||
} else { | ||
console.log(`Skipping ${filepath}`); | ||
} | ||
} | ||
|
||
private async readFromPath(dir: string) { | ||
const files = await fs.promises.readdir(dir, { withFileTypes: true }); | ||
for (const file of files) { | ||
const filepath = path.join(dir, file.name); | ||
await this.processPath(file, filepath); | ||
} | ||
} | ||
|
||
private async convertToDocuments(filepath: string) { | ||
const content = await new MarkdownReader().loadData(filepath); | ||
this.docs.push(...content); | ||
} | ||
|
||
async loadData(): Promise<Document[]> { | ||
await this.readFromPath(this.inputDir); | ||
return this.docs; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
# @llamaindex/unit-test | ||
|
||
## 0.0.34 | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [515f2c1] | ||
- [email protected] | ||
|
||
## 0.0.33 | ||
|
||
### Patch Changes | ||
|
Oops, something went wrong.