Skip to main content

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:

  1. As a user (install from PyPI — coming soon).
  2. 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:

📚 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

Metadata

Release files for qux360 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qux360 0.0.1
File Size Uploaded
qux360-0.0.1.tar.gz 37.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qux360 0.0.1
File Interpreter ABI Platform
qux360-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 78.9 kB

Release files / qux360-0.0.1.tar.gz

Download URL qux360-0.0.1.tar.gz
Size 37.4 kB
Tags Source
SHA-256 checksum
How to use checksums
64156c13c58683852c32e7b3fd743c6d584b0f248234ce2234bca01294ddf650
BLAKE2b-256 checksum
How to use checksums
dc7b1b7b611fcb64e546e3dd40319e7135d5e974e45aa6a29c766024476f258d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.14.0 Darwin/24.6.0

Release files / qux360-0.0.1-py3-none-any.whl

Download URL qux360-0.0.1-py3-none-any.whl
Size 41.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d1b4c8902593837fa31f8dc6269975d7a5b086c3b7e444309580cdb458968ab
BLAKE2b-256 checksum
How to use checksums
4546a92f25ebb55fbe6f09f49e5a2ec33d280fa1df7a8084c9aa748ec111f7b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.14.0 Darwin/24.6.0

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page