AI-assisted qualitative analysis library for interview data with privacy-preserving features
Project description
Qux360
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.
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
- Bulk processing across collections of interviews (e.g., anonymization)
📦 Installation
Qux360 can be used in two ways:
- As a user (install from PyPI — coming soon).
- As a developer/contributor (working with the source repo).
1. Users (PyPI)
Once published, install with pip:
pip install qux360
Example:
from qux360.core import Interview
i = Interview("my_transcript.docx")
i.show()
2. Developers / Contributors
Step 1. Clone the repo
git clone https://github.com/IBM/qux360.git
cd qux360
Step 2. Install dependencies with Poetry
🔧 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 install
This creates a .venv and installs all dependencies.
Step 3. Activate the environment
Activate .venv directly
macOS/Linux
source .venv/bin/activate
Windows
.venv\Scripts\activate
Step 4. Install a spaCy model (required for NER/anonymization)
Best Quality
python -m spacy download en_core_web_trf
or
Smaller & Faster
python -m spacy download en_core_web_sm
Step 5. Set up .env
Qux360 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=True
Step 6. Verify installation
Run the included example:
python examples/interview_basics.py
🚀 Quickstart Example
from 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)
🤖 Quickstart: Anonymization & Interviewee Identification
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.
✏️ Contributing
You can contribute to:
- Qux360. Look at the Contribution Guidelines for more details.
- Mellea. Look at the Contribution Guidelines for more details.
📚 Documentation
You can find extensive documentation of the system and the API usage in the Documentation page.
📜 License
Qux360 is licensed under the Apache License 2.0.
IBM ❤️ Open Source AI
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qux360-0.0.1.tar.gz.
File metadata
- Download URL: qux360-0.0.1.tar.gz
- Upload date:
- Size: 37.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.14.0 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64156c13c58683852c32e7b3fd743c6d584b0f248234ce2234bca01294ddf650
|
|
| MD5 |
2825732bad1a00e5d66b5aca101c8669
|
|
| BLAKE2b-256 |
dc7b1b7b611fcb64e546e3dd40319e7135d5e974e45aa6a29c766024476f258d
|
File details
Details for the file qux360-0.0.1-py3-none-any.whl.
File metadata
- Download URL: qux360-0.0.1-py3-none-any.whl
- Upload date:
- Size: 41.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.14.0 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d1b4c8902593837fa31f8dc6269975d7a5b086c3b7e444309580cdb458968ab
|
|
| MD5 |
1387f733a793b6bf4f38deeb5a319055
|
|
| BLAKE2b-256 |
4546a92f25ebb55fbe6f09f49e5a2ec33d280fa1df7a8084c9aa748ec111f7b3
|