-
Notifications
You must be signed in to change notification settings - Fork 133
Don't use 32 bit for big objects error #676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@mirkancal Do you have a calling stack? |
@greenrobot it's a simple app and all i see this warning below. Is there any example app that I can try vector search? Connecting to VM Service at ws://127.0.0.1:9753/1sYAGR20GYs=/ws
Connected to the VM Service.
[+22462 ms] [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: StorageException: Do not use vector-based find on 32 bit systems with big objects (OBX_ERROR code 10098)
#0 ObjectBoxNativeError.throwMapped (package:objectbox/src/native/bindings/helpers.dart:99:11)
#1 throwLatestNativeError (package:objectbox/src/native/bindings/helpers.dart:54:48)
#2 checkObxPtr (package:objectbox/src/native/bindings/helpers.dart:31:5)
#3 Query.findWithScores (package:objectbox/src/native/query/query.dart:1185:23)
#4 BaseObjectBoxVectorStore.similaritySearchByVectorWithScores (package:langchain_community/src/vector_stores/objectbox/base_objectbox.dart:110:50)
#5 VectorStore.similaritySearchWithScores (package:langchain_core/src/vector_stores/base.dart:120:12)
<asynchronous suspension>
#6 VectorStore.similaritySearch (package:langchain_core/src/vector_stores/base.dart:81:28)
<asynchronous suspension>
#7 Runnable.stream (package:langchain_core/src/runnables/runnable.dart:2<…> |
Edited original post to add this was run on an iPhone simulator. Which is also where I'll try to reproduce. |
Tested the linked app on an iOS 17 (so not 18) simulator on an Intel Mac and it works as expected. @mirkancal What Mac and macOS version are you using to run this? As for vector search, there is a simple example available. See also the blog post. I'm not aware of a Retrieval-augmented generation (RAG) demo app though. |
@greenrobot-team thank you for checking this out. I'm on apple silicone, specifically 16inch - m1 max with with 15.0.1 |
Thanks! Actually I overlooked that this happens when running a query, not when creating a store. I'll have another look. |
I managed to reproduce the issue in the gem_notes using both a simulator (iPhone 16 Pro) and a real device (iPhone 12), and with OpenAI embeddings (1536 dimensions) and Google AI embeddings (768 dimensions). |
Getting the same issue here on both simulator and physical iOS devices: [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: StorageException: Do not use vector-based find on 32 bit systems with big objects (OBX_ERROR code 10098) Checked all build settings in XCode and it is excluding 32 bit. Running OpenAI 1536 and tried Gemini 768, still same issue. Android works perfectly well. Running on MacBook Air M2 8GB Offending code: @entity() @entity() Future<List?> searchByEmbedding( final results = query.findWithScores(); final double scoreThreshold = 0.3; List peopleDataList = results.map((result) { FFAppState().peopleData = peopleDataList; |
Thanks for the details! I could reproduce this and a fix is completed and will be included in the next release. |
Release To update to this release, for a Flutter project run |
I confirm that it's fixed. Thanks! |
Is there an existing issue?
Build info
flutter --version
ordart --version
]Steps to reproduce
TODO Tell us exactly how to reproduce the problem.
There's an example app throws that error: https://github.com/alfredobs97/gem_notes
Expected behavior
TODO Tell us what you expect to happen.
Actual behavior
TODO Tell us what actually happens.
Code
TODO Add a code example to help us reproduce your problem.
Code
[Paste your code here]
Logs, stack traces
TODO Add relevant logs, a stack trace or crash report.
Logs
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: StorageException: Do not use vector-based find on 32 bit systems with big objects (OBX_ERROR code 10098)
I'll add more logs and clean up the description, trying few things at the moment. it was discussed on langchain.dart discord and also under this issue: #94 (comment)
The text was updated successfully, but these errors were encountered: