gptme icon indicating copy to clipboard operation
gptme copied to clipboard

feat: playing with basic rag scripts

Open ErikBjare opened this issue 1 year ago • 1 comments

Progress on https://github.com/ErikBjare/gptme/issues/59

ErikBjare avatar Sep 23 '24 12:09 ErikBjare

: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_retrieve
Stack 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

codecov-commenter avatar Sep 23 '24 12:09 codecov-commenter

We have https://github.com/ErikBjare/gptme-rag and the wrapping rag tool now

ErikBjare avatar Dec 15 '24 09:12 ErikBjare