SCorPion: Building Controllable Personified Conversational Companions with GraphRAG

SCorPion uses GraphRAG to extract conversation strategies from multiple corpora, enabling controllable, personified open-domain conversation.
SCorPion addresses fixed-prompt language models' limited adaptability in open-domain conversation by replacing a single system prompt with dynamic prompting: extracting varied chat strategies from diverse text corpora and filtering them by human communication principles. Its core is GraphRAG—globally extracting strategy knowledge into a graph, summarizing communities into a reusable strategy library, and producing query-focused optimal strategies. It emphasizes controllability and personification, though evaluation details remain undisclosed.
Language models with fixed prompts often struggle in open-domain conversation—the more diverse the topics, the more they need different expert advice or demonstrations to unlock their potential. To address this pain point, researchers propose SCorPion, a strategic, controllable, and personified conversational companion built on GraphRAG. It extracts diverse chat strategies from varied text corpora, guides the model to switch styles according to human principles, and uses graph retrieval-augmented generation to extract and summarize a global knowledge graph, ultimately producing query-focused optimal strategies.

From fixed prompts to dynamic strategies: the core idea of SCorPion
Traditional dialogue systems rely on fixed system prompts, which perform stably in limited scenarios, but in open-domain chit-chat a single prompt struggles to cover the professionalism and tone required by all topics. SCorPion starts precisely from a "dynamic prompting" idea: since dynamic prompting has already been proven to improve results in language generation, dialogue scenarios can likewise extract chat strategies from different forms of text corpora, letting the model dynamically adjust its behavior according to the conversational context.
Specifically, the research team extracts conversation strategies in various styles from multiple text sources. These strategies are not set arbitrarily, but are filtered and induced based on principles of human communication. In this way, the model no longer responds to all conversations with "one face," but can invoke appropriate strategies to organize responses according to user intent and topic attributes. This strategy-level switching is the foundation for SCorPion's "strategic" and "personified" qualities.
Dynamic prompting means treating the system prompt not as a fixed constant, but assembling or rewriting prompt content at inference time according to the input, context, or retrieval results. Common forms include: few-shot prompting with examples retrieved per query, having the model first generate a reasoning plan and then constructing the prompt accordingly, and switching instruction templates by task type. The opposite is static prompting, written once and reused long-term. The advantage of dynamic prompting is that it can inject external knowledge or strategies into the prompt, mitigating the problem that a single prompt cannot cover multiple scenarios; the cost is increased complexity of retrieval and orchestration, plus limited prompt length and a dependence of quality on retrieval. In dialogue scenarios, dynamic prompting typically manifests as switching across dimensions such as "speaking style, response structure, and degree of empathy."
How GraphRAG drives strategy extraction and summarization
The technical core of SCorPion is GraphRAG. Unlike traditional RAG, which only retrieves local text fragments, GraphRAG emphasizes global extraction and summarization of the knowledge graph: it first builds a knowledge graph, then summarizes communities within the graph to form community-level strategy summaries, and finally generates the optimal strategy focused on the specific query.
This process gives SCorPion a "global vision"—it is not limited to the context of a single dialogue turn, but uses graph structure to understand the associations between topics, giving strategy selection a stronger basis. According to the original description, SCorPion uses GraphRAG to "extract and summarize the knowledge graph globally, yield community-summarized strategies, and produce query-focused optimal strategies." These three stages build on one another, corresponding respectively to knowledge structuring, strategy induction, and query adaptation.
Global knowledge graph extraction
The first step is to organize strategy-related knowledge into a graph structure. Compared with flat vector retrieval, a graph structure can preserve the hierarchy and associations between strategies, providing a foundation for subsequent community discovery and summarization.
Generating strategies from community summaries
After identifying communities on the graph, the knowledge within each community is summarized to form reusable strategy units. These community summaries act as a "strategy library," where each strategy carries a specific style and applicable scenario.
Community detection is a classic task in graph analysis, whose goal is to partition tightly connected nodes into clusters. In GraphRAG, the Leiden algorithm is commonly used to perform hierarchical partitioning on the knowledge graph, yielding multi-level communities from coarse to fine. Entities within each community tend to be highly semantically related, so generating a summary for the community as a whole yields a relatively abstract "theme description." The benefit of this precomputed summary is that, when facing macro-level questions, the system does not need to scan all original text on the fly, but can directly invoke existing community summaries, reducing inference overhead and improving the global consistency of answers. For SCorPion, each community summary can precisely carry a conversation strategy with a specific style.
Query-focused optimal strategy
When user input arrives, the system matches against the strategy library based on the query and generates the optimal strategy, guiding the language model to produce a response suited to the current context. This stage ensures the dynamism and targeting of the strategies.
GraphRAG (graph-based retrieval-augmented generation) is a RAG improvement proposed by Microsoft Research in 2024. Traditional RAG splits documents into text chunks and retrieves the segments most relevant to the query via vector similarity; this approach performs poorly on questions requiring cross-document, global understanding (e.g., "What are the main themes of this batch of documents?"). GraphRAG's approach is to first use a large model to extract entities and relations from the raw corpus and build a knowledge graph, then use community detection algorithms (such as Leiden) to partition the graph into hierarchical communities, and pre-generate summaries for each community. At query time, the system can perform either local retrieval (around specific entities) or global retrieval (aggregating community summaries to answer holistic questions). The cost is that the indexing stage requires a large number of LLM calls, significantly more expensive than naive RAG, making it more suitable for scenarios where the corpus is relatively stable and global induction is needed.
Controllability and personification: making conversational style adjustable
Another key feature of SCorPion is "controllability." The original text states that SCorPion "can be controlled by explicit factors," meaning conversational behavior can be controlled through explicit factors. This means users or developers can specify certain dimensions (such as tone or strategy inclination) to influence the model's output style, rather than relying entirely on the model's black-box decisions.
Personification is reflected in the diversity of strategies: because strategies come from different forms of text corpora, the model can exhibit different "personality" facets rather than a uniform assistant tone. Combined with controllability, SCorPion offers finer-grained adjustment capabilities in open-domain conversation—maintaining conversational coherence while switching styles as needed.
New directions and limitations for open-domain conversation
SCorPion's value lies in combining dynamic prompting, GraphRAG, and personified conversation into a practical framework for open-domain dialogue systems. It addresses the adaptability problem of fixed-prompt models in multi-topic scenarios and improves the systematicity of strategy selection through graph-structured knowledge organization.
However, based on the information disclosed in the original text, SCorPion's evaluation details and actual deployment results have not yet been fully elaborated. The code and further results have been released on the project page (https://bachozean.github.io/scorpion-page/), where interested readers can consult the specific implementation and experimental data. For researchers and developers interested in dialogue systems, GraphRAG applications, and personified AI, SCorPion offers an exploration direction worth following.
One-line Summary
SCorPion uses GraphRAG to extract conversation strategies from multiple corpora, enabling controllable, personified open-domain conversation.
Paragraph Summary
Aiming at the insufficient adaptability of fixed-prompt language models in open-domain conversation, SCorPion proposes replacing a single system prompt with dynamic prompting: extracting conversation strategies in various styles from diverse text corpora and filtering and inducing them based on principles of human communication. Its technical core is GraphRAG—first performing global graph extraction of strategy-related knowledge, then generating summaries of graph communities to form a reusable strategy library, and finally matching against user queries to produce query-focused optimal strategies. This three-stage process gives the system a global vision and the ability to dynamically switch at the strategy level. The system also emphasizes controllability and personification, allowing conversational style to be adjusted through explicit factors so that the model exhibits different "personality" facets across topics rather than a uniform assistant tone. The article argues that this framework offers a practical approach for open-domain conversation, though evaluation details and deployment results have not yet been fully disclosed.
Related articles

Jensen Huang Returns to Nvidia: The Power Game Behind an "Aggro Reset"
Nvidia's board reappointed Jensen Huang as CEO less than two weeks after his scandal-driven resignation. This analysis explores the board's decision-making, Trump's political intervention, media power failure, and market reaction behind the dramatic return.

Why Voice AI Can't Understand Kenyans' Everyday Conversations
Swahili speech recognition hits 3.24% error on read text, but everyday Kenyan speech mixes English, Sheng slang, and accents—leaving mainstream voice AI struggling.

Data Centers Build Their Own Natural Gas Plants: AI Compute's Breakout Around a Decade-Long Grid Wait
Grid interconnection approvals can take a decade, so xAI and others are building off-grid natural gas plants to power AI clusters. This article analyzes the drivers, costs, and impact of behind-the-meter generation on AI infrastructure.