exact-rag icon indicating copy to clipboard operation
exact-rag copied to clipboard

How to run tests in `dev` branch

Open tcompa opened this issue 1 year ago • 0 comments

First, I added pytest.

Then I hit this error upon (poetry run pytest):

E   FileNotFoundError: [Errno 2] No such file or directory: 'test_settings.toml'

The file exists, but I have to run tests from within the test folder.

Still, I get another error:

...
E   ValueError: Error raised by inference endpoint: HTTPConnectionPool(host='localhost', port=11434): Max retries exceeded with url: /api/embeddings (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f03e4dff9d0>: Failed to establish a new connection: [Errno 111] Connection refused'))

Then I run poetry run uvicorn main:app --host 0.0.0.0 --port 11434, and re-run the test. New error:

E   ValueError: Error raised by inference API HTTP code: 404, {"detail":"Not Found"}

tcompa avatar Jan 18 '24 14:01 tcompa