Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: playing with basic rag scripts #135

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

feat: playing with basic rag scripts #135

wants to merge 4 commits into from

Conversation

ErikBjare
Copy link
Owner

@ErikBjare ErikBjare commented Sep 23, 2024

Progress on #59

@codecov-commenter
Copy link

codecov-commenter commented Sep 23, 2024

❌ 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants