From 0588a0301c4472c555600ede677e2eeb9cc8d0c5 Mon Sep 17 00:00:00 2001 From: josh-ashkinaze Date: Tue, 24 Sep 2024 16:33:55 +0000 Subject: [PATCH] deploy: 20a5fe6dba164a12c4cecde8eb8f17b619d29606 --- _sources/tutorial_3_agents.rst | 4 ++-- _sources/tutorial_4_structures.rst | 2 +- _sources/tutorial_5_moderators.rst | 4 ++-- index.html | 6 +++--- searchindex.js | 2 +- tutorial_3_agents.html | 14 +++++++------- tutorial_4_structures.html | 6 +++--- tutorial_5_moderators.html | 12 ++++++------ 8 files changed, 25 insertions(+), 25 deletions(-) diff --git a/_sources/tutorial_3_agents.rst b/_sources/tutorial_3_agents.rst index 4d62b8b..57f3157 100644 --- a/_sources/tutorial_3_agents.rst +++ b/_sources/tutorial_3_agents.rst @@ -303,7 +303,7 @@ If you make ``persona=='random'`` then we will randomly sample a row from ANES a task = "Write a paragraph about the importance of the environment to America." agent = Agent(persona='random', model='gpt-4o', task=task) -ANES Option 3: Searching ANES using a pandas query string +ANES Option 3: Searching ANES using a Pandas query string ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ If you want to get more specific, you can pass in a query string that will be used to filter the ANES dataset. Now, you may not know the exact variables in ANES, so we have a helper function that will print out the demographic/political columns we are using so you know what values to pass in. @@ -367,7 +367,7 @@ on more than just ideology and state. the south. You live in a small town. You live in the state of west virginia. -Using Different LLM Models +Using different LLMs --------------------------------------------------- Plurals supports various LLMs by using LiteLLM to make API calls. Agents also support LiteLLM's ``kwargs`` arguments diff --git a/_sources/tutorial_4_structures.rst b/_sources/tutorial_4_structures.rst index df91eec..9dbb145 100644 --- a/_sources/tutorial_4_structures.rst +++ b/_sources/tutorial_4_structures.rst @@ -18,7 +18,7 @@ Every Structure can be moderated, which means that a Moderator Agent will overse Structures will return ``responses`` as a list or you can access the final response by calling the ``final_response`` attribute. -Combination Instructions +Combination instructions ------------------------ diff --git a/_sources/tutorial_5_moderators.rst b/_sources/tutorial_5_moderators.rst index ef199a5..d6829e2 100644 --- a/_sources/tutorial_5_moderators.rst +++ b/_sources/tutorial_5_moderators.rst @@ -12,7 +12,7 @@ Moderators are a subclass of Agents who summarize multi-agent deliberation. Any - **Model:** Moderators are initialized to be a particular LLM. -Setting a Moderator’s System Instructions +Setting a Moderator’s system instructions ----------------------------------------- Via personas @@ -60,7 +60,7 @@ templates, so you cannot access any pre-defined moderator instructions when using ``system_instructions``. ``system_instructions='default'`` will not access the default template like ``persona='default'`` would. -Auto-Moderators +Auto-moderators ~~~~~~~~~~~~~~~ We have a special option where, if the ``system_instructions`` of a diff --git a/index.html b/index.html index 17b86cf..52a8250 100644 --- a/index.html +++ b/index.html @@ -362,13 +362,13 @@

