Hi!
I am having the following problem with awadb_client.Search. When I include the meta_filter in the call to search, it will report the error. Errors are reported at irregular intervals and there may be an underlying parallelism issue. Here is the code I am using to test.
import awadb
# 1. Initialize awadb client!
awadb_client = awadb.Client()
# 2. Create table!
awadb_client.Create("testdb")
# 3. Add docs to the table. Can also update and delete the doc!
awadb_client.Add([{'name':'jim'}, {'age':39}, {'desc':'hello'}, {'vec':[1, 3.5, 3]}])
awadb_client.Add([{'name':'vincent'}, {'age':28}, {'desc':'world'}, {'vec':[1, 3.4, 2]}])
awadb_client.Add([{'name':'david'}, {'age':45}, {'desc':'hi'}, {'vec':[1, 2.4, 4]}])
awadb_client.Add([{'name':'tom'}, {'age':25}, {'desc':'dolly'}, {'vec':[1.3, 2.9, 8.9]}])
# 4. Search by specified vector query and the most TopK similar result
results = awadb_client.Search("hello", 3, meta_filter={"max_age" : 30})
# Output the results
print(results)
Here are a few typical error messages I get. (It might have race conditions resulting from unsafe access to critical sections)
- malloc error
Python(52184,0x1e12fe080) malloc: *** error for object 0x200000003: pointer being freed was not allocated
Python(52184,0x1e12fe080) malloc: *** set a breakpoint in malloc_error_break to debug
[1] 52184 abort /opt/homebrew/bin/python3
/opt/homebrew/Cellar/python@3.11/3.11.4/Frameworks/Python.framework/Versions/3.11/lib/python3.11/multiprocessing/resource_tracker.py:224: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d '
- Segmentation fault (noticed that it actually printed the correct output)
[{'ResultSize': 2, 'ResultItems': [{'vec': [1.0, 3.4000000953674316, 2.0], 'name': 'vincent', 'age': 28, 'desc': 'world'}, {'vec': [1.2999999523162842, 2.9000000953674316, 8.899999618530273], 'name': 'tom', 'age': 25, 'desc': 'dolly'}]}]
[1] 52496 segmentation fault /opt/homebrew/bin/python3
- bus error
/opt/homebrew/Cellar/python@3.11/3.11.4/Frameworks/Python.framework/Versions/3.11/lib/python3.11/multiprocessing/resource_tracker.py:224: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d '
[1] 52640 bus error /opt/homebrew/bin/python3
Hi!
I am having the following problem with
awadb_client.Search. When I include themeta_filterin the call tosearch, it will report the error. Errors are reported at irregular intervals and there may be an underlying parallelism issue. Here is the code I am using to test.Here are a few typical error messages I get. (It might have race conditions resulting from unsafe access to critical sections)