You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The large embedded model constructor seems to be been fixed and this is now included in my project for build 0.71
However clearing vector and lmdb caches (deleting) and restart server, switching to the large declaration for gpt embedded model resulted in problems. A number of issues is happening. The code below works with small text embedded gpt model but switch this to large and add a single URL or multiple and it fails with sizing dimension issues immediately
converseKarl
changed the title
Large embeddings fail with Lance / LMDB -
Large embeddings fail with Add WebLoader / Lance / LMDB - Dimension Sizing Problem
Apr 28, 2024
Sorry I am on vacation which affects how much time I have to look into all the issues. Back next week and will take a look at several of the open issues.
So I tested the new OpenAi3LargeEmbeddings with LanceDb and could not reproduce the error. Did you delete the whole database folder at resolved path ./db and then restart when you changed the model?
i can confirm its working, you're right, clearing out the indexes, and removing the db lance vector folder and rebuild resolved the issue. So you can mark this issue as closed
The large embedded model constructor seems to be been fixed and this is now included in my project for build 0.71
However clearing vector and lmdb caches (deleting) and restart server, switching to the large declaration for gpt embedded model resulted in problems. A number of issues is happening. The code below works with small text embedded gpt model but switch this to large and add a single URL or multiple and it fails with sizing dimension issues immediately
Code
ragApplication = await ragApplicationBuilder
.setTemperature(0.2)
.setEmbeddingModel(new OpenAi3LargeEmbeddings())
.setVectorDb(new LanceDb({ path: './db' }))
.setCache(new LmdbCache({ path: './llmcache'}))
.build();
1|platform | Error adding URL: Error: Invalid argument error: Values length 13824 is less than the length (3072) multiplied by the value size (3072) for FixedSizeList(Field { name: "item", data_type: Float32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }, 3072)
1|platform | at LocalTable.add (/opt/bitnami/projects/platform/node_modules/vectordb/dist/index.js:209:14)
1|platform | at async LanceDb.insertChunks (file:///opt/bitnami/projects/platform/htdocs/node_modules/@llm-tools/embedjs/dist/vectorDb/lance-db.js:61:9)
1|platform | at async RAGApplication.batchLoadChunks (file:///opt/bitnami/projects/platform/htdocs/node_modules/@llm-tools/embedjs/dist/core/rag-application.js:130:23)
The text was updated successfully, but these errors were encountered: