total: 36, pass: 28, fail: 8
fix `get_chunks_of_file`
`uid::load_from_file` was implemented very long ago, but
`get_chunks_of_file` wasn't using the function.
elapsed time: 116,485 ms
elapsed time: 27,294 ms
elapsed time: 2,918 ms
elapsed time: 1,055,707 ms
elapsed time: 642 ms
#####################
### path: command ###
/home/baehyunsol/Documents/ragit/__tmp_b8d5ec9e0d7e76d4: rag clone http://ragit.baehyunsol.com/sample/git
### returncode ###
1
### stdout ###
### stderr ###
Finished `release` profile [optimized] target(s) in 0.07s
Running `/home/baehyunsol/Documents/ragit/target/release/rag clone 'http://ragit.baehyunsol.com/sample/git'`
CloneRequestError { code: Some(404), url: "http://ragit.baehyunsol.com:41127/sample/git/archive-list/" }
#####################
### path: command ###
/home/baehyunsol/Documents/ragit/__tmp_b8d5ec9e0d7e76d4: rag clone http://ragit.baehyunsol.com/sample/ragit
### returncode ###
1
### stdout ###
### stderr ###
Finished `release` profile [optimized] target(s) in 0.06s
Running `/home/baehyunsol/Documents/ragit/target/release/rag clone 'http://ragit.baehyunsol.com/sample/ragit'`
CloneRequestError { code: Some(404), url: "http://ragit.baehyunsol.com:41127/sample/ragit/archive-list/" }
#####################
### path: command ###
/home/baehyunsol/Documents/ragit/__tmp_b8d5ec9e0d7e76d4: rag clone http://ragit.baehyunsol.com/sample/rustc
### returncode ###
1
### stdout ###
### stderr ###
Finished `release` profile [optimized] target(s) in 0.07s
Running `/home/baehyunsol/Documents/ragit/target/release/rag clone 'http://ragit.baehyunsol.com/sample/rustc'`
CloneRequestError { code: Some(404), url: "http://ragit.baehyunsol.com:41127/sample/rustc/archive-list/" }
Traceback (most recent call last):
File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 377, in <module>
test()
File "/home/baehyunsol/Documents/ragit/tests/clone2.py", line 72, in clone2
raise Exception("\n\n".join(errors))
Exception:
#####################
### path: command ###
/home/baehyunsol/Documents/ragit/__tmp_b8d5ec9e0d7e76d4: rag clone http://ragit.baehyunsol.com/sample/git
### returncode ###
1
### stdout ###
### stderr ###
Finished `release` profile [optimized] target(s) in 0.07s
Running `/home/baehyunsol/Documents/ragit/target/release/rag clone 'http://ragit.baehyunsol.com/sample/git'`
CloneRequestError { code: Some(404), url: "http://ragit.baehyunsol.com:41127/sample/git/archive-list/" }
#####################
### path: command ###
/home/baehyunsol/Documents/ragit/__tmp_b8d5ec9e0d7e76d4: rag clone http://ragit.baehyunsol.com/sample/ragit
### returncode ###
1
### stdout ###
### stderr ###
Finished `release` profile [optimized] target(s) in 0.06s
Running `/home/baehyunsol/Documents/ragit/target/release/rag clone 'http://ragit.baehyunsol.com/sample/ragit'`
CloneRequestError { code: Some(404), url: "http://ragit.baehyunsol.com:41127/sample/ragit/archive-list/" }
#####################
### path: command ###
/home/baehyunsol/Documents/ragit/__tmp_b8d5ec9e0d7e76d4: rag clone http://ragit.baehyunsol.com/sample/rustc
### returncode ###
1
### stdout ###
### stderr ###
Finished `release` profile [optimized] target(s) in 0.07s
Running `/home/baehyunsol/Documents/ragit/target/release/rag clone 'http://ragit.baehyunsol.com/sample/rustc'`
CloneRequestError { code: Some(404), url: "http://ragit.baehyunsol.com:41127/sample/rustc/archive-list/" }
elapsed time: 2,609 ms
elapsed time: 110,754 ms
elapsed time: 587,973 ms
elapsed time: 127,503 ms
elapsed time: 58,762 ms
elapsed time: 1,617 ms
elapsed time: 2,544 ms
elapsed time: 130,063 ms
tfidf result on term 'crate 2 model buffer main' is not close enough. error: `answer[1] not in approximation`, answer: ['a974c5df121320d676c39c814ba5eba8dfe73ad9cb90a4e50000000100000200', 'b0658c1805e02ec22db3f63b7d06357cef2dcd406f45476d000000010000020a', '6ea382bebb6d2adbf7dbd48d7c21b62bbc17b13d8a22723e000000010000018d', 'fcdb6180eaab63a79d97999df09a3e5c97c60c45ae104599000000010000020e', '1de00a341406d7a4642c477dae3535f9782c03c4fd951a8b0000000100000200', 'f211c60d3d5aa0eae8d26be6526ccbe5f69e64089802bba20000000100000200', 'fe8139c42af838ef2529c2065f8852f56a10e18c3b1c0c350000000100000200', 'e9d9a44d90b9887cdbb444738901ae5ee4a52abbe6e0df900000000100000201', '659de5fb5893965eb34991f592a4bc41724cbba9edaacce10000000100000200', '73f3b15a8d584c9252dc807e7d72f355852318257b12dac60000000100000200'], approximation: ['a974c5df121320d676c39c814ba5eba8dfe73ad9cb90a4e50000000100000200', 'f211c60d3d5aa0eae8d26be6526ccbe5f69e64089802bba20000000100000200', '1de00a341406d7a4642c477dae3535f9782c03c4fd951a8b0000000100000200', 'fcdb6180eaab63a79d97999df09a3e5c97c60c45ae104599000000010000020e', '73f3b15a8d584c9252dc807e7d72f355852318257b12dac60000000100000200', '42c9887f5422714a5f3dff5e34ac38d6e2f9845c4b529a4b0000000100000200', 'e9d9a44d90b9887cdbb444738901ae5ee4a52abbe6e0df900000000100000201', '6ea382bebb6d2adbf7dbd48d7c21b62bbc17b13d8a22723e000000010000018d', '0351005ec37b2e7a84f1e6535c6091804d64c78aa916bbca0000000100000201', '659de5fb5893965eb34991f592a4bc41724cbba9edaacce10000000100000200']
Traceback (most recent call last):
File "/home/baehyunsol/Documents/ragit/tests/ii.py", line 90, in ii
raise AssertionError(f"answer[{i}] not in approximation")
AssertionError: answer[1] not in approximation
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 377, in <module>
test()
File "/home/baehyunsol/Documents/ragit/tests/ii.py", line 106, 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 model buffer main' is not close enough. error: `answer[1] not in approximation`, answer: ['a974c5df121320d676c39c814ba5eba8dfe73ad9cb90a4e50000000100000200', 'b0658c1805e02ec22db3f63b7d06357cef2dcd406f45476d000000010000020a', '6ea382bebb6d2adbf7dbd48d7c21b62bbc17b13d8a22723e000000010000018d', 'fcdb6180eaab63a79d97999df09a3e5c97c60c45ae104599000000010000020e', '1de00a341406d7a4642c477dae3535f9782c03c4fd951a8b0000000100000200', 'f211c60d3d5aa0eae8d26be6526ccbe5f69e64089802bba20000000100000200', 'fe8139c42af838ef2529c2065f8852f56a10e18c3b1c0c350000000100000200', 'e9d9a44d90b9887cdbb444738901ae5ee4a52abbe6e0df900000000100000201', '659de5fb5893965eb34991f592a4bc41724cbba9edaacce10000000100000200', '73f3b15a8d584c9252dc807e7d72f355852318257b12dac60000000100000200'], approximation: ['a974c5df121320d676c39c814ba5eba8dfe73ad9cb90a4e50000000100000200', 'f211c60d3d5aa0eae8d26be6526ccbe5f69e64089802bba20000000100000200', '1de00a341406d7a4642c477dae3535f9782c03c4fd951a8b0000000100000200', 'fcdb6180eaab63a79d97999df09a3e5c97c60c45ae104599000000010000020e', '73f3b15a8d584c9252dc807e7d72f355852318257b12dac60000000100000200', '42c9887f5422714a5f3dff5e34ac38d6e2f9845c4b529a4b0000000100000200', 'e9d9a44d90b9887cdbb444738901ae5ee4a52abbe6e0df900000000100000201', '6ea382bebb6d2adbf7dbd48d7c21b62bbc17b13d8a22723e000000010000018d', '0351005ec37b2e7a84f1e6535c6091804d64c78aa916bbca0000000100000201', '659de5fb5893965eb34991f592a4bc41724cbba9edaacce10000000100000200']
elapsed time: 14,888 ms
elapsed time: 3,672 ms
elapsed time: 5,041 ms
elapsed time: 2,259 ms
elapsed time: 7,501 ms
elapsed time: 8,994 ms
elapsed time: 12,868 ms
elapsed time: 50,065 ms
elapsed time: 39,823 ms
elapsed time: 168,796 ms
elapsed time: 5,195 ms
elapsed time: 69,474 ms
elapsed time: 165,404 ms
elapsed time: 1,482 ms
elapsed time: 2,352 ms
elapsed time: 12,764 ms
elapsed time: 37,275 ms
elapsed time: 339 ms
Command '['cargo', 'run', '--release', '--', 'clone', 'http://ragit.baehyunsol.com/sample/ragit']' returned non-zero exit status 1.
Traceback (most recent call last):
File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 377, in <module>
test()
File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 342, in <lambda>
("extract_keywords dummy", lambda: extract_keywords(test_model="dummy")),
File "/home/baehyunsol/Documents/ragit/tests/extract_keywords.py", line 8, in extract_keywords
cargo_run(["clone", "http://ragit.baehyunsol.com/sample/ragit"])
File "/home/baehyunsol/Documents/ragit/tests/utils.py", line 65, in cargo_run
result = subprocess.run(args, **kwargs)
File "/usr/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cargo', 'run', '--release', '--', 'clone', 'http://ragit.baehyunsol.com/sample/ragit']' returned non-zero exit status 1.
elapsed time: 340 ms
Command '['cargo', 'run', '--release', '--', 'clone', 'http://ragit.baehyunsol.com/sample/ragit']' returned non-zero exit status 1.
Traceback (most recent call last):
File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 377, in <module>
test()
File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 343, in <lambda>
("extract_keywords gpt-4o-mini", lambda: extract_keywords(test_model="gpt-4o-mini")),
File "/home/baehyunsol/Documents/ragit/tests/extract_keywords.py", line 8, in extract_keywords
cargo_run(["clone", "http://ragit.baehyunsol.com/sample/ragit"])
File "/home/baehyunsol/Documents/ragit/tests/utils.py", line 65, in cargo_run
result = subprocess.run(args, **kwargs)
File "/usr/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cargo', 'run', '--release', '--', 'clone', 'http://ragit.baehyunsol.com/sample/ragit']' returned non-zero exit status 1.
elapsed time: 983 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 "/home/baehyunsol/Documents/ragit/tests/tests.py", line 377, in <module>
test()
File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 346, in <lambda>
("ragit_api llama3.2-11b-groq", lambda: ragit_api(test_model="llama3.2-11b-groq")),
File "/home/baehyunsol/Documents/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 "/usr/lib/python3.10/subprocess.py", line 526, 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: 146 ms
Command '['cargo', 'run', '--release', '--', '--model', 'command-r', '--input', 'hello_world.pdl']' returned non-zero exit status 101.
Traceback (most recent call last):
File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 377, in <module>
test()
File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 347, in <lambda>
("ragit_api command-r", lambda: ragit_api(test_model="command-r")),
File "/home/baehyunsol/Documents/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 "/usr/lib/python3.10/subprocess.py", line 526, 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,149 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 "/home/baehyunsol/Documents/ragit/tests/tests.py", line 377, in <module>
test()
File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 348, in <lambda>
("ragit_api phi-4-14b-ollama", lambda: ragit_api(test_model="phi-4-14b-ollama")),
File "/home/baehyunsol/Documents/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 "/usr/lib/python3.10/subprocess.py", line 526, 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: 93,236 ms
Command '['cargo', 'run', '--release', '--', 'migrate']' returned non-zero exit status 1.
Traceback (most recent call last):
File "/home/baehyunsol/Documents/ragit/tests/tests.py", line 377, in <module>
test()
File "/home/baehyunsol/Documents/ragit/tests/migrate.py", line 90, in migrate
cargo_run(["migrate"])
File "/home/baehyunsol/Documents/ragit/tests/utils.py", line 65, in cargo_run
result = subprocess.run(args, **kwargs)
File "/usr/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cargo', 'run', '--release', '--', 'migrate']' returned non-zero exit status 1.