Skip to content

Commit

Permalink
chore: addressed lmdb conversation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
adhityan committed Dec 12, 2024
1 parent 0ee88b5 commit 9b071e0
Show file tree
Hide file tree
Showing 40 changed files with 2,661 additions and 771 deletions.
4 changes: 2 additions & 2 deletions core/embedjs-interfaces/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "0.1.23",
"description": "Interfaces for extending the embedjs ecosystem",
"dependencies": {
"@langchain/core": "^0.3.19",
"debug": "^4.3.7",
"@langchain/core": "^0.3.23",
"debug": "^4.4.0",
"md5": "^2.3.0",
"uuid": "^11.0.3"
},
Expand Down
6 changes: 3 additions & 3 deletions core/embedjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
"@langchain/textsplitters": "^0.1.0",
"@llm-tools/embedjs-interfaces": "0.1.23",
"@llm-tools/embedjs-utils": "0.1.23",
"debug": "^4.3.7",
"langchain": "^0.3.6",
"debug": "^4.4.0",
"langchain": "^0.3.7",
"md5": "^2.3.0",
"mime": "^4.0.4",
"stream-mime-type": "^2.0.0"
},
"devDependencies": {
"@types/debug": "^4.1.12",
"@types/md5": "^2.3.5",
"@types/node": "^22.10.0"
"@types/node": "^22.10.2"
},
"main": "./src/index.js",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion databases/embedjs-astra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dependencies": {
"@datastax/astra-db-ts": "^1.5.0",
"@llm-tools/embedjs-interfaces": "0.1.23",
"debug": "^4.3.7"
"debug": "^4.4.0"
},
"type": "module",
"main": "./src/index.js",
Expand Down
2 changes: 1 addition & 1 deletion databases/embedjs-cosmos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dependencies": {
"@azure/cosmos": "^4.2.0",
"@llm-tools/embedjs-interfaces": "0.1.23",
"debug": "^4.3.7"
"debug": "^4.4.0"
},
"type": "module",
"main": "./src/index.js",
Expand Down
2 changes: 1 addition & 1 deletion databases/embedjs-hnswlib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Add HNSWLib support to embedjs",
"dependencies": {
"@llm-tools/embedjs-interfaces": "0.1.23",
"debug": "^4.3.7",
"debug": "^4.4.0",
"hnswlib-node": "^3.0.0"
},
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions databases/embedjs-lancedb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"version": "0.1.23",
"description": "Add LanceDb support to embedjs",
"dependencies": {
"@lancedb/lancedb": "^0.13.0",
"@lancedb/lancedb": "^0.14.0",
"@llm-tools/embedjs-interfaces": "0.1.23",
"compute-cosine-similarity": "^1.1.0",
"debug": "^4.3.7"
"debug": "^4.4.0"
},
"type": "module",
"main": "./src/index.js",
Expand Down
2 changes: 1 addition & 1 deletion databases/embedjs-libsql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"@libsql/client": "^0.14.0",
"@llm-tools/embedjs-interfaces": "0.1.23",
"@llm-tools/embedjs-utils": "0.1.23",
"debug": "^4.3.7"
"debug": "^4.4.0"
},
"type": "module",
"main": "./src/index.js",
Expand Down
4 changes: 2 additions & 2 deletions databases/embedjs-lmdb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "Add LMDB support to embedjs",
"dependencies": {
"@llm-tools/embedjs-interfaces": "0.1.23",
"debug": "^4.3.7",
"lmdb": "^3.1.6"
"debug": "^4.4.0",
"lmdb": "^3.2.0"
},
"type": "module",
"main": "./src/index.js",
Expand Down
2 changes: 1 addition & 1 deletion databases/embedjs-lmdb/src/lmdb-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class LmdbStore implements BaseStore {
}

