To use this repository, clone it:
git clone https://github.com/ThomasPluckMU/Embedded-AI-Project# Install dependencies and set up the environment
./install.sh
# Start the application
./start.sh# Install dependencies and set up the environment
.\install.ps1
# Start the application
.\start.ps1We provide integration tests to verify the functionality of our RAG (Retrieval Augmented Generation) system with ChromaDB. All test files are located in the tests/ directory.
The easiest way to run tests is using the test runner script:
# Run all tests
python run_tests.py
# Run only backend tests
python run_tests.py --backend-only
# Run only end-to-end tests with your API key
python run_tests.py --e2e-only --browser chrome --api-key YOUR_API_KEYOptions:
--backend-only: Run only the backend integration tests--e2e-only: Run only the end-to-end UI tests--browser: Choose the browser for testing (chrome, firefox, or edge)--api-key: Provide your OpenAI API key for testing with actual LLM responses
You can also run specific test scripts directly:
Linux/macOS:
./tests/test_rag.shWindows:
.\tests\test_rag.ps1Linux/macOS:
./tests/run_e2e_test.sh --browser chrome --api-key YOUR_API_KEYWindows:
.\tests\run_e2e_test.ps1 -browser chrome -apiKey YOUR_API_KEYYou can also run tests using pytest:
# Run backend tests
pytest tests/test_rag.py -v
# Run all tests
pytest tests/You can build the repository in Ubuntu using texlive with the latexmk command:
cd report
latexmk -f main.tex