This repository is a web demo for Qux360, an experimental Python library for AI-assisted qualitative analysis.
.env files are needed for both the backend and the frontend. NOte that the underlying Qux360 library uses LiteLLM, i.e. you will need to specify your inference service in a way that is compatible with LiteLLM. Below is just an example for watsonx.
backend/.env:
MODEL_ID=watsonx/meta-llama/llama-3-3-70b-instruct
WATSONX_URL=[your URL]
WATSONX_API_KEY=[your API key]
WATSONX_PROJECT_ID=[your project ID]
DISABLE_AIOHTTP_TRANSPORT=True
frontend/.env:
VITE_BACKEND_URL=http://localhost:8000
cd backendThe first time you run it you need to run:
poetry install
source .venv/bin/activateThat will create a venv virtual environment for you.
In case you prefer to install it manually, the requirements.txt file is provided:
pip install -r requirements.txtInstall Spacy's model
spacy download en_core_web_smTo launch the server:
uvicorn main:app --reloadcd frontendYou can use the .nvmrc file to set the correct Node.js version suitable for this project:
nvm useThe first time you run it you need to run:
npm installTo launch the web app:
npm run devStart both services (frontend + backend) with Docker Compose for a convenient dev environment.
From the root directory:
docker-compose up --buildThe compose setup mounts local folders into the containers so code changes are reflected immediately.
- Backend will be available at
http://localhost:8000 - Frontend (Vite dev server) at
http://localhost:5173
You can contribute to:
- Qux360. Look at the Contribution Guidelines for more details.
- Qux360 Demo. Look at the Contribution Guidelines for more details.
Qux360 Demo is licensed under the Apache License 2.0.