async addEntryToConversation(conversationId: string, entry: Message): Promise<void> {
const conversation = await this.getConversation(`conversation_${conversationId}`);
const conversation = await this.getConversation(conversationId);
conversation.entries.push(entry);

await this.database.put(`conversation_${conversationId}`, conversation);
Expand Down
4 changes: 2 additions & 2 deletions databases/embedjs-mongodb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "Add MongoDB support to embedjs",
"dependencies": {
"@llm-tools/embedjs-interfaces": "0.1.23",
"debug": "^4.3.7",
"mongodb": "^6.11.0"
"debug": "^4.4.0",
"mongodb": "^6.12.0"
},
"type": "module",
"main": "./src/index.js",
Expand Down
2 changes: 1 addition & 1 deletion databases/embedjs-pinecone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dependencies": {
"@llm-tools/embedjs-interfaces": "0.1.23",
"@pinecone-database/pinecone": "^4.0.0",
"debug": "^4.3.7"
"debug": "^4.4.0"
},
"type": "module",
"main": "./src/index.js",
Expand Down
2 changes: 1 addition & 1 deletion databases/embedjs-qdrant/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dependencies": {
"@llm-tools/embedjs-interfaces": "0.1.23",
"@qdrant/js-client-rest": "^1.12.0",
"debug": "^4.3.7",
"debug": "^4.4.0",
"uuid": "^11.0.3"
},
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion databases/embedjs-weaviate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dependencies": {
"@llm-tools/embedjs-interfaces": "0.1.23",
"compute-cosine-similarity": "^1.1.0",
"debug": "^4.3.7",
"debug": "^4.4.0",
"weaviate-ts-client": "^2.2.0"
},
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion examples/confluence/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.1",
"type": "module",
"dependencies": {
"dotenv": "^16.4.5"
"dotenv": "^16.4.7"
},
"scripts": {
"start": "nx run examples-confluence:serve"
Expand Down
2 changes: 1 addition & 1 deletion examples/dynamic/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/dynamic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.1",
"type": "module",
"dependencies": {
"dotenv": "^16.4.5"
"dotenv": "^16.4.7"
},
"scripts": {
"start": "nx run examples-dynamic:serve"
Expand Down
2 changes: 1 addition & 1 deletion examples/libsql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.1",
"type": "module",
"dependencies": {
"dotenv": "^16.4.5"
"dotenv": "^16.4.7"
},
"scripts": {
"start": "nx run examples-libsql:serve"
Expand Down
2 changes: 1 addition & 1 deletion examples/markdown/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.1",
"type": "module",
"dependencies": {
"dotenv": "^16.4.5"
"dotenv": "^16.4.7"
},
"scripts": {
"start": "nx run examples-markdown:serve"
Expand Down
2 changes: 1 addition & 1 deletion examples/pinecone/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/pinecone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.1",
"type": "module",
"dependencies": {
"dotenv": "^16.4.5"
"dotenv": "^16.4.7"
},
"scripts": {
"start": "nx run examples-pinecone:serve"
Expand Down
2 changes: 1 addition & 1 deletion examples/simple/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.1",
"type": "module",
"dependencies": {
"dotenv": "^16.4.5"
"dotenv": "^16.4.7"
},
"scripts": {
"start": "nx run examples-simple:serve"
Expand Down
2 changes: 1 addition & 1 deletion loaders/embedjs-loader-confluence/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"@llm-tools/embedjs-interfaces": "0.1.23",
"@llm-tools/embedjs-loader-web": "0.1.23",
"confluence.js": "^1.7.4",
"debug": "^4.3.7",
"debug": "^4.4.0",
"md5": "^2.3.0"
},
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion loaders/embedjs-loader-csv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"@llm-tools/embedjs-interfaces": "0.1.23",
"@llm-tools/embedjs-utils": "0.1.23",
"csv-parse": "^5.6.0",
"debug": "^4.3.7",
"debug": "^4.4.0",
"md5": "^2.3.0"
},
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion loaders/embedjs-loader-markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dependencies": {
"@llm-tools/embedjs-interfaces": "0.1.23",
"@llm-tools/embedjs-loader-web": "0.1.23",
"debug": "^4.3.7",
"debug": "^4.4.0",
"md5": "^2.3.0",
"micromark": "^4.0.1",
"micromark-extension-gfm": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion loaders/embedjs-loader-sitemap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dependencies": {
"@llm-tools/embedjs-interfaces": "0.1.23",
"@llm-tools/embedjs-loader-web": "0.1.23",
"debug": "^4.3.7",
"debug": "^4.4.0",
"md5": "^2.3.0",
"sitemapper": "^3.2.18"
},
Expand Down
2 changes: 1 addition & 1 deletion loaders/embedjs-loader-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"@langchain/textsplitters": "^0.1.0",
"@llm-tools/embedjs-interfaces": "0.1.23",
"@llm-tools/embedjs-utils": "0.1.23",
"debug": "^4.3.7",
"debug": "^4.4.0",
"html-to-text": "^9.0.5",
"md5": "^2.3.0"
},
Expand Down
2 changes: 1 addition & 1 deletion loaders/embedjs-loader-xml/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "XML loader for embedjs",
"dependencies": {
"@llm-tools/embedjs-interfaces": "0.1.23",
"debug": "^4.3.7",
"debug": "^4.4.0",
"fast-xml-parser": "^4.5.0",
"md5": "^2.3.0"
},
Expand Down
2 changes: 1 addition & 1 deletion loaders/embedjs-loader-youtube/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"@langchain/textsplitters": "^0.1.0",
"@llm-tools/embedjs-interfaces": "0.1.23",
"@llm-tools/embedjs-utils": "0.1.23",
"debug": "^4.3.7",
"debug": "^4.4.0",
"md5": "^2.3.0",
"usetube": "^2.2.7",
"youtube-transcript": "^1.2.1"
Expand Down
6 changes: 3 additions & 3 deletions models/embedjs-anthropic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"version": "0.1.23",
"description": "Enable usage of Anthropic models with embedjs",
"dependencies": {
"@langchain/anthropic": "^0.3.8",
"@langchain/core": "^0.3.19",
"@langchain/anthropic": "^0.3.9",
"@langchain/core": "^0.3.23",
"@llm-tools/embedjs-interfaces": "0.1.23",
"debug": "^4.3.7"
"debug": "^4.4.0"
},
"type": "module",
"main": "./src/index.js",
Expand Down
2 changes: 1 addition & 1 deletion models/embedjs-cohere/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dependencies": {
"@langchain/cohere": "^0.3.1",
"@llm-tools/embedjs-interfaces": "0.1.23",
"cohere-ai": "^7.14.0"
"cohere-ai": "^7.15.0"
},
"type": "module",
"main": "./src/index.js",
Expand Down
6 changes: 3 additions & 3 deletions models/embedjs-huggingface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"description": "Enable usage of HuggingFace models with embedjs",
"dependencies": {
"@huggingface/inference": "^2.8.1",
"@langchain/community": "^0.3.16",
"@langchain/core": "^0.3.19",
"@langchain/community": "^0.3.18",
"@langchain/core": "^0.3.23",
"@llm-tools/embedjs-interfaces": "0.1.23",
"debug": "^4.3.7"
"debug": "^4.4.0"
},
"type": "module",
"main": "./src/index.js",
Expand Down
8 changes: 4 additions & 4 deletions models/embedjs-llama-cpp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"version": "0.1.23",
"description": "Enable usage of Node-Llama-Cpp with embedjs",
"dependencies": {
"@langchain/community": "^0.3.16",
"@langchain/core": "^0.3.19",
"@langchain/community": "^0.3.18",
"@langchain/core": "^0.3.23",
"@llm-tools/embedjs-interfaces": "0.1.23",
"debug": "^4.3.7",
"node-llama-cpp": "^3.2.0"
"debug": "^4.4.0",
"node-llama-cpp": "^3.3.1"
},
"type": "module",
"main": "./src/index.js",
Expand Down
4 changes: 2 additions & 2 deletions models/embedjs-mistral/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"version": "0.1.23",
"description": "Enable usage of Mistral models with embedjs",
"dependencies": {
"@langchain/core": "^0.3.19",
"@langchain/core": "^0.3.23",
"@langchain/mistralai": "^0.2.0",
"@llm-tools/embedjs-interfaces": "0.1.23",
"debug": "^4.3.7"
"debug": "^4.4.0"
},
"type": "module",
"main": "./src/index.js",
Expand Down
6 changes: 3 additions & 3 deletions models/embedjs-ollama/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"version": "0.1.23",
"description": "Enable usage of Ollama with embedjs",
"dependencies": {
"@langchain/core": "^0.3.19",
"@langchain/ollama": "^0.1.2",
"@langchain/core": "^0.3.23",
"@langchain/ollama": "^0.1.3",
"@llm-tools/embedjs-interfaces": "0.1.23",
"debug": "^4.3.7"
"debug": "^4.4.0"
},
"type": "module",
"main": "./src/index.js",
Expand Down
4 changes: 2 additions & 2 deletions models/embedjs-openai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"version": "0.1.23",
"description": "Enable usage of OpenAI models with embedjs",
"dependencies": {
"@langchain/core": "^0.3.19",
"@langchain/core": "^0.3.23",
"@langchain/openai": "^0.3.14",
"@llm-tools/embedjs-interfaces": "0.1.23",
"debug": "^4.3.7"
"debug": "^4.4.0"
},
"type": "module",
"main": "./src/index.js",
Expand Down
4 changes: 2 additions & 2 deletions models/embedjs-vertexai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"version": "0.1.23",
"description": "Enable usage of VertexAI models with embedjs",
"dependencies": {
"@langchain/core": "^0.3.19",
"@langchain/core": "^0.3.23",
"@langchain/google-vertexai": "^0.1.3",
"@llm-tools/embedjs-interfaces": "0.1.23",
"debug": "^4.3.7"
"debug": "^4.4.0"
},
"type": "module",
"main": "./src/index.js",
Expand Down
Loading

0 comments on commit 9b071e0

Please sign in to comment.