Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 41 additions & 41 deletions core/embedjs-interfaces/package.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
{
"name": "@llm-tools/embedjs-interfaces",
"version": "0.1.28",
"description": "Interfaces for extending the embedjs ecosystem",
"dependencies": {
"@langchain/core": "^0.3.26",
"debug": "^4.4.0",
"md5": "^2.3.0",
"uuid": "^11.0.3"
},
"type": "module",
"main": "./src/index.js",
"typings": "./src/index.d.ts",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
},
"keywords": [
"llm",
"ai",
"gpt3",
"chain",
"prompt",
"prompt engineering",
"chatgpt",
"machine learning",
"ml",
"anthropic",
"embeddings",
"vectorstores"
],
"author": "K V Adhityan",
"bugs": {
"url": "https://github.com/llm-tools/embedjs/issues"
},
"homepage": "https://github.com/llm-tools/embedjs#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/llm-tools/embedjs.git"
}
}
{
"name": "@llm-tools/embedjs-interfaces",
"version": "0.1.29",
"description": "Interfaces for extending the embedjs ecosystem",
"dependencies": {
"@langchain/core": "^0.3.58",
"debug": "^4.4.1",
"md5": "^2.3.0",
"uuid": "^11.1.0"
},
"type": "module",
"main": "./src/index.js",
"typings": "./src/index.d.ts",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
},
"keywords": [
"llm",
"ai",
"gpt3",
"chain",
"prompt",
"prompt engineering",
"chatgpt",
"machine learning",
"ml",
"anthropic",
"embeddings",
"vectorstores"
],
"author": "K V Adhityan",
"bugs": {
"url": "https://github.com/llm-tools/embedjs/issues"
},
"homepage": "https://github.com/llm-tools/embedjs#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/llm-tools/embedjs.git"
}
}
76 changes: 38 additions & 38 deletions core/embedjs-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
{
"name": "@llm-tools/embedjs-utils",
"version": "0.1.28",
"description": "Useful util functions when extending the embedjs ecosystem",
"dependencies": {
"@llm-tools/embedjs-interfaces": "0.1.28"
},
"type": "module",
"main": "./src/index.js",
"typings": "./src/index.d.ts",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
},
"keywords": [
"llm",
"ai",
"gpt3",
"chain",
"prompt",
"prompt engineering",
"chatgpt",
"machine learning",
"ml",
"anthropic",
"embeddings",
"vectorstores"
],
"author": "K V Adhityan",
"bugs": {
"url": "https://github.com/llm-tools/embedjs/issues"
},
"homepage": "https://github.com/llm-tools/embedjs#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/llm-tools/embedjs.git"
}
}
{
"name": "@llm-tools/embedjs-utils",
"version": "0.1.29",
"description": "Useful util functions when extending the embedjs ecosystem",
"dependencies": {
"@llm-tools/embedjs-interfaces": "0.1.29"
},
"type": "module",
"main": "./src/index.js",
"typings": "./src/index.d.ts",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
},
"keywords": [
"llm",
"ai",
"gpt3",
"chain",
"prompt",
"prompt engineering",
"chatgpt",
"machine learning",
"ml",
"anthropic",
"embeddings",
"vectorstores"
],
"author": "K V Adhityan",
"bugs": {
"url": "https://github.com/llm-tools/embedjs/issues"
},
"homepage": "https://github.com/llm-tools/embedjs#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/llm-tools/embedjs.git"
}
}
98 changes: 49 additions & 49 deletions core/embedjs/package.json
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
{
"type": "module",
"name": "@llm-tools/embedjs",
"version": "0.1.28",
"description": "A NodeJS RAG framework to easily work with LLMs and custom datasets",
"dependencies": {
"@langchain/textsplitters": "^0.1.0",
"@llm-tools/embedjs-interfaces": "0.1.28",
"@llm-tools/embedjs-utils": "0.1.28",
"debug": "^4.4.0",
"langchain": "^0.3.8",
"md5": "^2.3.0",
"mime": "^4.0.6",
"stream-mime-type": "^2.0.0"
},
"devDependencies": {
"@types/debug": "^4.1.12",
"@types/md5": "^2.3.5",
"@types/node": "^22.10.2"
},
"main": "./src/index.js",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
},
"keywords": [
"llm",
"ai",
"gpt3",
"chain",
"prompt",
"prompt engineering",
"chatgpt",
"machine learning",
"ml",
"anthropic",
"embeddings",
"vectorstores"
],
"author": "K V Adhityan",
"bugs": {
"url": "https://github.com/llm-tools/embedjs/issues"
},
"homepage": "https://github.com/llm-tools/embedjs#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/llm-tools/embedjs.git"
}
}
{
"type": "module",
"name": "@llm-tools/embedjs",
"version": "0.1.29",
"description": "A NodeJS RAG framework to easily work with LLMs and custom datasets",
"dependencies": {
"@langchain/textsplitters": "^0.1.0",
"@llm-tools/embedjs-interfaces": "0.1.29",
"@llm-tools/embedjs-utils": "0.1.29",
"debug": "^4.4.1",
"langchain": "^0.3.28",
"md5": "^2.3.0",
"mime": "^4.0.7",
"stream-mime-type": "^2.0.0"
},
"devDependencies": {
"@types/debug": "^4.1.12",
"@types/md5": "^2.3.5",
"@types/node": "^24.0.3"
},
"main": "./src/index.js",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
},
"keywords": [
"llm",
"ai",
"gpt3",
"chain",
"prompt",
"prompt engineering",
"chatgpt",
"machine learning",
"ml",
"anthropic",
"embeddings",
"vectorstores"
],
"author": "K V Adhityan",
"bugs": {
"url": "https://github.com/llm-tools/embedjs/issues"
},
"homepage": "https://github.com/llm-tools/embedjs#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/llm-tools/embedjs.git"
}
}
78 changes: 39 additions & 39 deletions databases/embedjs-astra/package.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
{
"name": "@llm-tools/embedjs-astradb",
"version": "0.1.28",
"description": "Add AstraDB support to embedjs",
"dependencies": {
"@datastax/astra-db-ts": "^1.5.0",
"@llm-tools/embedjs-interfaces": "0.1.28",
"debug": "^4.4.0"
},
"type": "module",
"main": "./src/index.js",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
},
"keywords": [
"llm",
"ai",
"gpt3",
"chain",
"prompt",
"prompt engineering",
"chatgpt",
"machine learning",
"ml",
"anthropic",
"embeddings",
"vectorstores"
],
"author": "K V Adhityan",
"bugs": {
"url": "https://github.com/llm-tools/embedjs/issues"
},
"homepage": "https://github.com/llm-tools/embedjs#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/llm-tools/embedjs.git"
}
}
{
"name": "@llm-tools/embedjs-astradb",
"version": "0.1.29",
"description": "Add AstraDB support to embedjs",
"dependencies": {
"@datastax/astra-db-ts": "^2.0.1",
"@llm-tools/embedjs-interfaces": "0.1.29",
"debug": "^4.4.1"
},
"type": "module",
"main": "./src/index.js",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
},
"keywords": [
"llm",
"ai",
"gpt3",
"chain",
"prompt",
"prompt engineering",
"chatgpt",
"machine learning",
"ml",
"anthropic",
"embeddings",
"vectorstores"
],
"author": "K V Adhityan",
"bugs": {
"url": "https://github.com/llm-tools/embedjs/issues"
},
"homepage": "https://github.com/llm-tools/embedjs#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/llm-tools/embedjs.git"
}
}
7 changes: 3 additions & 4 deletions databases/embedjs-astra/src/astra-db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,22 @@ export class AstraDb implements BaseVectorDatabase {
endpoint,
apiKey,
collectionName,
namespace = 'default_keyspace',
keyspace = 'default_keyspace',
}: {
endpoint: string;
apiKey: string;
namespace?: string;
keyspace?: string;
collectionName: string;
}) {
const client = new DataAPIClient(apiKey);
this.db = client.db(endpoint, { namespace });
this.db = client.db(endpoint, { keyspace });
this.collectionName = collectionName;
}

async init({ dimensions }: { dimensions: number }): Promise<void> {
this.dimensions = dimensions;
this.collection = await this.db.createCollection(this.collectionName, {
vector: { dimension: dimensions, metric: 'cosine' },
checkExists: false,
});
}

Expand Down
Loading
Loading