Skip to content

Commit

Permalink
updating package name and the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Shyam-Raghuwanshi committed May 29, 2024
1 parent ca4ec1b commit 8daae10
Show file tree
Hide file tree
Showing 36 changed files with 41 additions and 46 deletions.
4 changes: 2 additions & 2 deletions JS/edgechains/arakoodev/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "arakoodev",
"version": "1.0.10",
"name": "@arakoodev/edgechains.js",
"version": "0.1.23",
"main": "dist/index.js",
"files": [
"dist"
Expand Down
2 changes: 1 addition & 1 deletion JS/edgechains/examples/chat-with-llm/dist/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ArakooServer } from "arakoodev/arakooserver";
import { ArakooServer } from "@arakoodev/edgechains.js/arakooserver";
import Jsonnet from "@arakoodev/jsonnet";
//@ts-ignore
import createClient from 'sync-rpc';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const path = require("path");
const { OpenAI } = require("arakoodev/openai");
const { OpenAI } = require("@arakoodev/edgechains.js/openai");
const zod_1 = require("zod");
const Jsonnet = require("@arakoodev/jsonnet");
const jsonnet = new Jsonnet();
Expand Down
2 changes: 1 addition & 1 deletion JS/edgechains/examples/chat-with-llm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
},
"license": "ISC",
"dependencies": {
"@arakoodev/edgechains.js": "^0.1.23",
"@arakoodev/jsonnet": "^0.2.1",
"arakoodev": "^1.0.10",
"sync-rpc": "^1.3.6",
"zod": "^3.23.8"
},
Expand Down
2 changes: 1 addition & 1 deletion JS/edgechains/examples/chat-with-llm/readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Video
```
https://drive.google.com/file/d/1y0tGZx9HnjZpWlMmJW-6Yt1fW9lXpxFD/view
https://youtu.be/fq3BpdduO2g
```

