gptme
gptme copied to clipboard
feat: playing with basic rag scripts
Progress on https://github.com/ErikBjare/gptme/issues/59
:x: 1 Tests Failed:
| Tests completed | Failed | Passed | Skipped |
|---|---|---|---|
| 79 | 1 | 78 | 0 |
View the top 1 failed tests by shortest run time
tests.test_tools_rag test_retrieveStack Traces | 5.07s run time
def test_retrieve(): query = "function foo" > result = retrieve(query) tests/test_tools_rag.py:143: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .../tools/rag/retriever.py:37: in retrieve index, metadata = load_index_and_metadata() .../tools/rag/retriever.py:13: in load_index_and_metadata index = faiss.read_index(str(data_dir / "code_index.faiss")) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = ('....../home/runner/.cache....../gptme/rag/code_index.faiss',) def read_index(*args): > return _swigfaiss_avx2.read_index(*args) E RuntimeError: Error in faiss::FileIOReader::FileIOReader(const char*) at .../faiss/impl/io.cpp:67: Error: 'f' failed: could not open ....../home/runner/.cache....../gptme/rag/code_index.faiss for reading: No such file or directory ../../../..../pypoetry/virtualenvs/gptme-python-6e4DATUP-py3.10/lib/python3.10.../site-packages/faiss/swigfaiss_avx2.py:10538: RuntimeError
To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard
We have https://github.com/ErikBjare/gptme-rag and the wrapping rag tool now