Qux360 is an experimental Python library for AI-assisted qualitative analysis.
Validation is a first-class concept in Qux360 β every use of large language models is designed to be transparent, explainable, and open to scrutiny. The goal is to help developers build trustworthy, interactive qualitative analysis experiences while retaining flexibility in how they apply Qux360βs built-in quality assurance mechanisms. Validation is provided through nested QIndex validators which return statuses statuses as follows:
ok: All checks passedcheck: Some issues detected, human review recommendediffy: Significant problems detected
Currently, validators are predefined for each LLM call but future versions will support validator extensions. To learn more about validators, please check our validator overview.
Qux360 is built on Mellea, a generative computing library that provides robust and validated prompting techniques. The current Qux360 version supports interview data with a single participant (interviewee) only, with plans to expand this scope in future releases.
The current version has been tested only with meta-llama/llama-3-3-70b-instruct. Other models may require prompt adjustments.
Key capabilities:
- Import interview transcripts in DOCX, XLSX, or CSV formats
- Export processed transcripts in XLSX or CSV formats
- Speaker anonymization
- Statement anonymization using local, privacy-preserving entity detection
- AI-assisted interviewee detection
- AI-assisted top-down topic extraction
- AI-assisted thematic analysis across topics
- Predefined validators for LLM analysis (heuristics, structural, LLM-as-a-Judge)
- Bulk processing across collections of interviews (e.g., anonymization)
Qux360 can be used in two ways:
- As a user (install from PyPI β coming soon).
- As a developer/contributor (working with the source repo).
Once published, install with pip:
pip install qux360Example:
from qux360.core import Interview
i = Interview("my_transcript.docx")
i.show()git clone https://github.com/IBM/qux360.git
cd qux360π§ Setting up Poetry
Qux360 uses Poetry for dependency and environment management. If you donβt already have it installed, follow the instructions here:
π Poetry Installation Guide: https://python-poetry.org/docs/#installation
poetry installThis creates a .venv and installs all dependencies.
Activate .venv directly
macOS/Linux
source .venv/bin/activate Windows
.venv\Scripts\activate Best Quality
python -m spacy download en_core_web_trf or
Smaller & Faster
python -m spacy download en_core_web_smQux360 uses Mellea as a layer to connect to inference services. You will need to create a .env file in your project root folder, using keys required by Mellea (depending on what models and services you use Mellea with). For example, the following keys in the .env file would allow you to use Mellea with LiteLLM and WatsonX. LiteLLM is supported in Mellea and allows you to use most common backends. See https://docs.mellea.ai/api-reference/core-library/backends/index for details.
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=TrueRun the included example:
python examples/interview_basics.pyfrom qux360.core import Interview
# Load a transcript (DOCX, XLSX, or CSV)
i = Interview("examples/data/interview_A.docx")
# Preview first few rows
i.show(rows=5)
# List speakers
print("Speakers:", i.get_speakers())
# Export to Excel (formatted, with wrapped text + column widths)
i.to_xlsx("output_transcript.xlsx", include_enriched=False)from qux360.core import Interview
# Load a transcript
i = Interview("examples/data/interview_A.xlsx")
# Step 1: Rename speakers (e.g., Speaker 1 β Participant)
mapping = i.rename_speaker("Speaker 1", "Participant")
print("Speaker Mapping:", mapping)
# Step 2: Detect named entities (PERSON, ORG, GPE)
entities = i.detect_entities(model="en_core_web_sm")
print("Entities found:", entities)
# Step 3: Identify interviewee (heuristic + optional LLM check)
interviewee, _ = i.identify_interviewee()
print("Predicted interviewee:", interviewee)β With these steps, you can load transcripts, anonymize participants, detect sensitive entities, and use LLMs via Mellea to assist in interview analysis.
You can contribute to:
- Qux360. Look at the Contribution Guidelines for more details.
- Mellea. Look at the Contribution Guidelines for more details.
You can find extensive documentation of the system and the API usage in the Documentation page.
Qux360 is licensed under the Apache License 2.0.