# Chat with LLM Example
Expand Down
2 changes: 1 addition & 1 deletion JS/edgechains/examples/chat-with-llm/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import { ArakooServer } from "arakoodev/arakooserver";
import { ArakooServer } from "@arakoodev/edgechains.js/arakooserver";
import Jsonnet from "@arakoodev/jsonnet";
//@ts-ignore
import createClient from 'sync-rpc';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const path = require("path");
const { OpenAI } = require("arakoodev/openai");
const { OpenAI } = require("@arakoodev/edgechains.js/openai");
import { z } from "zod";
const Jsonnet = require("@arakoodev/jsonnet");
const jsonnet = new Jsonnet();
Expand Down
2 changes: 1 addition & 1 deletion JS/edgechains/examples/chat-with-pdf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"author": "",
"license": "ISC",
"dependencies": {
"@arakoodev/edgechains.js": "^0.1.23",
"@arakoodev/jsonnet": "^0.2.0",
"@babel/preset-env": "^7.24.4",
"arakoodev": "^1.0.10",
"cli-spinner": "^0.2.10",
"regenerator-runtime": "^0.14.1",
"zod": "^3.23.8"
Expand Down
2 changes: 1 addition & 1 deletion JS/edgechains/examples/chat-with-pdf/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "dotenv/config";
import { ArakooServer } from "arakoodev/arakooserver";
import { ArakooServer } from "@arakoodev/edgechains.js/arakooserver";
import { ChatRouter } from "./routes/chat.js";
const server = new ArakooServer();

Expand Down
10 changes: 5 additions & 5 deletions JS/edgechains/examples/chat-with-pdf/src/routes/chat.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import path from "path";
import fs from "fs";
import { fileURLToPath } from "url";
import { OpenAI } from "arakoodev/openai";
import { Supabase } from "arakoodev/vector-db";
import { PdfLoader } from "arakoodev/document-loader";
import { TextSplitter } from "arakoodev/splitter";
import { ArakooServer } from "arakoodev/arakooserver";
import { OpenAI } from "@arakoodev/edgechains.js/openai";
import { Supabase } from "@arakoodev/edgechains.js/vector-db";
import { PdfLoader } from "@arakoodev/edgechains.js/document-loader";
import { TextSplitter } from "@arakoodev/edgechains.js/splitter";
import { ArakooServer } from "@arakoodev/edgechains.js/arakooserver";
import { Spinner } from "cli-spinner"
import { z } from "zod";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ArakooServer } from "arakoodev/arakooserver";
import { ArakooServer } from "@arakoodev/edgechains.js/arakooserver";
import { fileURLToPath } from "url";
import Jsonnet from "@arakoodev/jsonnet";
import path from "path";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const { OpenAI } = require("arakoodev/openai");
const { OpenAI } = require("@arakoodev/edgechains.js/openai");
const path = require('path');
const Jsonnet = require("@arakoodev/jsonnet");
const jsonnet = new Jsonnet();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const { OpenAI } = require("arakoodev/openai");
const { OpenAI } = require("@arakoodev/edgechains.js/openai");
const path = require('path');
const Jsonnet = require("@arakoodev/jsonnet");
const jsonnet = new Jsonnet();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,11 @@
"author": "",
"license": "ISC",
"dependencies": {
"@arakoodev/edgechains.js": "^0.1.23",
"@arakoodev/jsonnet": "^0.2.1",
"@sendgrid/mail": "^8.1.3",
"arakoodev": "^1.0.9",
"axios": "^1.7.1",
"moment-timezone": "^0.5.45",
"openai": "^4.47.1",
"readline-sync": "^1.4.10",
"resend": "^3.2.0",
"sync-rpc": "^1.3.6"
},
"devDependencies": {
"@types/readline-sync": "^1.4.8"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Video
```
https://drive.google.com/file/d/1amBXmUZVyWR6l-MaYuE9h6zAJyvIYNIp/view
https://youtu.be/oIsa24uPaQ4
```

## Installation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ArakooServer } from "arakoodev/arakooserver";
import { ArakooServer } from "@arakoodev/edgechains.js/arakooserver";
import { fileURLToPath } from "url"
import Jsonnet from "@arakoodev/jsonnet"
import path from "path"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { OpenAI } = require("arakoodev/openai");
const { OpenAI } = require("@arakoodev/edgechains.js/openai");

const path = require('path');
const Jsonnet = require("@arakoodev/jsonnet");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { OpenAI } = require("arakoodev/openai");
const { OpenAI } = require("@arakoodev/edgechains.js/openai");

const path = require('path');
const Jsonnet = require("@arakoodev/jsonnet");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ArakooServer } from "arakoodev/arakooserver";
import { ArakooServer } from "@arakoodev/edgechains.js/arakooserver";
import Jsonnet from "@arakoodev/jsonnet";
//@ts-ignore
import createClient from 'sync-rpc';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Object.defineProperty(exports, "__esModule", { value: true });
const zod_1 = require("zod");
const path = require("path");
const { OpenAI } = require("arakoodev/openai");
const { OpenAI } = require("@arakoodev/edgechains.js/openai");
const Jsonnet = require("@arakoodev/jsonnet");
const jsonnet = new Jsonnet();
const secretsPath = path.join(__dirname, "../../jsonnet/secrets.jsonnet");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
},
"license": "ISC",
"dependencies": {
"@arakoodev/edgechains.js": "^0.1.23",
"@arakoodev/jsonnet": "^0.2.1",
"hono": "^4.3.7",
"sync-rpc": "^1.3.6",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import { ArakooServer } from "arakoodev/arakooserver";
import { ArakooServer } from "@arakoodev/edgechains.js/arakooserver";
import Jsonnet from "@arakoodev/jsonnet";
//@ts-ignore
import createClient from 'sync-rpc';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { z } from "zod";
const path = require("path");
const { OpenAI } = require("arakoodev/openai");
const { OpenAI } = require("@arakoodev/edgechains.js/openai");

const Jsonnet = require("@arakoodev/jsonnet");
const jsonnet = new Jsonnet();
Expand Down
2 changes: 1 addition & 1 deletion JS/edgechains/examples/language-translater/readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Video
```
https://drive.google.com/file/d/1QclGlD6mDEN9PMDEXAMkdZb0wY5uew8p/view
https://youtu.be/RTARGcRW_0I
```

# Project Name
Expand Down
2 changes: 1 addition & 1 deletion JS/edgechains/examples/react-chain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"author": "",
"license": "ISC",
"dependencies": {
"@arakoodev/edgechains.js": "^0.1.23",
"@arakoodev/jsonnet": "^0.2.1",
"arakoodev": "^1.0.10",
"sync-rpc": "^1.3.6"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion JS/edgechains/examples/react-chain/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ArakooServer } from "arakoodev/arakooserver";
import { ArakooServer } from "@arakoodev/edgechains.js/arakooserver";
import { ReactChainRouter } from "./routes/react-chain.js";

const server = new ArakooServer();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const path = require("path");
const { OpenAI } = require("arakoodev/openai");
const { OpenAI } = require("@arakoodev/edgechains.js/openai");

const Jsonnet = require("@arakoodev/jsonnet");
const jsonnet = new Jsonnet();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ArakooServer } from "arakoodev/arakooserver";
import { ArakooServer } from "@arakoodev/edgechains.js/arakooserver";
//@ts-ignore
import Jsonnet from "@arakoodev/jsonnet";
import { fileURLToPath } from "url";
Expand Down
2 changes: 1 addition & 1 deletion JS/edgechains/examples/summarize-page/dist/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ArakooServer } from "arakoodev/arakooserver";
import { ArakooServer } from "@arakoodev/edgechains.js/arakooserver";
import Jsonnet from "@arakoodev/jsonnet";
//@ts-ignore
import createClient from 'sync-rpc';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const path = require("path");
const { OpenAI } = require("arakoodev/openai");
const { OpenAI } = require("@arakoodev/edgechains.js/openai");
const zod_1 = require("zod");
const Jsonnet = require("@arakoodev/jsonnet");
const jsonnet = new Jsonnet();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const { WebScraper } = require("arakoodev/scraper");
const { WebScraper } = require("@arakoodev/edgechains.js/scraper");
const scraper = new WebScraper();
function getPageContent() {
return (url) => {
Expand Down
2 changes: 1 addition & 1 deletion JS/edgechains/examples/summarize-page/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
},
"license": "ISC",
"dependencies": {
"@arakoodev/edgechains.js": "^0.1.23",
"@arakoodev/jsonnet": "^0.2.1",
"arakoodev": "^1.0.10",
"sync-rpc": "^1.3.6",
"zod": "^3.23.8"
},
Expand Down
2 changes: 1 addition & 1 deletion JS/edgechains/examples/summarize-page/readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Video
```
https://drive.google.com/file/d/14t8B_A6MGgDE5E2j3YPM4DnO3r_WOUun/view
https://youtu.be/4gouiNUuBr4
```


Expand Down
2 changes: 1 addition & 1 deletion JS/edgechains/examples/summarize-page/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import { ArakooServer } from "arakoodev/arakooserver";
import { ArakooServer } from "@arakoodev/edgechains.js/arakooserver";
import Jsonnet from "@arakoodev/jsonnet";
//@ts-ignore
import createClient from 'sync-rpc';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const path = require("path");
const { OpenAI } = require("arakoodev/openai");
const { OpenAI } = require("@arakoodev/edgechains.js/openai");
import { z } from "zod";
const Jsonnet = require("@arakoodev/jsonnet");
const jsonnet = new Jsonnet();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

const { WebScraper } = require("arakoodev/scraper")
const { WebScraper } = require("@arakoodev/edgechains.js/scraper")

const scraper = new WebScraper();

Expand Down

0 comments on commit 8daae10

Please sign in to comment.