qfa.services#

Submodules

analyze

Application service for the POST /v1/analyze-bulk use case.

auth_orchestrator

Application service for authentication and management operations.

call_context

Request-scoped ContextVar carrying the active call's correlation context.

clustering

HDBSCAN clustering + token-budget chunking for hierarchical analysis.

coding

Coding service — assign hierarchical codes to a feedback record.

coding_classifier

Helpers for one-shot hierarchical coding prompts and per-level judge prompts.

coding_trends

Deterministic, non-LLM coding-trend table.

hierarchical_prompts

Prompt builders for the hierarchical (map-reduce) analyse path.

language

Source-language detection for prompt assembly.

llm_call_executor

Shared LLM-call scaffolding for the application services.

prompts

Prompt building blocks for the free-text analyse endpoint.

record_links

Rewrite feedback-record mentions in LLM output as EspoCRM hyperlinks.

sensitivity

Sensitivity-detection use case.

summarize

Summarisation use cases — one aggregate summary, or one per record.