The association engine sends ungrounded bidirectional association prompts under rigid format constraints across model providers to extract rank-weighted positional scoring for brands, entities, and queries.

sequenceDiagram
    autonumber
    participant PE as Probe Engine
    participant LLM as Target LLMs
    participant Parser as Line Parser
    participant DB as Associations DB

    PE->>LLM: Send ungrounded prompt (rigid format)
    LLM-->>PE: Return newline-delimited ranked list
    PE->>Parser: Stream raw text output
    Parser->>Parser: Extract brand & entity mentions
    Parser->>Parser: Compute rank-weighted score by position
    Parser->>DB: Upsert (prompt_id, entity, rank, score)

Referenced by