Contents
  • Example combining ANES and templates
  • Process tasks
  • Different ways to set up system instructions
  • -
  • Using Different LLM Models
  • +
  • Using different LLMs
  • Inspecting the exact prompts that an Agent is doing
  • Structures
  • Moderators
  • diff --git a/searchindex.js b/searchindex.js index 0500182..8d6bf8b 100644 --- a/searchindex.js +++ b/searchindex.js @@ -1 +1 @@ -Search.setIndex({"alltitles": {"1. Safe String Formatting": [[2, "safe-string-formatting"]], "2. Avoid Double Periods": [[2, "avoid-double-periods"]], "3. None Replacement": [[2, "none-replacement"]], "ANES Option 1: ideology initializer": [[6, "anes-option-1-ideology-initializer"]], "ANES Option 2: Random sampling": [[6, "anes-option-2-random-sampling"]], "ANES Option 3: Searching ANES using a pandas query string": [[6, "anes-option-3-searching-anes-using-a-pandas-query-string"]], "API Documentation": [[3, null]], "Agent Module": [[0, "agent-module"]], "Agents": [[4, "agents"], [6, "agents"]], "Auto-Moderators": [[8, "auto-moderators"]], "Chain": [[5, "chain"], [7, "chain"]], "Combination Instructions": [[7, "combination-instructions"]], "Contents": [[3, "contents"]], "Core Concepts": [[4, "core-concepts"]], "Debate": [[5, "debate"], [7, "debate"]], "Deliberation Module": [[1, "deliberation-module"]], "Different ways to set up system instructions": [[6, "different-ways-to-set-up-system-instructions"]], "Ensemble": [[5, "ensemble"], [7, "ensemble"]], "Example combining ANES and templates": [[6, "example-combining-anes-and-templates"]], "Example combining ANES integration, Moderators, and different Structures": [[5, "example-combining-anes-integration-moderators-and-different-structures"]], "Features": [[2, "features"]], "Graph": [[5, "graph"], [7, "graph"]], "Helpers Module": [[2, "helpers-module"]], "Indices and tables": [[3, "indices-and-tables"]], "Inspecting the exact prompts that an Agent is doing": [[6, "inspecting-the-exact-prompts-that-an-agent-is-doing"]], "Installation": [[5, "installation"]], "Moderator system instructions set directly": [[8, "moderator-system-instructions-set-directly"]], "Moderators": [[4, "moderators"], [8, "moderators"]], "No system prompt": [[6, "no-system-prompt"]], "Overview": [[7, "overview"]], "Process tasks": [[6, "process-tasks"]], "Quick Start Guide": [[5, "quick-start-guide"]], "Set API keys": [[5, "set-api-keys"]], "Setting a Moderator\u2019s System Instructions": [[8, "setting-a-moderators-system-instructions"]], "Setting a Moderator\u2019s combination instructions": [[8, "setting-a-moderators-combination-instructions"]], "Setting your own combination instructions": [[7, "setting-your-own-combination-instructions"]], "Structures": [[4, "structures"], [7, "structures"]], "Templates": [[4, "templates"]], "Tracing what is going on in Structures": [[7, "tracing-what-is-going-on-in-structures"]], "Tutorials": [[3, null]], "User-defined system prompt": [[6, "user-defined-system-prompt"]], "Using ANES for nationally representative personas": [[6, "using-anes-for-nationally-representative-personas"]], "Using Different LLM Models": [[6, "using-different-llm-models"]], "Using a template for combination instructions": [[7, "using-a-template-for-combination-instructions"]], "Using templates": [[6, "using-templates"]], "Via personas": [[8, "via-personas"]], "Welcome to Plurals docs!": [[3, "welcome-to-plurals-docs"]]}, "docnames": ["agent", "deliberation", "helpers", "index", "tutorial_1_core", "tutorial_2_quick_start", "tutorial_3_agents", "tutorial_4_structures", "tutorial_5_moderators"], "envversion": {"sphinx": 61, "sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.viewcode": 1}, "filenames": ["agent.rst", "deliberation.rst", "helpers.rst", "index.rst", "tutorial_1_core.rst", "tutorial_2_quick_start.rst", "tutorial_3_agents.rst", "tutorial_4_structures.rst", "tutorial_5_moderators.rst"], "indexentries": {"abstractstructure (class in plurals.deliberation)": [[1, "plurals.deliberation.AbstractStructure", false]], "agent (class in plurals.agent)": [[0, "plurals.agent.Agent", false]], "agents (plurals.deliberation.abstractstructure attribute)": [[1, "plurals.deliberation.AbstractStructure.agents", false]], "chain (class in plurals.deliberation)": [[1, "plurals.deliberation.Chain", false]], "combination_instructions (plurals.deliberation.abstractstructure attribute)": [[1, "plurals.deliberation.AbstractStructure.combination_instructions", false]], "combination_instructions (plurals.deliberation.moderator attribute)": [[1, "plurals.deliberation.Moderator.combination_instructions", false]], "current_task_description (plurals.agent.agent attribute)": [[0, "plurals.agent.Agent.current_task_description", false]], "cycles (plurals.deliberation.abstractstructure attribute)": [[1, "plurals.deliberation.AbstractStructure.cycles", false]], "data (plurals.agent.agent attribute)": [[0, "plurals.agent.Agent.data", false]], "debate (class in plurals.deliberation)": [[1, "plurals.deliberation.Debate", false]], "defaults (plurals.deliberation.abstractstructure attribute)": [[1, "plurals.deliberation.AbstractStructure.defaults", false]], "ensemble (class in plurals.deliberation)": [[1, "plurals.deliberation.Ensemble", false]], "final_response (plurals.deliberation.abstractstructure attribute)": [[1, "plurals.deliberation.AbstractStructure.final_response", false]], "format() (plurals.helpers.smartstring method)": [[2, "plurals.helpers.SmartString.format", false]], "format_previous_responses() (in module plurals.helpers)": [[2, "plurals.helpers.format_previous_responses", false]], "generate_and_set_system_instructions() (plurals.deliberation.moderator method)": [[1, "plurals.deliberation.Moderator.generate_and_set_system_instructions", false]], "generate_system_instructions() (plurals.deliberation.moderator method)": [[1, "plurals.deliberation.Moderator.generate_system_instructions", false]], "graph (class in plurals.deliberation)": [[1, "plurals.deliberation.Graph", false]], "handle_default_persona_template() (plurals.agent.agent method)": [[0, "plurals.agent.Agent.handle_default_persona_template", false]], "history (plurals.agent.agent attribute)": [[0, "plurals.agent.Agent.history", false]], "history (plurals.agent.agent property)": [[0, "id0", false]], "info (plurals.agent.agent attribute)": [[0, "plurals.agent.Agent.info", false]], "info (plurals.agent.agent property)": [[0, "id3", false]], "info (plurals.deliberation.abstractstructure property)": [[1, "plurals.deliberation.AbstractStructure.info", false]], "is_anes_persona() (plurals.agent.agent method)": [[0, "plurals.agent.Agent.is_anes_persona", false]], "last_n (plurals.deliberation.abstractstructure attribute)": [[1, "plurals.deliberation.AbstractStructure.last_n", false]], "load_yaml() (in module plurals.helpers)": [[2, "plurals.helpers.load_yaml", false]], "moderated (plurals.deliberation.abstractstructure attribute)": [[1, "plurals.deliberation.AbstractStructure.moderated", false]], "moderator (class in plurals.deliberation)": [[1, "plurals.deliberation.Moderator", false]], "moderator (plurals.deliberation.abstractstructure attribute)": [[1, "plurals.deliberation.AbstractStructure.moderator", false]], "module": [[0, "module-plurals.agent", false], [1, "module-plurals.deliberation", false], [2, "module-plurals.helpers", false]], "original_task_description (plurals.agent.agent attribute)": [[0, "plurals.agent.Agent.original_task_description", false]], "persona (plurals.deliberation.moderator attribute)": [[1, "plurals.deliberation.Moderator.persona", false]], "persona_mapping (plurals.agent.agent attribute)": [[0, "plurals.agent.Agent.persona_mapping", false]], "plurals.agent": [[0, "module-plurals.agent", false]], "plurals.deliberation": [[1, "module-plurals.deliberation", false]], "plurals.helpers": [[2, "module-plurals.helpers", false]], "print_anes_mapping() (in module plurals.helpers)": [[2, "plurals.helpers.print_anes_mapping", false]], "process() (plurals.agent.agent method)": [[0, "plurals.agent.Agent.process", false]], "process() (plurals.deliberation.abstractstructure method)": [[1, "plurals.deliberation.AbstractStructure.process", false]], "process() (plurals.deliberation.chain method)": [[1, "plurals.deliberation.Chain.process", false]], "process() (plurals.deliberation.debate method)": [[1, "plurals.deliberation.Debate.process", false]], "process() (plurals.deliberation.ensemble method)": [[1, "plurals.deliberation.Ensemble.process", false]], "process() (plurals.deliberation.graph method)": [[1, "plurals.deliberation.Graph.process", false]], "prompts (plurals.agent.agent attribute)": [[0, "plurals.agent.Agent.prompts", false]], "prompts (plurals.agent.agent property)": [[0, "id4", false]], "responses (plurals.agent.agent attribute)": [[0, "plurals.agent.Agent.responses", false]], "responses (plurals.agent.agent property)": [[0, "id5", false]], "responses (plurals.deliberation.abstractstructure attribute)": [[1, "plurals.deliberation.AbstractStructure.responses", false]], "set_task() (plurals.agent.agent method)": [[0, "plurals.agent.Agent.set_task", false]], "shuffle (plurals.deliberation.abstractstructure attribute)": [[1, "plurals.deliberation.AbstractStructure.shuffle", false]], "smartstring (class in plurals.helpers)": [[2, "plurals.helpers.SmartString", false]], "strip_nested_dict() (in module plurals.helpers)": [[2, "plurals.helpers.strip_nested_dict", false]], "system_instructions (plurals.agent.agent attribute)": [[0, "plurals.agent.Agent.system_instructions", false]], "system_instructions (plurals.deliberation.moderator attribute)": [[1, "plurals.deliberation.Moderator.system_instructions", false]], "task (plurals.deliberation.abstractstructure attribute)": [[1, "plurals.deliberation.AbstractStructure.task", false]]}, "objects": {"plurals": [[0, 0, 0, "-", "agent"], [1, 0, 0, "-", "deliberation"], [2, 0, 0, "-", "helpers"]], "plurals.agent": [[0, 1, 1, "", "Agent"]], "plurals.agent.Agent": [[0, 2, 1, "", "current_task_description"], [0, 2, 1, "", "data"], [0, 3, 1, "", "handle_default_persona_template"], [0, 4, 1, "id0", "history"], [0, 4, 1, "id3", "info"], [0, 3, 1, "", "is_anes_persona"], [0, 2, 1, "", "original_task_description"], [0, 2, 1, "", "persona_mapping"], [0, 3, 1, "", "process"], [0, 4, 1, "id4", "prompts"], [0, 4, 1, "id5", "responses"], [0, 3, 1, "", "set_task"], [0, 2, 1, "", "system_instructions"]], "plurals.deliberation": [[1, 1, 1, "", "AbstractStructure"], [1, 1, 1, "", "Chain"], [1, 1, 1, "", "Debate"], [1, 1, 1, "", "Ensemble"], [1, 1, 1, "", "Graph"], [1, 1, 1, "", "Moderator"]], "plurals.deliberation.AbstractStructure": [[1, 2, 1, "", "agents"], [1, 2, 1, "", "combination_instructions"], [1, 2, 1, "", "cycles"], [1, 2, 1, "", "defaults"], [1, 2, 1, "", "final_response"], [1, 4, 1, "", "info"], [1, 2, 1, "", "last_n"], [1, 2, 1, "", "moderated"], [1, 2, 1, "", "moderator"], [1, 3, 1, "", "process"], [1, 2, 1, "", "responses"], [1, 2, 1, "", "shuffle"], [1, 2, 1, "", "task"]], "plurals.deliberation.Chain": [[1, 3, 1, "", "process"]], "plurals.deliberation.Debate": [[1, 3, 1, "", "process"]], "plurals.deliberation.Ensemble": [[1, 3, 1, "", "process"]], "plurals.deliberation.Graph": [[1, 3, 1, "", "process"]], "plurals.deliberation.Moderator": [[1, 2, 1, "", "combination_instructions"], [1, 3, 1, "", "generate_and_set_system_instructions"], [1, 3, 1, "", "generate_system_instructions"], [1, 2, 1, "", "persona"], [1, 2, 1, "", "system_instructions"]], "plurals.helpers": [[2, 1, 1, "", "SmartString"], [2, 5, 1, "", "format_previous_responses"], [2, 5, 1, "", "load_yaml"], [2, 5, 1, "", "print_anes_mapping"], [2, 5, 1, "", "strip_nested_dict"]], "plurals.helpers.SmartString": [[2, 3, 1, "", "format"]]}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "class", "Python class"], "2": ["py", "attribute", "Python attribute"], "3": ["py", "method", "Python method"], "4": ["py", "property", "Python property"], "5": ["py", "function", "Python function"]}, "objtypes": {"0": "py:module", "1": "py:class", "2": "py:attribute", "3": "py:method", "4": "py:property", "5": "py:function"}, "terms": {"": [0, 1, 2, 3, 4, 5, 6, 7], "0": [0, 1, 2, 6], "1": [0, 1, 7], "10": [1, 7, 8], "100": 7, "1000": 1, "11": 7, "18": [0, 2, 6], "1920": 7, "2": 1, "20": [1, 6, 7, 8], "200": [0, 6, 7], "2024": 6, "20240229": 7, "24": 1, "3": [1, 5, 7, 8], "30": 7, "4": [4, 5, 6, 7], "49": 6, "4o": [0, 1, 5, 6, 7, 8], "5": [1, 6, 7, 8], "50": [5, 6, 7], "500": [0, 6], "57": 0, "6": 7, "68": 6, "76": 6, "80": 6, "86": 6, "A": [0, 1, 2, 4, 5, 6, 7], "AND": 2, "And": [3, 7], "As": [1, 6, 8], "Be": 0, "But": 6, "By": [1, 6, 8], "For": [1, 4, 6, 7, 8], "If": [0, 1, 2, 4, 6, 8], "In": [1, 2, 4, 5, 6, 7], "It": [0, 1, 5, 6, 7], "NOT": [2, 7], "No": [0, 2, 7], "One": [5, 7], "Or": [6, 8], "THESE": 7, "TO": 7, "The": [0, 1, 2, 3, 4, 5, 6, 7, 8], "Then": 1, "There": [3, 7, 8], "These": [0, 1, 4, 5, 6, 7, 8], "To": [1, 7], "WITH": 7, "Will": 7, "a1": 1, "a2": 1, "abandon": 6, "abc": 1, "abid": 6, "abil": 5, "abl": 4, "about": [1, 6, 7], "abov": 6, "abstract": 1, "abstractstructur": [1, 3], "access": [0, 1, 6, 7, 8], "accord": [0, 1], "accur": 7, "accuraci": 7, "achiev": 6, "action": 7, "actual": 8, "acycl": [1, 4, 5, 7], "ad": [5, 7], "add": [1, 6], "addit": [0, 1, 7], "addition": 7, "adopt": [0, 6], "adversari": 5, "advis": 7, "afford": 6, "after": 1, "ag": [0, 6], "again": [0, 1], "agent": [1, 2, 3, 5, 7, 8], "agent1": [1, 4, 5, 7], "agent2": [1, 4, 5, 7], "agent3": [1, 5, 7], "agent_dict": 5, "agent_inform": 7, "aggreg": [4, 8], "agreement": 7, "agricultur": 6, "ai": [4, 6, 7], "aim": 6, "algorithm": [1, 2], "all": [0, 1, 2, 5, 6, 7, 8], "allow": [0, 4, 6, 7], "alon": 0, "along": 7, "alongsid": 7, "alreadi": 2, "also": [0, 1, 2, 4, 5, 6, 7, 8], "altern": 1, "although": 6, "alwai": [0, 6], "amen": 7, "america": [1, 6, 7], "american": [0, 4, 5, 6], "amount": 4, "an": [0, 1, 2, 3, 4, 7, 8], "ani": [0, 1, 2, 6, 7, 8], "anoth": [4, 6], "answer": [0, 1, 5, 6, 7, 8], "anthropic_api_kei": [5, 6], "api": [6, 7], "app": [0, 1, 6], "appalachian": 6, "appeal": 7, "append": 1, "appli": 7, "approach": [6, 7], "appropri": 0, "ar": [0, 1, 2, 3, 4, 5, 6, 7, 8], "area": [0, 6], "argument": [0, 1, 4, 5, 6, 7], "around": 7, "artwork": 7, "ashkinaz": 0, "ask": 2, "assault": 6, "assum": 2, "async": 1, "attempt": 1, "attract": 7, "attribut": [0, 1, 6, 7], "author": 7, "auto": [1, 4], "autom": 0, "automat": [0, 1, 2], "avail": [7, 8], "avoid_double_period": 2, "awai": 6, "awar": 1, "b": [1, 2, 5, 7, 8], "back": [4, 5, 7], "backend": [4, 6], "background": 7, "balanc": [6, 7], "ban": 6, "base": [0, 1, 2, 4, 6, 7, 8], "base_path": 2, "basic": [4, 6, 7], "bat": 8, "beauti": 6, "beautifi": 7, "becaus": 5, "becom": [1, 7], "been": [0, 1, 6], "befor": [1, 8], "behavior": [4, 5, 6, 7], "behind": 6, "being": 6, "believ": 4, "below": [0, 1], "bench": 7, "benefit": 7, "best": 5, "bestsel": 7, "better": [5, 7], "between": [1, 4, 5, 7], "big": 7, "binari": 6, "biodivers": 7, "bit": 7, "blank": [1, 4, 6], "bool": [0, 1, 2], "bootstrap": 8, "bore": 8, "both": [1, 2, 4, 5, 6, 7], "box": 7, "brace": 2, "brainstorm": [1, 7], "break": 2, "brilliant": 7, "bring": 6, "build": [0, 1, 4, 7], "bunch": [3, 5], "buyer": 7, "c": 2, "california": 7, "call": [1, 4, 6, 7, 8], "can": [0, 1, 2, 4, 5, 6, 7, 8], "cannot": [1, 8], "captur": 1, "carbon": 5, "care": [6, 7], "carolina": 6, "case": [1, 2, 6], "cat": 5, "caus": 2, "certain": 2, "cfo": 6, "chain": [1, 3, 4, 8], "chang": [1, 7], "charact": 7, "characterist": [0, 6], "charg": 7, "check": 2, "cherish": 6, "child18": 2, "children": [0, 2, 6], "choic": 2, "chronolog": 0, "citi": [6, 7], "citizen": [0, 1, 5, 6], "clarifi": 6, "class": [0, 1, 2, 8], "classif": 6, "claud": [4, 6, 7], "cleaner": 6, "climat": [1, 7], "closer": 6, "coal": 6, "code": 6, "codebook": 2, "cohes": 7, "collect": 7, "colleg": 6, "column": 6, "com": 7, "comb": 7, "combat": [1, 7], "combin": [0, 1, 2, 3, 4], "combination_instruct": [0, 1, 5, 7, 8], "come": [1, 6, 8], "common": [1, 6], "commun": [0, 4, 6], "company_rol": 6, "compassion": 0, "compel": 7, "compil": 8, "complet": [0, 1, 2, 4, 6], "comprehens": [0, 6], "con_answ": 6, "concept": [1, 3, 8], "concern": 6, "conclus": 1, "concret": 1, "condit": [2, 6], "conduct": 2, "configur": 0, "conflict": 6, "conjunct": 0, "conneceted": 7, "conserv": [0, 1, 6, 7], "conservative_ag": 6, "consid": [4, 7], "consider": 7, "consist": 6, "constitut": [4, 6, 7], "constrain": 6, "constraint": [0, 6], "construct": [0, 1, 2, 4, 6], "consult": 2, "contain": [0, 2, 6], "content": [2, 7], "contribut": 6, "control": [1, 4, 7], "convent": 8, "convinc": [5, 7], "core": 3, "correct": [0, 6, 7], "correspond": [1, 7], "cost": [6, 7], "could": [5, 6, 7], "countri": 6, "cours": 8, "craft": 7, "creat": [0, 1, 4, 5, 6, 7], "creation": [0, 2, 4, 6], "creativ": [1, 7, 8], "crimin": 6, "criteria": [0, 6], "critiqu": [4, 5, 6, 7], "critique_revis": 7, "crucial": 6, "curli": 2, "current": [0, 2, 4, 6], "current_task_descript": 0, "custom": [0, 2, 4, 5, 7, 8], "customiz": [0, 4, 6], "cut": 7, "cycl": [1, 4, 5, 7], "d": 2, "dag": [1, 4, 5, 7], "data": [0, 2, 6, 7], "datafram": 0, "dataset": [0, 2, 4, 6], "deal": 7, "debat": [1, 3, 4], "decad": 6, "decis": [4, 7], "declar": 1, "decreas": 1, "def": [6, 7], "default": [0, 1, 2, 4, 5, 6, 7, 8], "default_ag": 6, "default_answ": 6, "defin": [4, 5, 7, 8], "degre": [1, 4], "delib": [4, 6, 7], "deliber": [3, 4, 5, 6, 7, 8], "demand": 4, "democraci": [4, 6, 7], "democrat": 6, "demograph": [0, 5, 6], "densiti": 4, "depend": [1, 5], "deriv": [4, 7], "describ": [4, 6, 7], "descript": [0, 1, 2, 4, 6], "desert": 6, "design": [1, 7], "detail": 0, "detect": 1, "determin": 1, "develop": 7, "deviat": 0, "dict": [0, 1, 2], "dictat": 0, "dictionari": [0, 1, 2, 5, 6, 7], "differ": [1, 3, 7, 8], "difficult": 2, "direct": [0, 1, 4, 5, 7], "direction": 4, "directli": [0, 1, 5, 6], "directori": 2, "disclos": [0, 6], "discuss": [1, 4, 7], "distinct": [4, 6, 8], "diverg": 7, "divers": [1, 8], "do": [0, 2, 3, 7, 8], "doc": [0, 1, 6], "document": 7, "dog": 5, "down": [6, 7], "draft": 6, "draw": 7, "drawn": 5, "dst_agent_nam": 1, "dst_idx": 1, "duplic": [1, 8], "dure": [0, 2], "dynam": [0, 7], "e": [0, 1, 4, 5, 6, 7], "each": [1, 4, 5, 6, 7], "eco": 7, "economi": 6, "economist": 7, "ecosystem": 6, "edg": [1, 2, 5, 7], "editor": 7, "educ": [0, 6], "effect": 8, "eg": 0, "either": [0, 6], "elderli": 1, "elect": [0, 4, 5, 6], "electr": 7, "element": 7, "elimin": 8, "els": [0, 1], "embed": 7, "emiss": 5, "emot": [0, 6], "empathet": 0, "empathi": 6, "empir": [4, 6], "employ": [0, 6], "empti": [1, 2], "enact": [0, 5], "encourag": 6, "end": [1, 2, 5, 7, 8], "energ": 6, "energi": [6, 7], "enforc": 6, "engag": [4, 6, 7], "enhanc": 7, "enjoi": 6, "enjoy": 7, "ensembl": [1, 3, 4, 8], "ensur": [0, 1, 6, 8], "enter": 0, "entir": 6, "env": 6, "environ": [5, 6], "environment": [6, 7], "error": [1, 2], "especi": 6, "essenti": 3, "etc": 6, "even": 5, "everi": [4, 6, 7], "everyon": 6, "evid": 7, "exact": 3, "exactli": [0, 1, 6], "exampl": [0, 1, 2, 3, 4, 7, 8], "excerpt": 6, "exclud": 8, "exist": [4, 6], "expans": 6, "expect": 8, "expens": 7, "experi": 6, "experienc": 7, "expert": [1, 5, 7], "explan": 2, "explicit": 2, "extent": 1, "extern": 0, "extra": 2, "extract_federalist_pap": 7, "f": 7, "fact": 0, "faction": 7, "fair": 6, "fals": 1, "famili": 6, "famou": 7, "farm": 6, "feasibl": [5, 7, 8], "featur": [4, 6, 7], "fed": 1, "fed_10": 7, "federalist": 7, "federalist_paper_10": 7, "feedback": 6, "few": [1, 6], "field": 6, "file": [1, 2, 8], "file_path": 2, "fill": [6, 7, 8], "filter": [0, 2, 6], "final": [0, 1, 2, 4, 7], "final_respons": [1, 5, 7], "find": [4, 6], "first": [2, 3, 4, 5, 6, 7], "first_wav": 7, "firstli": 6, "fish": 6, "fit": 7, "fix": 2, "florida": 1, "flower": 7, "focu": [6, 7, 8], "follow": [0, 2, 6, 7], "foot": 7, "foreach": 2, "foreign": 6, "form": [0, 4, 6], "format": 6, "format_previous_respons": [2, 3], "forth": [4, 5, 7], "foster": 6, "found": [4, 7, 8], "free": [1, 7], "friendli": 7, "from": [0, 1, 2, 4, 5, 6, 7, 8], "full": [0, 1, 2, 6], "full_text": 7, "function": [0, 1, 2, 6], "further": 8, "futur": 6, "g": [1, 4, 5, 6, 7], "garden": 7, "gather": 7, "gender": [0, 6], "gender4": 6, "gener": [0, 1, 2, 4, 6, 7, 8], "generate_and_set_system_instruct": [1, 8], "generate_system_instruct": [1, 8], "geograph": [0, 6], "get": [0, 2, 6, 7, 8], "github": [4, 6], "githubusercont": 7, "give": [0, 4, 5, 6, 7], "given": [1, 4, 7, 8], "go": [0, 3, 5, 6, 8], "goal": [1, 5, 6, 8], "god": 6, "goe": 4, "good": 6, "goodyb": 0, "govern": [1, 4, 6, 7], "gpt": [0, 1, 4, 5, 6, 7, 8], "gpt3": [6, 7], "gpt4": [6, 7], "grad": 6, "graduat": [0, 6], "graph": [1, 3, 4], "group": [1, 7], "guid": 3, "gun": 6, "ha": [1, 6, 7], "had": 7, "handle_default_persona_templ": 0, "happen": 2, "hard": 6, "have": [0, 1, 2, 4, 5, 6, 7, 8], "health": 6, "healthcar": 7, "healthi": 6, "heartfelt": 0, "heat": 7, "hello": [0, 6], "help": [0, 6], "helper": [3, 6], "henc": 2, "here": [0, 1, 2, 5, 6, 7, 8], "heritag": 6, "high": [0, 4, 6, 7], "higher": 6, "highli": [5, 7], "highlight": 1, "hill": 6, "hispan": [0, 1], "histor": 7, "histori": [0, 6, 7], "home": 6, "homemak": 6, "honor": 6, "household": [0, 2, 6], "how": [0, 1, 4, 5, 6, 7, 8], "howev": [1, 8], "http": [0, 1, 6, 7], "human": 2, "hurt": 6, "i": [0, 1, 2, 3, 4, 5, 8], "idea": [1, 6, 7, 8], "ideal": [4, 6, 7], "ident": [0, 6], "identifi": [0, 4, 6, 8], "ideo5": [0, 6], "ideolog": [0, 6], "ideologi": [0, 4, 5], "imagin": [1, 8], "impact": 8, "implement": [1, 4], "implic": 7, "import": [0, 5, 6, 7, 8], "improv": [1, 5, 6, 7], "includ": [0, 1, 3, 4, 6, 7], "inclus": 2, "incorpor": [0, 7], "incredibli": 6, "independ": [0, 1, 5, 6], "index": 3, "indic": [1, 6], "industri": 6, "influenc": 0, "info": [0, 1, 6, 7], "inform": [0, 1, 4, 5, 6, 7, 8], "ingeni": 7, "inherit": [0, 1, 4, 6, 8], "initi": [0, 1, 4, 5, 8], "innov": [5, 7, 8], "input": [0, 1, 6, 7, 8], "inputst": [0, 6], "insid": 1, "inspect": [0, 1, 3, 8], "inspir": [4, 6, 8], "instal": [3, 7], "instanc": 6, "instanti": [0, 1], "instead": [0, 6], "instruct": [0, 1, 3, 4, 5], "int": 1, "integ": 1, "integr": [3, 4, 7], "interact": [4, 5, 7], "interest": 6, "interfac": 1, "intern": 2, "introduc": [4, 7], "invest": 6, "involv": [1, 4, 6], "is_anes_persona": 0, "isol": 4, "issu": 4, "item": 7, "its": [0, 1, 2, 8], "itself": 1, "jame": 7, "job": 6, "jonluca": 7, "josh": 0, "json": 2, "juri": 7, "juror": [4, 6, 7], "just": [2, 5, 6, 7], "kahn": 1, "kei": [1, 2, 3, 4, 6, 7], "keyword": [0, 1, 4, 6, 7], "kick": 7, "kind": [4, 6, 7], "know": [2, 6], "kwarg": [0, 1, 2, 6], "land": 6, "landscap": 6, "languag": [0, 6], "larger": [4, 6], "last": [1, 7], "last_n": [1, 4, 7], "later": 5, "latter": 0, "law": 6, "lead": 6, "least": 8, "left": [1, 4, 6], "len": 6, "let": [6, 7, 8], "level": [0, 3, 4, 5, 6, 7], "leverag": [0, 4, 5, 6], "lib_answ": 6, "lib_answer1": 6, "lib_answer2": 6, "lib_answer3": 6, "liber": [0, 1, 4, 5, 6, 7], "liberal_ag": [4, 6], "libertarian": 1, "librari": 7, "like": [0, 2, 6, 7, 8], "limit": 6, "line": 7, "linear": 4, "link": 8, "list": [0, 1, 2, 7, 8], "listen": 7, "litellm": [0, 1, 6], "live": [0, 2, 6], "llm": [0, 1, 3, 4, 5, 8], "load": [0, 2], "load_yaml": [2, 3], "local": [6, 7], "locat": [0, 2], "logic": 4, "look": 6, "louvr": 7, "low": 7, "lower": 3, "madison": 7, "mai": [0, 4, 6], "main": [0, 6], "mainten": 7, "make": [0, 6, 7], "man": [0, 1, 6, 7], "mani": [1, 4, 6, 7], "manual": [0, 1, 4, 5, 6], "map": [0, 2, 6], "march": 6, "market": 6, "master": 7, "match": [0, 7], "max": 6, "max_token": [0, 6], "max_tri": 1, "maxim": [1, 8], "maximum": 1, "mean": [5, 7], "meant": [1, 2, 7, 8], "measur": 4, "mental": 6, "mention": 7, "messag": 5, "met": 2, "method": [0, 1, 2, 4, 5, 6, 8], "metro": 6, "michigan": 0, "might": 6, "mind": 7, "mini": [1, 5], "mirror": 6, "missouri": 1, "mix": 7, "mod": [1, 8], "model": [0, 1, 3, 4, 5, 7, 8], "moder": [0, 1, 3, 6, 7], "moderator_task": 1, "modul": [3, 7], "monitor": 7, "more": [0, 2, 5, 6, 7], "moreov": 6, "most": [1, 7, 8], "move": 6, "movi": 7, "much": [6, 8], "multi": [0, 4, 7, 8], "multipl": [2, 4, 7, 8], "must": [0, 1], "my": 7, "mysteri": 7, "n": [0, 6, 7], "nagent": 7, "name": [0, 1, 6], "narr": [0, 6], "narrow": 7, "nation": [0, 4, 5, 7], "natur": 6, "necessarili": 6, "need": 1, "neighborhood": 7, "neither": 2, "nest": 2, "network": [1, 4, 7], "neutral": [1, 8], "new": [0, 4, 6, 7], "next": 2, "nhistori": 6, "nice": 2, "ninfo": 6, "nlp": 7, "nois": 7, "non": [6, 7], "none": [0, 1], "nor": 2, "normal": [0, 2, 6, 8], "north": 6, "northeast": 0, "note": [0, 1, 2, 6, 7, 8], "novel": [5, 7], "novelti": [1, 8], "now": [0, 6, 8], "nrespons": [2, 6], "null": 0, "number": [1, 4, 6, 7], "nurtur": 6, "o": [5, 6], "object": [0, 1], "observ": 1, "obviou": 7, "offer": [1, 6, 7], "offic": 6, "often": 2, "okai": [0, 6], "old": [1, 7], "onc": 5, "one": [0, 1, 4, 6, 7], "onli": [1, 4, 5, 6, 7], "open": 4, "openai_api_kei": [5, 6], "oper": [0, 1], "operation": 8, "opportun": 6, "optim": [5, 7], "option": [0, 1, 2, 4, 7, 8], "order": [1, 4, 7], "origin": [0, 2, 8], "original_task_descript": 0, "other": [0, 1, 2, 4, 5, 6, 7], "otherwis": [0, 2], "our": [4, 5, 6, 7, 8], "out": 6, "outlin": 7, "output": [1, 2, 4, 6, 7], "outsid": [1, 7], "overli": [0, 6, 8], "overrid": [0, 2], "overse": [1, 7, 8], "overview": 3, "own": [0, 1, 2, 4, 5, 6, 8], "packag": [2, 6], "pair": 2, "panda": 0, "panel": [1, 7], "pant": [1, 8], "paper": [4, 5, 7], "paragraph": 6, "parallel": [4, 7], "param": 0, "paramet": [0, 1, 2, 4, 7], "pari": 7, "part": [0, 3], "parti": 6, "particip": [1, 2, 4], "particular": 8, "partisan": [0, 6], "pass": [0, 1, 2, 5, 6, 7, 8], "path": [2, 7], "pathwai": 7, "pattern": 7, "pd": 0, "peopl": 7, "perform": [0, 6], "perhap": 5, "person": 6, "persona": [0, 1, 2, 4, 5, 7], "persona_map": 0, "persona_templ": [0, 1, 5, 6, 7, 8], "perspect": [0, 4, 6], "phd": 1, "philosoph": 7, "philosophi": 7, "pick": 0, "pictur": 7, "pilot": 6, "pip": 5, "pirat": [0, 6], "pirate_ag": 0, "pirate_goodyb": 0, "pirate_hello": 0, "placehold": [0, 1, 2, 6, 7, 8], "plain": [0, 6], "plan": 7, "planter": 7, "pleas": 4, "plot": 7, "plu": [2, 6, 7], "plural": [0, 1, 2, 4, 5, 6, 7, 8], "polar": 8, "polit": [0, 6], "popul": 6, "port": 7, "posit": 7, "possibl": [1, 8], "post": 6, "potenti": [1, 7, 8], "power": 7, "practic": 7, "pre": 8, "predecessor": 4, "predict": [0, 6], "prefer": 2, "prefix": 1, "present": 2, "prevent": [1, 2], "previou": [0, 1, 2, 4, 5, 7, 8], "previous_respons": [0, 1, 5, 7, 8], "print": [0, 1, 2, 5, 6, 7, 8], "print_anes_map": [2, 3, 6], "printwrap": 6, "prior": [0, 1, 4, 5, 6, 7], "prior_respons": 7, "priorit": [1, 8], "probabl": 6, "problem": [2, 6], "process": [0, 1, 2, 3, 4, 5, 7], "profil": [4, 6, 8], "promot": 7, "prompt": [0, 1, 3, 4, 5, 7], "properti": [0, 1, 7], "prosper": 6, "protect": 6, "provid": [0, 1, 4, 6, 7], "psychologi": 7, "psychologist": 7, "purpos": [2, 7], "put": [5, 7, 8], "python": 2, "queri": [0, 2], "query_str": [0, 6], "question": [0, 2, 6], "queue": 1, "quick": 3, "quickli": 6, "r": 7, "race": [0, 6], "rag": 7, "rais": [1, 7], "ran": 5, "random": [0, 1, 4, 5, 7], "randomli": [0, 4, 6], "rang": [1, 6, 7, 8], "rank": 8, "rather": 1, "rational": 6, "raw": 7, "re": [1, 7], "reach": 7, "readabl": 2, "reader": 7, "reason": [4, 6, 7], "recod": 2, "recommend": 7, "record": 0, "recreat": 6, "reduc": [5, 6], "reexamin": 7, "regard": [0, 6], "region": [0, 6], "regular": 8, "rel": [2, 7], "relat": 7, "relev": 8, "reli": [0, 4, 5, 6], "reliabl": 6, "relianc": 6, "rememb": 7, "remov": [1, 2], "renew": 7, "repeat": [4, 7], "repetit": [4, 8], "replac": [0, 1], "repres": [0, 4, 7, 8], "republican": [0, 6], "request": [1, 4, 7], "requir": 1, "resolv": 6, "reson": 5, "resourc": 6, "respect": [1, 6], "respit": 6, "respond": [0, 1, 4, 6], "respons": [0, 1, 2, 4, 5, 6, 7, 8], "result": [2, 7], "retir": 6, "retriev": 6, "return": [0, 1, 2, 5, 7], "review": 8, "revis": [4, 5, 6, 7], "revolv": 7, "rewir": 4, "rhetor": [0, 6], "rich": 7, "rifl": 6, "right": [1, 6], "road": 7, "role": 1, "roll": 6, "row": [0, 4, 6], "run": [6, 7], "rural": 6, "sad": 6, "safe_substitut": 2, "safeti": 6, "sai": [0, 6, 7], "said": [1, 7], "same": [0, 1, 5, 6, 7, 8], "sampl": [0, 4], "satisfi": 6, "scene": 6, "school": [0, 6], "scienc": 7, "scientist": 5, "script": 2, "search": 7, "second": [2, 3, 4, 6, 7], "second_wav": [0, 1, 6, 7], "second_wave_michigan": 0, "secur": 6, "see": [0, 1, 4, 5, 6, 7, 8], "seen": [5, 6], "select": [6, 7, 8], "self": [0, 6], "sens": 7, "sensor": 7, "sent": 1, "sequenc": [1, 5, 7], "sequenti": [4, 5, 7], "set": [0, 1, 3, 4], "set_task": 0, "sever": [0, 2, 6, 7], "share": [1, 4, 5, 7], "should": [0, 1, 2, 6, 7, 8], "shouldn": 6, "show": [5, 6, 7], "showcas": [6, 7], "shrub": 7, "shuffl": [1, 4, 7], "sidewalk": 7, "similar": [1, 8], "simpl": [7, 8], "simpli": [6, 7, 8], "simplic": 6, "simul": [0, 4, 5, 6], "simultan": 1, "sinc": [1, 6], "small": [6, 7], "smart": 7, "smartstr": [2, 3], "so": [0, 1, 6, 7, 8], "social": 4, "societi": 1, "sociologist": 7, "solar": 7, "sole": 0, "solv": 6, "some": [2, 6, 7, 8], "somebodi": 6, "sonnet": 7, "sort": 1, "sourc": [0, 1, 2, 6, 7], "south": 6, "southwest": 6, "span": [4, 6], "speaker": 1, "special": [4, 5, 6, 7, 8], "specif": [0, 1, 4, 6, 7], "specifi": 2, "src_agent_nam": 1, "src_idx": 1, "standard": [1, 2, 7], "standout": 1, "start": [3, 7, 8], "state": [0, 4, 6, 7], "statu": [0, 6], "steward": 6, "stop": 6, "stori": [6, 7], "story_dag": 7, "story_prompt": 7, "storytel": [0, 6], "str": [0, 1, 2], "strike": 7, "string": [0, 1], "strip": [2, 7], "strip_nested_dict": [2, 3], "structur": [0, 1, 3, 6, 8], "structure_inform": 7, "studi": [0, 4, 5, 6], "subclass": [1, 8], "submit": 8, "subset": [0, 4, 6], "suburban": [0, 6, 7], "successor": [1, 4], "summar": [1, 4, 5, 8], "summari": 7, "super": 7, "suppli": 0, "support": [0, 4, 6, 7, 8], "suppos": 1, "sure": 6, "surfac": 7, "sustain": 7, "synthes": [4, 7], "synthesi": 7, "system": [0, 1, 3, 4, 5, 7], "system_instruct": [0, 1, 5, 6, 7, 8], "t": 6, "take": [1, 6, 7], "talk": [0, 6], "task": [0, 1, 2, 3, 4, 5, 7, 8], "technologi": 6, "tell": 5, "temperatur": [0, 4, 6], "templat": [0, 1, 2, 3, 5, 8], "test": [4, 6, 7], "testimoni": [0, 6], "texa": 6, "text": [6, 7], "textwrap": 6, "than": [1, 5, 6], "theft": 7, "thei": [2, 4, 5, 6, 7, 8], "them": [1, 5, 6, 7, 8], "themselv": 6, "thi": [0, 1, 2, 3, 4, 5, 6, 7, 8], "thing": [2, 7], "think": [0, 6, 8], "those": 0, "though": 5, "thought": [1, 7, 8], "three": 1, "through": [0, 1, 6, 7], "tile": 7, "time": [0, 1, 5, 7, 8], "togeth": [0, 1, 7], "toi": 5, "token": 6, "too": [5, 6], "top": 8, "topolog": 1, "tourism": 6, "toward": 7, "town": 6, "trace": 3, "traffic": 7, "tragedi": 6, "trail": 2, "transit": 6, "transpar": 7, "trigger": 8, "true": [2, 4], "try": 4, "tupl": 1, "turbo": [1, 5, 6, 7, 8], "turn": [1, 4, 8], "two": [0, 1, 3, 4, 6, 7], "txt": 7, "type": [0, 1, 2], "u": [6, 7], "unanim": 7, "under": [0, 2, 6], "understand": 6, "undesir": 2, "uni": 7, "uniqu": [1, 8], "unit": 6, "unless": [2, 6], "unmodifi": 0, "up": [1, 3, 7, 8], "updat": 0, "upon": [0, 1], "upweight": 7, "urban": [6, 7], "url": 7, "us": [0, 1, 2, 3, 4, 5, 8], "usag": [1, 6], "user": [0, 2, 4, 5], "util": 6, "v": 1, "valid": 1, "valu": [0, 2, 4, 6], "valueerror": 1, "vari": 7, "variabl": [2, 5, 6], "variou": [0, 4, 6, 7], "ve": 6, "vercel": [0, 1, 6], "veri": [0, 4, 6], "version": 0, "via": [4, 6, 7], "view": [0, 4, 5, 6, 7], "viewpoint": [1, 6], "virginia": [0, 6], "visibl": [4, 5, 6], "vital": 6, "vote": [7, 8], "voter": 0, "wa": 7, "wai": [0, 1, 3, 4, 5, 7, 8], "walk": 7, "want": [0, 1, 2, 5, 6, 7], "wave": [4, 6, 7], "we": [0, 1, 2, 4, 5, 6, 7, 8], "wealthi": 7, "weapon": 6, "weight": [0, 4, 6], "welfar": 1, "well": [5, 6, 7], "west": [0, 6], "west_virginia": 6, "what": [0, 1, 2, 3, 5, 6, 8], "whatev": 0, "when": [0, 1, 2, 4, 5, 6, 7, 8], "where": [0, 1, 2, 4, 5, 6, 7, 8], "whether": [0, 1, 2, 7], "which": [0, 1, 2, 3, 4, 5, 6, 7, 8], "while": [1, 6, 7], "white": 6, "whitespac": 2, "who": [0, 1, 4, 5, 6, 7, 8], "wide": 4, "width": 6, "wish": 1, "within": [1, 4, 7], "without": [0, 2, 4, 7], "woman": [1, 6, 7], "won": 6, "wonder": 6, "word": [1, 5, 6, 7, 8], "work": [0, 6], "world": 7, "would": [0, 2, 4, 6, 7, 8], "wrap": 6, "wrapped_text": 6, "write": [0, 6, 7], "yaml": [0, 1, 2, 4, 6, 7, 8], "ye": [2, 6], "year": [1, 7], "york": [0, 4, 6, 7], "you": [0, 1, 2, 4, 5, 6, 7, 8], "your": [0, 1, 2, 5, 6, 8], "yourkei": [5, 6]}, "titles": ["Agent Module", "Deliberation Module", "Helpers Module", "Welcome to Plurals docs!", "Core Concepts", "Quick Start Guide", "Agents", "Structures", "Moderators"], "titleterms": {"": 8, "1": [2, 6], "2": [2, 6], "3": [2, 6], "No": 6, "agent": [0, 4, 6], "an": [5, 6], "api": [3, 5], "auto": 8, "avoid": 2, "chain": [5, 7], "combin": [5, 6, 7, 8], "concept": 4, "content": 3, "core": 4, "debat": [5, 7], "defin": 6, "deliber": 1, "differ": [5, 6], "directli": 8, "do": 6, "doc": 3, "document": 3, "doubl": 2, "ensembl": [5, 7], "exact": 6, "exampl": [5, 6], "featur": 2, "format": 2, "go": 7, "graph": [5, 7], "guid": 5, "helper": 2, "i": [6, 7], "ideologi": 6, "indic": 3, "initi": 6, "inspect": 6, "instal": 5, "instruct": [6, 7, 8], "integr": 5, "kei": 5, "llm": 6, "model": 6, "moder": [4, 5, 8], "modul": [0, 1, 2], "nation": 6, "none": 2, "option": 6, "overview": 7, "own": 7, "panda": 6, "period": 2, "persona": [6, 8], "plural": 3, "process": 6, "prompt": 6, "queri": 6, "quick": 5, "random": 6, "replac": 2, "repres": 6, "safe": 2, "sampl": 6, "search": 6, "set": [5, 6, 7, 8], "start": 5, "string": [2, 6], "structur": [4, 5, 7], "system": [6, 8], "tabl": 3, "task": 6, "templat": [4, 6, 7], "trace": 7, "tutori": 3, "up": 6, "us": [6, 7], "user": 6, "via": 8, "wai": 6, "welcom": 3, "what": 7, "your": 7}}) \ No newline at end of file +Search.setIndex({"alltitles": {"1. Safe String Formatting": [[2, "safe-string-formatting"]], "2. Avoid Double Periods": [[2, "avoid-double-periods"]], "3. None Replacement": [[2, "none-replacement"]], "ANES Option 1: ideology initializer": [[6, "anes-option-1-ideology-initializer"]], "ANES Option 2: Random sampling": [[6, "anes-option-2-random-sampling"]], "ANES Option 3: Searching ANES using a Pandas query string": [[6, "anes-option-3-searching-anes-using-a-pandas-query-string"]], "API Documentation": [[3, null]], "Agent Module": [[0, "agent-module"]], "Agents": [[4, "agents"], [6, "agents"]], "Auto-moderators": [[8, "auto-moderators"]], "Chain": [[5, "chain"], [7, "chain"]], "Combination instructions": [[7, "combination-instructions"]], "Contents": [[3, "contents"]], "Core Concepts": [[4, "core-concepts"]], "Debate": [[5, "debate"], [7, "debate"]], "Deliberation Module": [[1, "deliberation-module"]], "Different ways to set up system instructions": [[6, "different-ways-to-set-up-system-instructions"]], "Ensemble": [[5, "ensemble"], [7, "ensemble"]], "Example combining ANES and templates": [[6, "example-combining-anes-and-templates"]], "Example combining ANES integration, Moderators, and different Structures": [[5, "example-combining-anes-integration-moderators-and-different-structures"]], "Features": [[2, "features"]], "Graph": [[5, "graph"], [7, "graph"]], "Helpers Module": [[2, "helpers-module"]], "Indices and tables": [[3, "indices-and-tables"]], "Inspecting the exact prompts that an Agent is doing": [[6, "inspecting-the-exact-prompts-that-an-agent-is-doing"]], "Installation": [[5, "installation"]], "Moderator system instructions set directly": [[8, "moderator-system-instructions-set-directly"]], "Moderators": [[4, "moderators"], [8, "moderators"]], "No system prompt": [[6, "no-system-prompt"]], "Overview": [[7, "overview"]], "Process tasks": [[6, "process-tasks"]], "Quick Start Guide": [[5, "quick-start-guide"]], "Set API keys": [[5, "set-api-keys"]], "Setting a Moderator\u2019s combination instructions": [[8, "setting-a-moderators-combination-instructions"]], "Setting a Moderator\u2019s system instructions": [[8, "setting-a-moderators-system-instructions"]], "Setting your own combination instructions": [[7, "setting-your-own-combination-instructions"]], "Structures": [[4, "structures"], [7, "structures"]], "Templates": [[4, "templates"]], "Tracing what is going on in Structures": [[7, "tracing-what-is-going-on-in-structures"]], "Tutorials": [[3, null]], "User-defined system prompt": [[6, "user-defined-system-prompt"]], "Using ANES for nationally representative personas": [[6, "using-anes-for-nationally-representative-personas"]], "Using a template for combination instructions": [[7, "using-a-template-for-combination-instructions"]], "Using different LLMs": [[6, "using-different-llms"]], "Using templates": [[6, "using-templates"]], "Via personas": [[8, "via-personas"]], "Welcome to Plurals docs!": [[3, "welcome-to-plurals-docs"]]}, "docnames": ["agent", "deliberation", "helpers", "index", "tutorial_1_core", "tutorial_2_quick_start", "tutorial_3_agents", "tutorial_4_structures", "tutorial_5_moderators"], "envversion": {"sphinx": 61, "sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.viewcode": 1}, "filenames": ["agent.rst", "deliberation.rst", "helpers.rst", "index.rst", "tutorial_1_core.rst", "tutorial_2_quick_start.rst", "tutorial_3_agents.rst", "tutorial_4_structures.rst", "tutorial_5_moderators.rst"], "indexentries": {"abstractstructure (class in plurals.deliberation)": [[1, "plurals.deliberation.AbstractStructure", false]], "agent (class in plurals.agent)": [[0, "plurals.agent.Agent", false]], "agents (plurals.deliberation.abstractstructure attribute)": [[1, "plurals.deliberation.AbstractStructure.agents", false]], "chain (class in plurals.deliberation)": [[1, "plurals.deliberation.Chain", false]], "combination_instructions (plurals.deliberation.abstractstructure attribute)": [[1, "plurals.deliberation.AbstractStructure.combination_instructions", false]], "combination_instructions (plurals.deliberation.moderator attribute)": [[1, "plurals.deliberation.Moderator.combination_instructions", false]], "current_task_description (plurals.agent.agent attribute)": [[0, "plurals.agent.Agent.current_task_description", false]], "cycles (plurals.deliberation.abstractstructure attribute)": [[1, "plurals.deliberation.AbstractStructure.cycles", false]], "data (plurals.agent.agent attribute)": [[0, "plurals.agent.Agent.data", false]], "debate (class in plurals.deliberation)": [[1, "plurals.deliberation.Debate", false]], "defaults (plurals.deliberation.abstractstructure attribute)": [[1, "plurals.deliberation.AbstractStructure.defaults", false]], "ensemble (class in plurals.deliberation)": [[1, "plurals.deliberation.Ensemble", false]], "final_response (plurals.deliberation.abstractstructure attribute)": [[1, "plurals.deliberation.AbstractStructure.final_response", false]], "format() (plurals.helpers.smartstring method)": [[2, "plurals.helpers.SmartString.format", false]], "format_previous_responses() (in module plurals.helpers)": [[2, "plurals.helpers.format_previous_responses", false]], "generate_and_set_system_instructions() (plurals.deliberation.moderator method)": [[1, "plurals.deliberation.Moderator.generate_and_set_system_instructions", false]], "generate_system_instructions() (plurals.deliberation.moderator method)": [[1, "plurals.deliberation.Moderator.generate_system_instructions", false]], "graph (class in plurals.deliberation)": [[1, "plurals.deliberation.Graph", false]], "handle_default_persona_template() (plurals.agent.agent method)": [[0, "plurals.agent.Agent.handle_default_persona_template", false]], "history (plurals.agent.agent attribute)": [[0, "plurals.agent.Agent.history", false]], "history (plurals.agent.agent property)": [[0, "id0", false]], "info (plurals.agent.agent attribute)": [[0, "plurals.agent.Agent.info", false]], "info (plurals.agent.agent property)": [[0, "id3", false]], "info (plurals.deliberation.abstractstructure property)": [[1, "plurals.deliberation.AbstractStructure.info", false]], "is_anes_persona() (plurals.agent.agent method)": [[0, "plurals.agent.Agent.is_anes_persona", false]], "last_n (plurals.deliberation.abstractstructure attribute)": [[1, "plurals.deliberation.AbstractStructure.last_n", false]], "load_yaml() (in module plurals.helpers)": [[2, "plurals.helpers.load_yaml", false]], "moderated (plurals.deliberation.abstractstructure attribute)": [[1, "plurals.deliberation.AbstractStructure.moderated", false]], "moderator (class in plurals.deliberation)": [[1, "plurals.deliberation.Moderator", false]], "moderator (plurals.deliberation.abstractstructure attribute)": [[1, "plurals.deliberation.AbstractStructure.moderator", false]], "module": [[0, "module-plurals.agent", false], [1, "module-plurals.deliberation", false], [2, "module-plurals.helpers", false]], "original_task_description (plurals.agent.agent attribute)": [[0, "plurals.agent.Agent.original_task_description", false]], "persona (plurals.deliberation.moderator attribute)": [[1, "plurals.deliberation.Moderator.persona", false]], "persona_mapping (plurals.agent.agent attribute)": [[0, "plurals.agent.Agent.persona_mapping", false]], "plurals.agent": [[0, "module-plurals.agent", false]], "plurals.deliberation": [[1, "module-plurals.deliberation", false]], "plurals.helpers": [[2, "module-plurals.helpers", false]], "print_anes_mapping() (in module plurals.helpers)": [[2, "plurals.helpers.print_anes_mapping", false]], "process() (plurals.agent.agent method)": [[0, "plurals.agent.Agent.process", false]], "process() (plurals.deliberation.abstractstructure method)": [[1, "plurals.deliberation.AbstractStructure.process", false]], "process() (plurals.deliberation.chain method)": [[1, "plurals.deliberation.Chain.process", false]], "process() (plurals.deliberation.debate method)": [[1, "plurals.deliberation.Debate.process", false]], "process() (plurals.deliberation.ensemble method)": [[1, "plurals.deliberation.Ensemble.process", false]], "process() (plurals.deliberation.graph method)": [[1, "plurals.deliberation.Graph.process", false]], "prompts (plurals.agent.agent attribute)": [[0, "plurals.agent.Agent.prompts", false]], "prompts (plurals.agent.agent property)": [[0, "id4", false]], "responses (plurals.agent.agent attribute)": [[0, "plurals.agent.Agent.responses", false]], "responses (plurals.agent.agent property)": [[0, "id5", false]], "responses (plurals.deliberation.abstractstructure attribute)": [[1, "plurals.deliberation.AbstractStructure.responses", false]], "set_task() (plurals.agent.agent method)": [[0, "plurals.agent.Agent.set_task", false]], "shuffle (plurals.deliberation.abstractstructure attribute)": [[1, "plurals.deliberation.AbstractStructure.shuffle", false]], "smartstring (class in plurals.helpers)": [[2, "plurals.helpers.SmartString", false]], "strip_nested_dict() (in module plurals.helpers)": [[2, "plurals.helpers.strip_nested_dict", false]], "system_instructions (plurals.agent.agent attribute)": [[0, "plurals.agent.Agent.system_instructions", false]], "system_instructions (plurals.deliberation.moderator attribute)": [[1, "plurals.deliberation.Moderator.system_instructions", false]], "task (plurals.deliberation.abstractstructure attribute)": [[1, "plurals.deliberation.AbstractStructure.task", false]]}, "objects": {"plurals": [[0, 0, 0, "-", "agent"], [1, 0, 0, "-", "deliberation"], [2, 0, 0, "-", "helpers"]], "plurals.agent": [[0, 1, 1, "", "Agent"]], "plurals.agent.Agent": [[0, 2, 1, "", "current_task_description"], [0, 2, 1, "", "data"], [0, 3, 1, "", "handle_default_persona_template"], [0, 4, 1, "id0", "history"], [0, 4, 1, "id3", "info"], [0, 3, 1, "", "is_anes_persona"], [0, 2, 1, "", "original_task_description"], [0, 2, 1, "", "persona_mapping"], [0, 3, 1, "", "process"], [0, 4, 1, "id4", "prompts"], [0, 4, 1, "id5", "responses"], [0, 3, 1, "", "set_task"], [0, 2, 1, "", "system_instructions"]], "plurals.deliberation": [[1, 1, 1, "", "AbstractStructure"], [1, 1, 1, "", "Chain"], [1, 1, 1, "", "Debate"], [1, 1, 1, "", "Ensemble"], [1, 1, 1, "", "Graph"], [1, 1, 1, "", "Moderator"]], "plurals.deliberation.AbstractStructure": [[1, 2, 1, "", "agents"], [1, 2, 1, "", "combination_instructions"], [1, 2, 1, "", "cycles"], [1, 2, 1, "", "defaults"], [1, 2, 1, "", "final_response"], [1, 4, 1, "", "info"], [1, 2, 1, "", "last_n"], [1, 2, 1, "", "moderated"], [1, 2, 1, "", "moderator"], [1, 3, 1, "", "process"], [1, 2, 1, "", "responses"], [1, 2, 1, "", "shuffle"], [1, 2, 1, "", "task"]], "plurals.deliberation.Chain": [[1, 3, 1, "", "process"]], "plurals.deliberation.Debate": [[1, 3, 1, "", "process"]], "plurals.deliberation.Ensemble": [[1, 3, 1, "", "process"]], "plurals.deliberation.Graph": [[1, 3, 1, "", "process"]], "plurals.deliberation.Moderator": [[1, 2, 1, "", "combination_instructions"], [1, 3, 1, "", "generate_and_set_system_instructions"], [1, 3, 1, "", "generate_system_instructions"], [1, 2, 1, "", "persona"], [1, 2, 1, "", "system_instructions"]], "plurals.helpers": [[2, 1, 1, "", "SmartString"], [2, 5, 1, "", "format_previous_responses"], [2, 5, 1, "", "load_yaml"], [2, 5, 1, "", "print_anes_mapping"], [2, 5, 1, "", "strip_nested_dict"]], "plurals.helpers.SmartString": [[2, 3, 1, "", "format"]]}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "class", "Python class"], "2": ["py", "attribute", "Python attribute"], "3": ["py", "method", "Python method"], "4": ["py", "property", "Python property"], "5": ["py", "function", "Python function"]}, "objtypes": {"0": "py:module", "1": "py:class", "2": "py:attribute", "3": "py:method", "4": "py:property", "5": "py:function"}, "terms": {"": [0, 1, 2, 3, 4, 5, 6, 7], "0": [0, 1, 2, 6], "1": [0, 1, 7], "10": [1, 7, 8], "100": 7, "1000": 1, "11": 7, "18": [0, 2, 6], "1920": 7, "2": 1, "20": [1, 6, 7, 8], "200": [0, 6, 7], "2024": 6, "20240229": 7, "24": 1, "3": [1, 5, 7, 8], "30": 7, "4": [4, 5, 6, 7], "49": 6, "4o": [0, 1, 5, 6, 7, 8], "5": [1, 6, 7, 8], "50": [5, 6, 7], "500": [0, 6], "57": 0, "6": 7, "68": 6, "76": 6, "80": 6, "86": 6, "A": [0, 1, 2, 4, 5, 6, 7], "AND": 2, "And": [3, 7], "As": [1, 6, 8], "Be": 0, "But": 6, "By": [1, 6, 8], "For": [1, 4, 6, 7, 8], "If": [0, 1, 2, 4, 6, 8], "In": [1, 2, 4, 5, 6, 7], "It": [0, 1, 5, 6, 7], "NOT": [2, 7], "No": [0, 2, 7], "One": [5, 7], "Or": [6, 8], "THESE": 7, "TO": 7, "The": [0, 1, 2, 3, 4, 5, 6, 7, 8], "Then": 1, "There": [3, 7, 8], "These": [0, 1, 4, 5, 6, 7, 8], "To": [1, 7], "WITH": 7, "Will": 7, "a1": 1, "a2": 1, "abandon": 6, "abc": 1, "abid": 6, "abil": 5, "abl": 4, "about": [1, 6, 7], "abov": 6, "abstract": 1, "abstractstructur": [1, 3], "access": [0, 1, 6, 7, 8], "accord": [0, 1], "accur": 7, "accuraci": 7, "achiev": 6, "action": 7, "actual": 8, "acycl": [1, 4, 5, 7], "ad": [5, 7], "add": [1, 6], "addit": [0, 1, 7], "addition": 7, "adopt": [0, 6], "adversari": 5, "advis": 7, "afford": 6, "after": 1, "ag": [0, 6], "again": [0, 1], "agent": [1, 2, 3, 5, 7, 8], "agent1": [1, 4, 5, 7], "agent2": [1, 4, 5, 7], "agent3": [1, 5, 7], "agent_dict": 5, "agent_inform": 7, "aggreg": [4, 8], "agreement": 7, "agricultur": 6, "ai": [4, 6, 7], "aim": 6, "algorithm": [1, 2], "all": [0, 1, 2, 5, 6, 7, 8], "allow": [0, 4, 6, 7], "alon": 0, "along": 7, "alongsid": 7, "alreadi": 2, "also": [0, 1, 2, 4, 5, 6, 7, 8], "altern": 1, "although": 6, "alwai": [0, 6], "amen": 7, "america": [1, 6, 7], "american": [0, 4, 5, 6], "amount": 4, "an": [0, 1, 2, 3, 4, 7, 8], "ani": [0, 1, 2, 6, 7, 8], "anoth": [4, 6], "answer": [0, 1, 5, 6, 7, 8], "anthropic_api_kei": [5, 6], "api": [6, 7], "app": [0, 1, 6], "appalachian": 6, "appeal": 7, "append": 1, "appli": 7, "approach": [6, 7], "appropri": 0, "ar": [0, 1, 2, 3, 4, 5, 6, 7, 8], "area": [0, 6], "argument": [0, 1, 4, 5, 6, 7], "around": 7, "artwork": 7, "ashkinaz": 0, "ask": 2, "assault": 6, "assum": 2, "async": 1, "attempt": 1, "attract": 7, "attribut": [0, 1, 6, 7], "author": 7, "auto": [1, 4], "autom": 0, "automat": [0, 1, 2], "avail": [7, 8], "avoid_double_period": 2, "awai": 6, "awar": 1, "b": [1, 2, 5, 7, 8], "back": [4, 5, 7], "backend": [4, 6], "background": 7, "balanc": [6, 7], "ban": 6, "base": [0, 1, 2, 4, 6, 7, 8], "base_path": 2, "basic": [4, 6, 7], "bat": 8, "beauti": 6, "beautifi": 7, "becaus": 5, "becom": [1, 7], "been": [0, 1, 6], "befor": [1, 8], "behavior": [4, 5, 6, 7], "behind": 6, "being": 6, "believ": 4, "below": [0, 1], "bench": 7, "benefit": 7, "best": 5, "bestsel": 7, "better": [5, 7], "between": [1, 4, 5, 7], "big": 7, "binari": 6, "biodivers": 7, "bit": 7, "blank": [1, 4, 6], "bool": [0, 1, 2], "bootstrap": 8, "bore": 8, "both": [1, 2, 4, 5, 6, 7], "box": 7, "brace": 2, "brainstorm": [1, 7], "break": 2, "brilliant": 7, "bring": 6, "build": [0, 1, 4, 7], "bunch": [3, 5], "buyer": 7, "c": 2, "california": 7, "call": [1, 4, 6, 7, 8], "can": [0, 1, 2, 4, 5, 6, 7, 8], "cannot": [1, 8], "captur": 1, "carbon": 5, "care": [6, 7], "carolina": 6, "case": [1, 2, 6], "cat": 5, "caus": 2, "certain": 2, "cfo": 6, "chain": [1, 3, 4, 8], "chang": [1, 7], "charact": 7, "characterist": [0, 6], "charg": 7, "check": 2, "cherish": 6, "child18": 2, "children": [0, 2, 6], "choic": 2, "chronolog": 0, "citi": [6, 7], "citizen": [0, 1, 5, 6], "clarifi": 6, "class": [0, 1, 2, 8], "classif": 6, "claud": [4, 6, 7], "cleaner": 6, "climat": [1, 7], "closer": 6, "coal": 6, "code": 6, "codebook": 2, "cohes": 7, "collect": 7, "colleg": 6, "column": 6, "com": 7, "comb": 7, "combat": [1, 7], "combin": [0, 1, 2, 3, 4], "combination_instruct": [0, 1, 5, 7, 8], "come": [1, 6, 8], "common": [1, 6], "commun": [0, 4, 6], "company_rol": 6, "compassion": 0, "compel": 7, "compil": 8, "complet": [0, 1, 2, 4, 6], "comprehens": [0, 6], "con_answ": 6, "concept": [1, 3, 8], "concern": 6, "conclus": 1, "concret": 1, "condit": [2, 6], "conduct": 2, "configur": 0, "conflict": 6, "conjunct": 0, "conneceted": 7, "conserv": [0, 1, 6, 7], "conservative_ag": 6, "consid": [4, 7], "consider": 7, "consist": 6, "constitut": [4, 6, 7], "constrain": 6, "constraint": [0, 6], "construct": [0, 1, 2, 4, 6], "consult": 2, "contain": [0, 2, 6], "content": [2, 7], "contribut": 6, "control": [1, 4, 7], "convent": 8, "convinc": [5, 7], "core": 3, "correct": [0, 6, 7], "correspond": [1, 7], "cost": [6, 7], "could": [5, 6, 7], "countri": 6, "cours": 8, "craft": 7, "creat": [0, 1, 4, 5, 6, 7], "creation": [0, 2, 4, 6], "creativ": [1, 7, 8], "crimin": 6, "criteria": [0, 6], "critiqu": [4, 5, 6, 7], "critique_revis": 7, "crucial": 6, "curli": 2, "current": [0, 2, 4, 6], "current_task_descript": 0, "custom": [0, 2, 4, 5, 7, 8], "customiz": [0, 4, 6], "cut": 7, "cycl": [1, 4, 5, 7], "d": 2, "dag": [1, 4, 5, 7], "data": [0, 2, 6, 7], "datafram": 0, "dataset": [0, 2, 4, 6], "deal": 7, "debat": [1, 3, 4], "decad": 6, "decis": [4, 7], "declar": 1, "decreas": 1, "def": [6, 7], "default": [0, 1, 2, 4, 5, 6, 7, 8], "default_ag": 6, "default_answ": 6, "defin": [4, 5, 7, 8], "degre": [1, 4], "delib": [4, 6, 7], "deliber": [3, 4, 5, 6, 7, 8], "demand": 4, "democraci": [4, 6, 7], "democrat": 6, "demograph": [0, 5, 6], "densiti": 4, "depend": [1, 5], "deriv": [4, 7], "describ": [4, 6, 7], "descript": [0, 1, 2, 4, 6], "desert": 6, "design": [1, 7], "detail": 0, "detect": 1, "determin": 1, "develop": 7, "deviat": 0, "dict": [0, 1, 2], "dictat": 0, "dictionari": [0, 1, 2, 5, 6, 7], "differ": [1, 3, 7, 8], "difficult": 2, "direct": [0, 1, 4, 5, 7], "direction": 4, "directli": [0, 1, 5, 6], "directori": 2, "disclos": [0, 6], "discuss": [1, 4, 7], "distinct": [4, 6, 8], "diverg": 7, "divers": [1, 8], "do": [0, 2, 3, 7, 8], "doc": [0, 1, 6], "document": 7, "dog": 5, "down": [6, 7], "draft": 6, "draw": 7, "drawn": 5, "dst_agent_nam": 1, "dst_idx": 1, "duplic": [1, 8], "dure": [0, 2], "dynam": [0, 7], "e": [0, 1, 4, 5, 6, 7], "each": [1, 4, 5, 6, 7], "eco": 7, "economi": 6, "economist": 7, "ecosystem": 6, "edg": [1, 2, 5, 7], "editor": 7, "educ": [0, 6], "effect": 8, "eg": 0, "either": [0, 6], "elderli": 1, "elect": [0, 4, 5, 6], "electr": 7, "element": 7, "elimin": 8, "els": [0, 1], "embed": 7, "emiss": 5, "emot": [0, 6], "empathet": 0, "empathi": 6, "empir": [4, 6], "employ": [0, 6], "empti": [1, 2], "enact": [0, 5], "encourag": 6, "end": [1, 2, 5, 7, 8], "energ": 6, "energi": [6, 7], "enforc": 6, "engag": [4, 6, 7], "enhanc": 7, "enjoi": 6, "enjoy": 7, "ensembl": [1, 3, 4, 8], "ensur": [0, 1, 6, 8], "enter": 0, "entir": 6, "env": 6, "environ": [5, 6], "environment": [6, 7], "error": [1, 2], "especi": 6, "essenti": 3, "etc": 6, "even": 5, "everi": [4, 6, 7], "everyon": 6, "evid": 7, "exact": 3, "exactli": [0, 1, 6], "exampl": [0, 1, 2, 3, 4, 7, 8], "excerpt": 6, "exclud": 8, "exist": [4, 6], "expans": 6, "expect": 8, "expens": 7, "experi": 6, "experienc": 7, "expert": [1, 5, 7], "explan": 2, "explicit": 2, "extent": 1, "extern": 0, "extra": 2, "extract_federalist_pap": 7, "f": 7, "fact": 0, "faction": 7, "fair": 6, "fals": 1, "famili": 6, "famou": 7, "farm": 6, "feasibl": [5, 7, 8], "featur": [4, 6, 7], "fed": 1, "fed_10": 7, "federalist": 7, "federalist_paper_10": 7, "feedback": 6, "few": [1, 6], "field": 6, "file": [1, 2, 8], "file_path": 2, "fill": [6, 7, 8], "filter": [0, 2, 6], "final": [0, 1, 2, 4, 7], "final_respons": [1, 5, 7], "find": [4, 6], "first": [2, 3, 4, 5, 6, 7], "first_wav": 7, "firstli": 6, "fish": 6, "fit": 7, "fix": 2, "florida": 1, "flower": 7, "focu": [6, 7, 8], "follow": [0, 2, 6, 7], "foot": 7, "foreach": 2, "foreign": 6, "form": [0, 4, 6], "format": 6, "format_previous_respons": [2, 3], "forth": [4, 5, 7], "foster": 6, "found": [4, 7, 8], "free": [1, 7], "friendli": 7, "from": [0, 1, 2, 4, 5, 6, 7, 8], "full": [0, 1, 2, 6], "full_text": 7, "function": [0, 1, 2, 6], "further": 8, "futur": 6, "g": [1, 4, 5, 6, 7], "garden": 7, "gather": 7, "gender": [0, 6], "gender4": 6, "gener": [0, 1, 2, 4, 6, 7, 8], "generate_and_set_system_instruct": [1, 8], "generate_system_instruct": [1, 8], "geograph": [0, 6], "get": [0, 2, 6, 7, 8], "github": [4, 6], "githubusercont": 7, "give": [0, 4, 5, 6, 7], "given": [1, 4, 7, 8], "go": [0, 3, 5, 6, 8], "goal": [1, 5, 6, 8], "god": 6, "goe": 4, "good": 6, "goodyb": 0, "govern": [1, 4, 6, 7], "gpt": [0, 1, 4, 5, 6, 7, 8], "gpt3": [6, 7], "gpt4": [6, 7], "grad": 6, "graduat": [0, 6], "graph": [1, 3, 4], "group": [1, 7], "guid": 3, "gun": 6, "ha": [1, 6, 7], "had": 7, "handle_default_persona_templ": 0, "happen": 2, "hard": 6, "have": [0, 1, 2, 4, 5, 6, 7, 8], "health": 6, "healthcar": 7, "healthi": 6, "heartfelt": 0, "heat": 7, "hello": [0, 6], "help": [0, 6], "helper": [3, 6], "henc": 2, "here": [0, 1, 2, 5, 6, 7, 8], "heritag": 6, "high": [0, 4, 6, 7], "higher": 6, "highli": [5, 7], "highlight": 1, "hill": 6, "hispan": [0, 1], "histor": 7, "histori": [0, 6, 7], "home": 6, "homemak": 6, "honor": 6, "household": [0, 2, 6], "how": [0, 1, 4, 5, 6, 7, 8], "howev": [1, 8], "http": [0, 1, 6, 7], "human": 2, "hurt": 6, "i": [0, 1, 2, 3, 4, 5, 8], "idea": [1, 6, 7, 8], "ideal": [4, 6, 7], "ident": [0, 6], "identifi": [0, 4, 6, 8], "ideo5": [0, 6], "ideolog": [0, 6], "ideologi": [0, 4, 5], "imagin": [1, 8], "impact": 8, "implement": [1, 4], "implic": 7, "import": [0, 5, 6, 7, 8], "improv": [1, 5, 6, 7], "includ": [0, 1, 3, 4, 6, 7], "inclus": 2, "incorpor": [0, 7], "incredibli": 6, "independ": [0, 1, 5, 6], "index": 3, "indic": [1, 6], "industri": 6, "influenc": 0, "info": [0, 1, 6, 7], "inform": [0, 1, 4, 5, 6, 7, 8], "ingeni": 7, "inherit": [0, 1, 4, 6, 8], "initi": [0, 1, 4, 5, 8], "innov": [5, 7, 8], "input": [0, 1, 6, 7, 8], "inputst": [0, 6], "insid": 1, "inspect": [0, 1, 3, 8], "inspir": [4, 6, 8], "instal": [3, 7], "instanc": 6, "instanti": [0, 1], "instead": [0, 6], "instruct": [0, 1, 3, 4, 5], "int": 1, "integ": 1, "integr": [3, 4, 7], "interact": [4, 5, 7], "interest": 6, "interfac": 1, "intern": 2, "introduc": [4, 7], "invest": 6, "involv": [1, 4, 6], "is_anes_persona": 0, "isol": 4, "issu": 4, "item": 7, "its": [0, 1, 2, 8], "itself": 1, "jame": 7, "job": 6, "jonluca": 7, "josh": 0, "json": 2, "juri": 7, "juror": [4, 6, 7], "just": [2, 5, 6, 7], "kahn": 1, "kei": [1, 2, 3, 4, 6, 7], "keyword": [0, 1, 4, 6, 7], "kick": 7, "kind": [4, 6, 7], "know": [2, 6], "kwarg": [0, 1, 2, 6], "land": 6, "landscap": 6, "languag": [0, 6], "larger": [4, 6], "last": [1, 7], "last_n": [1, 4, 7], "later": 5, "latter": 0, "law": 6, "lead": 6, "least": 8, "left": [1, 4, 6], "len": 6, "let": [6, 7, 8], "level": [0, 3, 4, 5, 6, 7], "leverag": [0, 4, 5, 6], "lib_answ": 6, "lib_answer1": 6, "lib_answer2": 6, "lib_answer3": 6, "liber": [0, 1, 4, 5, 6, 7], "liberal_ag": [4, 6], "libertarian": 1, "librari": 7, "like": [0, 2, 6, 7, 8], "limit": 6, "line": 7, "linear": 4, "link": 8, "list": [0, 1, 2, 7, 8], "listen": 7, "litellm": [0, 1, 6], "live": [0, 2, 6], "llm": [0, 1, 3, 4, 5, 8], "load": [0, 2], "load_yaml": [2, 3], "local": [6, 7], "locat": [0, 2], "logic": 4, "look": 6, "louvr": 7, "low": 7, "lower": 3, "madison": 7, "mai": [0, 4, 6], "main": [0, 6], "mainten": 7, "make": [0, 6, 7], "man": [0, 1, 6, 7], "mani": [1, 4, 6, 7], "manual": [0, 1, 4, 5, 6], "map": [0, 2, 6], "march": 6, "market": 6, "master": 7, "match": [0, 7], "max": 6, "max_token": [0, 6], "max_tri": 1, "maxim": [1, 8], "maximum": 1, "mean": [5, 7], "meant": [1, 2, 7, 8], "measur": 4, "mental": 6, "mention": 7, "messag": 5, "met": 2, "method": [0, 1, 2, 4, 5, 6, 8], "metro": 6, "michigan": 0, "might": 6, "mind": 7, "mini": [1, 5], "mirror": 6, "missouri": 1, "mix": 7, "mod": [1, 8], "model": [0, 1, 4, 5, 6, 7, 8], "moder": [0, 1, 3, 6, 7], "moderator_task": 1, "modul": [3, 7], "monitor": 7, "more": [0, 2, 5, 6, 7], "moreov": 6, "most": [1, 7, 8], "move": 6, "movi": 7, "much": [6, 8], "multi": [0, 4, 7, 8], "multipl": [2, 4, 7, 8], "must": [0, 1], "my": 7, "mysteri": 7, "n": [0, 6, 7], "nagent": 7, "name": [0, 1, 6], "narr": [0, 6], "narrow": 7, "nation": [0, 4, 5, 7], "natur": 6, "necessarili": 6, "need": 1, "neighborhood": 7, "neither": 2, "nest": 2, "network": [1, 4, 7], "neutral": [1, 8], "new": [0, 4, 6, 7], "next": 2, "nhistori": 6, "nice": 2, "ninfo": 6, "nlp": 7, "nois": 7, "non": [6, 7], "none": [0, 1], "nor": 2, "normal": [0, 2, 6, 8], "north": 6, "northeast": 0, "note": [0, 1, 2, 6, 7, 8], "novel": [5, 7], "novelti": [1, 8], "now": [0, 6, 8], "nrespons": [2, 6], "null": 0, "number": [1, 4, 6, 7], "nurtur": 6, "o": [5, 6], "object": [0, 1], "observ": 1, "obviou": 7, "offer": [1, 6, 7], "offic": 6, "often": 2, "okai": [0, 6], "old": [1, 7], "onc": 5, "one": [0, 1, 4, 6, 7], "onli": [1, 4, 5, 6, 7], "open": 4, "openai_api_kei": [5, 6], "oper": [0, 1], "operation": 8, "opportun": 6, "optim": [5, 7], "option": [0, 1, 2, 4, 7, 8], "order": [1, 4, 7], "origin": [0, 2, 8], "original_task_descript": 0, "other": [0, 1, 2, 4, 5, 6, 7], "otherwis": [0, 2], "our": [4, 5, 6, 7, 8], "out": 6, "outlin": 7, "output": [1, 2, 4, 6, 7], "outsid": [1, 7], "overli": [0, 6, 8], "overrid": [0, 2], "overse": [1, 7, 8], "overview": 3, "own": [0, 1, 2, 4, 5, 6, 8], "packag": [2, 6], "pair": 2, "panda": 0, "panel": [1, 7], "pant": [1, 8], "paper": [4, 5, 7], "paragraph": 6, "parallel": [4, 7], "param": 0, "paramet": [0, 1, 2, 4, 7], "pari": 7, "part": [0, 3], "parti": 6, "particip": [1, 2, 4], "particular": 8, "partisan": [0, 6], "pass": [0, 1, 2, 5, 6, 7, 8], "path": [2, 7], "pathwai": 7, "pattern": 7, "pd": 0, "peopl": 7, "perform": [0, 6], "perhap": 5, "person": 6, "persona": [0, 1, 2, 4, 5, 7], "persona_map": 0, "persona_templ": [0, 1, 5, 6, 7, 8], "perspect": [0, 4, 6], "phd": 1, "philosoph": 7, "philosophi": 7, "pick": 0, "pictur": 7, "pilot": 6, "pip": 5, "pirat": [0, 6], "pirate_ag": 0, "pirate_goodyb": 0, "pirate_hello": 0, "placehold": [0, 1, 2, 6, 7, 8], "plain": [0, 6], "plan": 7, "planter": 7, "pleas": 4, "plot": 7, "plu": [2, 6, 7], "plural": [0, 1, 2, 4, 5, 6, 7, 8], "polar": 8, "polit": [0, 6], "popul": 6, "port": 7, "posit": 7, "possibl": [1, 8], "post": 6, "potenti": [1, 7, 8], "power": 7, "practic": 7, "pre": 8, "predecessor": 4, "predict": [0, 6], "prefer": 2, "prefix": 1, "present": 2, "prevent": [1, 2], "previou": [0, 1, 2, 4, 5, 7, 8], "previous_respons": [0, 1, 5, 7, 8], "print": [0, 1, 2, 5, 6, 7, 8], "print_anes_map": [2, 3, 6], "printwrap": 6, "prior": [0, 1, 4, 5, 6, 7], "prior_respons": 7, "priorit": [1, 8], "probabl": 6, "problem": [2, 6], "process": [0, 1, 2, 3, 4, 5, 7], "profil": [4, 6, 8], "promot": 7, "prompt": [0, 1, 3, 4, 5, 7], "properti": [0, 1, 7], "prosper": 6, "protect": 6, "provid": [0, 1, 4, 6, 7], "psychologi": 7, "psychologist": 7, "purpos": [2, 7], "put": [5, 7, 8], "python": 2, "queri": [0, 2], "query_str": [0, 6], "question": [0, 2, 6], "queue": 1, "quick": 3, "quickli": 6, "r": 7, "race": [0, 6], "rag": 7, "rais": [1, 7], "ran": 5, "random": [0, 1, 4, 5, 7], "randomli": [0, 4, 6], "rang": [1, 6, 7, 8], "rank": 8, "rather": 1, "rational": 6, "raw": 7, "re": [1, 7], "reach": 7, "readabl": 2, "reader": 7, "reason": [4, 6, 7], "recod": 2, "recommend": 7, "record": 0, "recreat": 6, "reduc": [5, 6], "reexamin": 7, "regard": [0, 6], "region": [0, 6], "regular": 8, "rel": [2, 7], "relat": 7, "relev": 8, "reli": [0, 4, 5, 6], "reliabl": 6, "relianc": 6, "rememb": 7, "remov": [1, 2], "renew": 7, "repeat": [4, 7], "repetit": [4, 8], "replac": [0, 1], "repres": [0, 4, 7, 8], "republican": [0, 6], "request": [1, 4, 7], "requir": 1, "resolv": 6, "reson": 5, "resourc": 6, "respect": [1, 6], "respit": 6, "respond": [0, 1, 4, 6], "respons": [0, 1, 2, 4, 5, 6, 7, 8], "result": [2, 7], "retir": 6, "retriev": 6, "return": [0, 1, 2, 5, 7], "review": 8, "revis": [4, 5, 6, 7], "revolv": 7, "rewir": 4, "rhetor": [0, 6], "rich": 7, "rifl": 6, "right": [1, 6], "road": 7, "role": 1, "roll": 6, "row": [0, 4, 6], "run": [6, 7], "rural": 6, "sad": 6, "safe_substitut": 2, "safeti": 6, "sai": [0, 6, 7], "said": [1, 7], "same": [0, 1, 5, 6, 7, 8], "sampl": [0, 4], "satisfi": 6, "scene": 6, "school": [0, 6], "scienc": 7, "scientist": 5, "script": 2, "search": 7, "second": [2, 3, 4, 6, 7], "second_wav": [0, 1, 6, 7], "second_wave_michigan": 0, "secur": 6, "see": [0, 1, 4, 5, 6, 7, 8], "seen": [5, 6], "select": [6, 7, 8], "self": [0, 6], "sens": 7, "sensor": 7, "sent": 1, "sequenc": [1, 5, 7], "sequenti": [4, 5, 7], "set": [0, 1, 3, 4], "set_task": 0, "sever": [0, 2, 6, 7], "share": [1, 4, 5, 7], "should": [0, 1, 2, 6, 7, 8], "shouldn": 6, "show": [5, 6, 7], "showcas": [6, 7], "shrub": 7, "shuffl": [1, 4, 7], "sidewalk": 7, "similar": [1, 8], "simpl": [7, 8], "simpli": [6, 7, 8], "simplic": 6, "simul": [0, 4, 5, 6], "simultan": 1, "sinc": [1, 6], "small": [6, 7], "smart": 7, "smartstr": [2, 3], "so": [0, 1, 6, 7, 8], "social": 4, "societi": 1, "sociologist": 7, "solar": 7, "sole": 0, "solv": 6, "some": [2, 6, 7, 8], "somebodi": 6, "sonnet": 7, "sort": 1, "sourc": [0, 1, 2, 6, 7], "south": 6, "southwest": 6, "span": [4, 6], "speaker": 1, "special": [4, 5, 6, 7, 8], "specif": [0, 1, 4, 6, 7], "specifi": 2, "src_agent_nam": 1, "src_idx": 1, "standard": [1, 2, 7], "standout": 1, "start": [3, 7, 8], "state": [0, 4, 6, 7], "statu": [0, 6], "steward": 6, "stop": 6, "stori": [6, 7], "story_dag": 7, "story_prompt": 7, "storytel": [0, 6], "str": [0, 1, 2], "strike": 7, "string": [0, 1], "strip": [2, 7], "strip_nested_dict": [2, 3], "structur": [0, 1, 3, 6, 8], "structure_inform": 7, "studi": [0, 4, 5, 6], "subclass": [1, 8], "submit": 8, "subset": [0, 4, 6], "suburban": [0, 6, 7], "successor": [1, 4], "summar": [1, 4, 5, 8], "summari": 7, "super": 7, "suppli": 0, "support": [0, 4, 6, 7, 8], "suppos": 1, "sure": 6, "surfac": 7, "sustain": 7, "synthes": [4, 7], "synthesi": 7, "system": [0, 1, 3, 4, 5, 7], "system_instruct": [0, 1, 5, 6, 7, 8], "t": 6, "take": [1, 6, 7], "talk": [0, 6], "task": [0, 1, 2, 3, 4, 5, 7, 8], "technologi": 6, "tell": 5, "temperatur": [0, 4, 6], "templat": [0, 1, 2, 3, 5, 8], "test": [4, 6, 7], "testimoni": [0, 6], "texa": 6, "text": [6, 7], "textwrap": 6, "than": [1, 5, 6], "theft": 7, "thei": [2, 4, 5, 6, 7, 8], "them": [1, 5, 6, 7, 8], "themselv": 6, "thi": [0, 1, 2, 3, 4, 5, 6, 7, 8], "thing": [2, 7], "think": [0, 6, 8], "those": 0, "though": 5, "thought": [1, 7, 8], "three": 1, "through": [0, 1, 6, 7], "tile": 7, "time": [0, 1, 5, 7, 8], "togeth": [0, 1, 7], "toi": 5, "token": 6, "too": [5, 6], "top": 8, "topolog": 1, "tourism": 6, "toward": 7, "town": 6, "trace": 3, "traffic": 7, "tragedi": 6, "trail": 2, "transit": 6, "transpar": 7, "trigger": 8, "true": [2, 4], "try": 4, "tupl": 1, "turbo": [1, 5, 6, 7, 8], "turn": [1, 4, 8], "two": [0, 1, 3, 4, 6, 7], "txt": 7, "type": [0, 1, 2], "u": [6, 7], "unanim": 7, "under": [0, 2, 6], "understand": 6, "undesir": 2, "uni": 7, "uniqu": [1, 8], "unit": 6, "unless": [2, 6], "unmodifi": 0, "up": [1, 3, 7, 8], "updat": 0, "upon": [0, 1], "upweight": 7, "urban": [6, 7], "url": 7, "us": [0, 1, 2, 3, 4, 5, 8], "usag": [1, 6], "user": [0, 2, 4, 5], "util": 6, "v": 1, "valid": 1, "valu": [0, 2, 4, 6], "valueerror": 1, "vari": 7, "variabl": [2, 5, 6], "variou": [0, 4, 6, 7], "ve": 6, "vercel": [0, 1, 6], "veri": [0, 4, 6], "version": 0, "via": [4, 6, 7], "view": [0, 4, 5, 6, 7], "viewpoint": [1, 6], "virginia": [0, 6], "visibl": [4, 5, 6], "vital": 6, "vote": [7, 8], "voter": 0, "wa": 7, "wai": [0, 1, 3, 4, 5, 7, 8], "walk": 7, "want": [0, 1, 2, 5, 6, 7], "wave": [4, 6, 7], "we": [0, 1, 2, 4, 5, 6, 7, 8], "wealthi": 7, "weapon": 6, "weight": [0, 4, 6], "welfar": 1, "well": [5, 6, 7], "west": [0, 6], "west_virginia": 6, "what": [0, 1, 2, 3, 5, 6, 8], "whatev": 0, "when": [0, 1, 2, 4, 5, 6, 7, 8], "where": [0, 1, 2, 4, 5, 6, 7, 8], "whether": [0, 1, 2, 7], "which": [0, 1, 2, 3, 4, 5, 6, 7, 8], "while": [1, 6, 7], "white": 6, "whitespac": 2, "who": [0, 1, 4, 5, 6, 7, 8], "wide": 4, "width": 6, "wish": 1, "within": [1, 4, 7], "without": [0, 2, 4, 7], "woman": [1, 6, 7], "won": 6, "wonder": 6, "word": [1, 5, 6, 7, 8], "work": [0, 6], "world": 7, "would": [0, 2, 4, 6, 7, 8], "wrap": 6, "wrapped_text": 6, "write": [0, 6, 7], "yaml": [0, 1, 2, 4, 6, 7, 8], "ye": [2, 6], "year": [1, 7], "york": [0, 4, 6, 7], "you": [0, 1, 2, 4, 5, 6, 7, 8], "your": [0, 1, 2, 5, 6, 8], "yourkei": [5, 6]}, "titles": ["Agent Module", "Deliberation Module", "Helpers Module", "Welcome to Plurals docs!", "Core Concepts", "Quick Start Guide", "Agents", "Structures", "Moderators"], "titleterms": {"": 8, "1": [2, 6], "2": [2, 6], "3": [2, 6], "No": 6, "agent": [0, 4, 6], "an": [5, 6], "api": [3, 5], "auto": 8, "avoid": 2, "chain": [5, 7], "combin": [5, 6, 7, 8], "concept": 4, "content": 3, "core": 4, "debat": [5, 7], "defin": 6, "deliber": 1, "differ": [5, 6], "directli": 8, "do": 6, "doc": 3, "document": 3, "doubl": 2, "ensembl": [5, 7], "exact": 6, "exampl": [5, 6], "featur": 2, "format": 2, "go": 7, "graph": [5, 7], "guid": 5, "helper": 2, "i": [6, 7], "ideologi": 6, "indic": 3, "initi": 6, "inspect": 6, "instal": 5, "instruct": [6, 7, 8], "integr": 5, "kei": 5, "llm": 6, "moder": [4, 5, 8], "modul": [0, 1, 2], "nation": 6, "none": 2, "option": 6, "overview": 7, "own": 7, "panda": 6, "period": 2, "persona": [6, 8], "plural": 3, "process": 6, "prompt": 6, "queri": 6, "quick": 5, "random": 6, "replac": 2, "repres": 6, "safe": 2, "sampl": 6, "search": 6, "set": [5, 6, 7, 8], "start": 5, "string": [2, 6], "structur": [4, 5, 7], "system": [6, 8], "tabl": 3, "task": 6, "templat": [4, 6, 7], "trace": 7, "tutori": 3, "up": 6, "us": [6, 7], "user": 6, "via": 8, "wai": 6, "welcom": 3, "what": 7, "your": 7}}) \ No newline at end of file diff --git a/tutorial_3_agents.html b/tutorial_3_agents.html index ce61718..9986650 100644 --- a/tutorial_3_agents.html +++ b/tutorial_3_agents.html @@ -324,10 +324,10 @@

    Contents

  • Using ANES for nationally representative personas
  • ANES Option 1: ideology initializer
  • ANES Option 2: Random sampling
  • -
  • ANES Option 3: Searching ANES using a pandas query string
  • +
  • ANES Option 3: Searching ANES using a Pandas query string
  • -
  • Using Different LLM Models
  • +
  • Using different LLMs
  • Inspecting the exact prompts that an Agent is doing
  • @@ -598,7 +598,7 @@

    ANES Option 2: Random sampling -

    ANES Option 3: Searching ANES using a pandas query string#

    +

    ANES Option 3: Searching ANES using a Pandas query string#

    If you want to get more specific, you can pass in a query string that will be used to filter the ANES dataset. Now, you may not know the exact variables in ANES, so we have a helper function that will print out the demographic/political columns we are using so you know what values to pass in.

    from plurals.helpers import print_anes_mapping
     
    @@ -649,8 +649,8 @@ 

    ANES Option 3: Searching ANES using a pandas query string -

    Using Different LLM Models#

    +
    +

    Using different LLMs#

    Plurals supports various LLMs by using LiteLLM to make API calls. Agents also support LiteLLM’s kwargs arguments so you can (e.g) pass in a temperature or max tokens. Here are some examples of using different models:

    -

    Combination Instructions#

    +

    Combination instructions#

    Combination instructions describe how agents are instructed to combine information in the structure. It is a special kind of instruction that only kicks in when there are previous responses from an agent’s view. These instructions allow you to customize how Agents deliberate. There are two ways to set combination_instructions:

    Using a template for combination instructions#

    @@ -702,7 +702,7 @@

    Tracing what is going on in Structures