total: 34, pass: 29, fail: 5
fix typo in ragit-server
In order to iterate all the uid prefixes, the range has to be `0..256`,
but it was `0..255`. It was a fatal typo.
elapsed time: 43,759 ms
elapsed time: 94,473 ms
elapsed time: 11,681 ms
elapsed time: 248,778 ms
elapsed time: 135,470 ms
elapsed time: 9,965 ms
elapsed time: 351,165 ms
elapsed time: 36,112 ms
elapsed time: 243,398 ms
elapsed time: 7,367 ms
elapsed time: 59,700 ms
tfidf result on term 'crate 2 into stage load' is not close enough. error: `approximation[0] not in answer`, answer: ['1769f56725404827bcfa5b9098de8615930a113c7e1e262c0000000100000201', '2cb7c5d098cd9a57d4bafa02ee5840d7f99e78e96f67aa54000000010000020e', '8f32e9cbf70355959ad37eb512891b58cf7c92f7843cf0320000000100000202', '73f3b15a8d584c9252dc807e7d72f355852318257b12dac60000000100000200', 'ef45d815adb0848b8570d42062d870ec007da91cb817d5a40000000100000201', 'b4daf5642eabfaff39f0f8e908f9649af7560771a5f1f1db0000000100000200', '7af8f806193600bc6b6660c3152b08a1169e07cda1f685d80000000100000202', 'aa0f90901135b5975e581fb7252848a878657218e0aa977a0000000100000202', '0df6e45ba72b909476e0da4cc2729c887507df9ce9cc08640000000100000201', '7304fb09673f0e260670bfa74d73f584b09bb030b70a92480000000100000200'], approximation: ['86c710b60c25d2eba15531a3a6d1992dfc15220faf0b26820000000100000200', '1769f56725404827bcfa5b9098de8615930a113c7e1e262c0000000100000201', '57bc776b6c92573403d1f2bc98c1e7500fc23b2e6191135c0000000100000216', '964519d4e91635411905103bc03a40da9c6867e443bde89c0000000100000207', '6c9cd5beb2d6368f7f12477be22cf25ee127074a0a5d47110000000100000200', 'c1b08c124494c8ce9bd7d55df887151b30496aa4888f83370000000100000200', 'eb00b292fd50190e94a68e2b66bb8b3e40ed7388543f92200000000100000200', '393dc8f8a10156b5ec686ae438b883ea8a56dfbe67fa49a60000000100000200', '774dbc28ac14c24848625e6d76b8f694df61a757c35e7c010000000100000203', '39ff4225258013b524245a26e905360d147b40669928515c0000000100000210']
Traceback (most recent call last):
File "/Users/baehyunsol/Documents/Rust/ragit/tests/ii.py", line 91, in ii
raise AssertionError(f"approximation[{i}] not in answer")
AssertionError: approximation[0] not in answer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/baehyunsol/Documents/Rust/ragit/tests/tests.py", line 358, in <module>
test()
File "/Users/baehyunsol/Documents/Rust/ragit/tests/ii.py", line 104, in ii
raise AssertionError(f"tfidf result on term '{term}' is not close enough. error: `{e}`, answer: {answer}, approximation: {approximation}")
AssertionError: tfidf result on term 'crate 2 into stage load' is not close enough. error: `approximation[0] not in answer`, answer: ['1769f56725404827bcfa5b9098de8615930a113c7e1e262c0000000100000201', '2cb7c5d098cd9a57d4bafa02ee5840d7f99e78e96f67aa54000000010000020e', '8f32e9cbf70355959ad37eb512891b58cf7c92f7843cf0320000000100000202', '73f3b15a8d584c9252dc807e7d72f355852318257b12dac60000000100000200', 'ef45d815adb0848b8570d42062d870ec007da91cb817d5a40000000100000201', 'b4daf5642eabfaff39f0f8e908f9649af7560771a5f1f1db0000000100000200', '7af8f806193600bc6b6660c3152b08a1169e07cda1f685d80000000100000202', 'aa0f90901135b5975e581fb7252848a878657218e0aa977a0000000100000202', '0df6e45ba72b909476e0da4cc2729c887507df9ce9cc08640000000100000201', '7304fb09673f0e260670bfa74d73f584b09bb030b70a92480000000100000200'], approximation: ['86c710b60c25d2eba15531a3a6d1992dfc15220faf0b26820000000100000200', '1769f56725404827bcfa5b9098de8615930a113c7e1e262c0000000100000201', '57bc776b6c92573403d1f2bc98c1e7500fc23b2e6191135c0000000100000216', '964519d4e91635411905103bc03a40da9c6867e443bde89c0000000100000207', '6c9cd5beb2d6368f7f12477be22cf25ee127074a0a5d47110000000100000200', 'c1b08c124494c8ce9bd7d55df887151b30496aa4888f83370000000100000200', 'eb00b292fd50190e94a68e2b66bb8b3e40ed7388543f92200000000100000200', '393dc8f8a10156b5ec686ae438b883ea8a56dfbe67fa49a60000000100000200', '774dbc28ac14c24848625e6d76b8f694df61a757c35e7c010000000100000203', '39ff4225258013b524245a26e905360d147b40669928515c0000000100000210']
elapsed time: 31,973 ms
elapsed time: 7,469 ms
elapsed time: 13,956 ms
elapsed time: 7,603 ms
elapsed time: 21,794 ms
elapsed time: 25,899 ms
elapsed time: 47,398 ms
elapsed time: 85,992 ms
elapsed time: 57,015 ms
elapsed time: 42,286 ms
Command '['cargo', 'run', '--release', '--', 'check', '--recover']' returned non-zero exit status 1.
Traceback (most recent call last):
File "/Users/baehyunsol/Documents/Rust/ragit/tests/tests.py", line 358, in <module>
test()
File "/Users/baehyunsol/Documents/Rust/ragit/tests/tests.py", line 312, in <lambda>
("end_to_end gpt-4o-mini", lambda: end_to_end(test_model="gpt-4o-mini")),
File "/Users/baehyunsol/Documents/Rust/ragit/tests/end_to_end.py", line 88, in end_to_end
cargo_run(["check", "--recover"])
File "/Users/baehyunsol/Documents/Rust/ragit/tests/utils.py", line 61, in cargo_run
result = subprocess.run(args, **kwargs)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cargo', 'run', '--release', '--', 'check', '--recover']' returned non-zero exit status 1.
elapsed time: 11,352 ms
elapsed time: 66,780 ms
elapsed time: 108,965 ms
elapsed time: 5,438 ms
elapsed time: 6,198 ms
elapsed time: 16,013 ms
elapsed time: 13,705 ms
elapsed time: 7,252 ms
elapsed time: 17,909 ms
elapsed time: 6,459 ms
Command '['cargo', 'run', '--release', '--', '--model', 'llama3.2-11b-groq', '--input', 'hello_world.pdl']' returned non-zero exit status 101.
Traceback (most recent call last):
File "/Users/baehyunsol/Documents/Rust/ragit/tests/tests.py", line 358, in <module>
test()
File "/Users/baehyunsol/Documents/Rust/ragit/tests/tests.py", line 327, in <lambda>
("ragit_api llama3.2-11b-groq", lambda: ragit_api(test_model="llama3.2-11b-groq")),
File "/Users/baehyunsol/Documents/Rust/ragit/tests/ragit_api.py", line 11, in ragit_api
subprocess.run(["cargo", "run", "--release", '--', '--model', test_model, '--input', 'hello_world.pdl'], check=True)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cargo', 'run', '--release', '--', '--model', 'llama3.2-11b-groq', '--input', 'hello_world.pdl']' returned non-zero exit status 101.
elapsed time: 458 ms
Command '['cargo', 'run', '--release', '--', '--model', 'command-r', '--input', 'hello_world.pdl']' returned non-zero exit status 101.
Traceback (most recent call last):
File "/Users/baehyunsol/Documents/Rust/ragit/tests/tests.py", line 358, in <module>
test()
File "/Users/baehyunsol/Documents/Rust/ragit/tests/tests.py", line 328, in <lambda>
("ragit_api command-r", lambda: ragit_api(test_model="command-r")),
File "/Users/baehyunsol/Documents/Rust/ragit/tests/ragit_api.py", line 11, in ragit_api
subprocess.run(["cargo", "run", "--release", '--', '--model', test_model, '--input', 'hello_world.pdl'], check=True)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cargo', 'run', '--release', '--', '--model', 'command-r', '--input', 'hello_world.pdl']' returned non-zero exit status 101.
elapsed time: 5,364 ms
Command '['cargo', 'run', '--release', '--', '--model', 'phi-4-14b-ollama', '--input', 'hello_world.pdl']' returned non-zero exit status 101.
Traceback (most recent call last):
File "/Users/baehyunsol/Documents/Rust/ragit/tests/tests.py", line 358, in <module>
test()
File "/Users/baehyunsol/Documents/Rust/ragit/tests/tests.py", line 329, in <lambda>
("ragit_api phi-4-14b-ollama", lambda: ragit_api(test_model="phi-4-14b-ollama")),
File "/Users/baehyunsol/Documents/Rust/ragit/tests/ragit_api.py", line 11, in ragit_api
subprocess.run(["cargo", "run", "--release", '--', '--model', test_model, '--input', 'hello_world.pdl'], check=True)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cargo', 'run', '--release', '--', '--model', 'phi-4-14b-ollama', '--input', 'hello_world.pdl']' returned non-zero exit status 101.
elapsed time: 149,321 ms