From dc28f8099f250098336b994843e894ef3176802c Mon Sep 17 00:00:00 2001 From: josh-ashkinaze Date: Fri, 23 Aug 2024 16:50:12 +0000 Subject: [PATCH] deploy: fd674c918a1ad5119eaf4604b435940416c81dc2 --- _modules/plurals/deliberation.html | 22 +++++++++++----------- deliberation.html | 4 ++-- searchindex.js | 2 +- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/_modules/plurals/deliberation.html b/_modules/plurals/deliberation.html index af4c2b9..154cc35 100644 --- a/_modules/plurals/deliberation.html +++ b/_modules/plurals/deliberation.html @@ -416,7 +416,9 @@

Source code for plurals.deliberation

 
     def _set_combination_instructions(self) -> None:
         """
-        Set the combination instructions for agents based on the provided value or the default.
+        Set the combination instructions for agents based on the provided value or the default. If agents have their own
+        combination instructions, use those instead.
+
         """
         self.combination_instructions = SmartString(
             self.defaults['combination_instructions'].get(
@@ -425,11 +427,9 @@ 

Source code for plurals.deliberation

 
         for agent in self.agents:
             if agent.combination_instructions:
-                warnings.warn(
-                    "Writing over agent's combination instructions with Chain's combination instructions")
-            else:
                 pass
-            agent.combination_instructions = self.combination_instructions
+            else:
+                agent.combination_instructions = self.combination_instructions
 
     def _set_agent_task_description(self) -> None:
         """
@@ -709,8 +709,8 @@ 

Source code for plurals.deliberation

     def process(self):
         """
         Process the debate. In a debate, two agents take turns responding to a task. Prompts for agents are prefixed
-        with [You] and [Other] to indicate the speaker. For moderators the responses are prefixed with [Debater 1] and
-        [Debater 2] to indicate the speaker.
+        with [WHAT YOU SAID] and [WHAT OTHER PARTICIPANT SAID] to indicate the speaker. For moderators the responses are
+        prefixed with [Debater 1] and [Debater 2] to indicate the speaker.
         """
 
         # Initialize lists for storing responses from the perspective of each agent.
@@ -742,11 +742,11 @@ 

Source code for plurals.deliberation

 
                 # Apply the correct prefix and update both lists
                 if i == 0:
-                    previous_responses_agent1.append(f"[You]: {response}")
-                    previous_responses_agent2.append(f"[Other]: {response}")
+                    previous_responses_agent1.append(f"[WHAT YOU SAID]: {response}")
+                    previous_responses_agent2.append(f"[WHAT OTHER PARTICIPANT SAID]: {response}")
                 else:
-                    previous_responses_agent2.append(f"[You]: {response}")
-                    previous_responses_agent1.append(f"[Other]: {response}")
+                    previous_responses_agent2.append(f"[WHAT YOU SAID]: {response}")
+                    previous_responses_agent1.append(f"[WHAT OTHER PARTICIPANT SAID]: {response}")
 
         if self.moderated and self.moderator:
             moderated_response = self.moderator._moderate_responses(
diff --git a/deliberation.html b/deliberation.html
index 75d2ba8..db52e08 100644
--- a/deliberation.html
+++ b/deliberation.html
@@ -338,8 +338,8 @@
 
process()[source]

Process the debate. In a debate, two agents take turns responding to a task. Prompts for agents are prefixed -with [You] and [Other] to indicate the speaker. For moderators the responses are prefixed with [Debater 1] and -[Debater 2] to indicate the speaker.

+with [WHAT YOU SAID] and [WHAT OTHER PARTICIPANT SAID] to indicate the speaker. For moderators the responses are +prefixed with [Debater 1] and [Debater 2] to indicate the speaker.

diff --git a/searchindex.js b/searchindex.js index 308c6f6..5391f0f 100644 --- a/searchindex.js +++ b/searchindex.js @@ -1 +1 @@ -Search.setIndex({"alltitles": {"Agent Module": [[0, "module-plurals.agent"]], "Contents:": [[3, null]], "Deliberation Module": [[1, "module-plurals.deliberation"]], "Helpers Module": [[2, "module-plurals.helpers"]], "Indices and tables": [[3, "indices-and-tables"]], "Welcome to Plurals\u2019s documentation!": [[3, "welcome-to-plurals-s-documentation"]]}, "docnames": ["agent", "deliberation", "helpers", "index"], "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"], "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]], "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, "id1", false]], "info (plurals.deliberation.abstractstructure property)": [[1, "plurals.deliberation.AbstractStructure.info", 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]], "responses (plurals.agent.agent attribute)": [[0, "plurals.agent.Agent.responses", false]], "responses (plurals.agent.agent property)": [[0, "id2", 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, "id0", "history"], [0, 3, 1, "id1", "info"], [0, 2, 1, "", "original_task_description"], [0, 2, 1, "", "persona_mapping"], [0, 4, 1, "", "process"], [0, 3, 1, "id2", "responses"], [0, 4, 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, 3, 1, "", "info"], [1, 2, 1, "", "last_n"], [1, 2, 1, "", "moderated"], [1, 2, 1, "", "moderator"], [1, 4, 1, "", "process"], [1, 2, 1, "", "responses"], [1, 2, 1, "", "shuffle"], [1, 2, 1, "", "task"]], "plurals.deliberation.Chain": [[1, 4, 1, "", "process"]], "plurals.deliberation.Debate": [[1, 4, 1, "", "process"]], "plurals.deliberation.Ensemble": [[1, 4, 1, "", "process"]], "plurals.deliberation.Graph": [[1, 4, 1, "", "process"]], "plurals.deliberation.Moderator": [[1, 2, 1, "", "combination_instructions"], [1, 4, 1, "", "generate_and_set_system_instructions"], [1, 4, 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, 4, 1, "", "format"]]}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "class", "Python class"], "2": ["py", "attribute", "Python attribute"], "3": ["py", "property", "Python property"], "4": ["py", "method", "Python method"], "5": ["py", "function", "Python function"]}, "objtypes": {"0": "py:module", "1": "py:class", "2": "py:attribute", "3": "py:property", "4": "py:method", "5": "py:function"}, "terms": {"": [0, 1, 2], "0": [0, 1, 2], "1": [0, 1, 2], "10": 1, "1000": 1, "18": [0, 2], "2": 1, "20": 1, "200": 0, "24": 1, "3": 1, "4o": [0, 1], "5": 1, "500": 0, "57": 0, "A": [0, 1, 2], "AND": 2, "As": 1, "Be": 0, "By": 1, "For": 1, "If": [0, 1, 2], "In": [1, 2], "It": [0, 1, 2], "No": [0, 2], "The": [0, 1, 2], "Then": 1, "These": [0, 1], "To": 1, "a1": 1, "a2": 1, "abc": 1, "about": 1, "abstract": 1, "abstractstructur": [1, 3], "access": [0, 1], "accord": [0, 1], "acycl": 1, "add": 1, "addit": [0, 1], "adopt": 0, "after": 1, "ag": 0, "again": [0, 1], "agent": [1, 3], "agent1": 1, "agent2": 1, "agent3": 1, "algorithm": [1, 2], "all": [0, 1, 2], "allow": 0, "alon": 0, "alreadi": 2, "also": [0, 1, 2], "altern": 1, "alwai": 0, "america": 1, "american": 0, "an": [0, 1, 2], "ani": [0, 1, 2], "answer": [0, 1], "app": [0, 1], "append": 1, "appropri": 0, "ar": [0, 1, 2], "area": 0, "argument": [0, 1], "ashkinaz": 0, "ask": 2, "assum": 2, "async": 1, "attempt": 1, "attribut": [0, 1], "auto": 1, "autom": 0, "automat": [0, 1], "avoid": 2, "avoid_double_period": 2, "awar": 1, "b": [1, 2], "base": [0, 1, 2], "base_path": 2, "becom": 1, "been": [0, 1], "befor": 1, "below": [0, 1], "between": 1, "blank": 1, "blob": 0, "bool": [1, 2], "both": [1, 2], "brace": 2, "brainstorm": 1, "break": 2, "build": [0, 1], "c": 2, "call": 1, "can": [0, 1, 2], "cannot": 1, "captur": 1, "case": [1, 2], "certain": 2, "chain": [1, 3], "chang": 1, "characterist": 0, "check": 2, "child18": 2, "children": [0, 2], "choic": 2, "chronolog": 0, "citizen": [0, 1], "class": [0, 1, 2], "climat": 1, "codebook": 2, "com": 0, "combat": 1, "combin": [0, 1, 2], "combination_instruct": [0, 1], "come": 1, "common": 1, "commun": 0, "compassion": 0, "complet": [0, 1, 2], "comprehens": 0, "concept": 1, "conclus": 1, "concret": 1, "condit": 2, "conduct": 2, "configur": 0, "conjunct": 0, "conserv": [0, 1], "constraint": 0, "construct": [0, 1, 2], "consult": 2, "contain": 2, "content": 2, "control": 1, "correct": 0, "correspond": 1, "creat": [0, 1], "creation": 0, "creativ": 1, "criteria": 0, "curli": 2, "current": [0, 2], "current_task_descript": 0, "custom": [0, 2], "customiz": 0, "cycl": 1, "d": 2, "dag": 1, "data": [0, 2], "datafram": 0, "dataset": [0, 2], "debat": [1, 3], "declar": 1, "decreas": 1, "default": [0, 1, 2], "degre": 1, "deliber": 3, "demograph": 0, "depend": 1, "descript": [0, 1, 2], "design": 1, "detail": 0, "detect": 1, "determin": 1, "deviat": 0, "dict": [0, 1, 2], "dictat": 0, "dictionari": [0, 1, 2], "differ": 1, "difficult": 2, "direct": [0, 1], "directli": [0, 1], "directori": 2, "disclos": 0, "discuss": 1, "divers": 1, "do": [0, 2], "doc": [0, 1], "doe": 2, "doubl": 2, "dst_agent_nam": 1, "dst_idx": 1, "duplic": 1, "dure": 0, "dynam": 0, "e": [0, 1], "each": 1, "edg": 1, "educ": 0, "eg": 0, "either": 0, "elderli": 1, "elect": 0, "els": 1, "emot": 0, "empathet": 0, "employ": 0, "empti": 1, "enact": 0, "end": [1, 2], "ensembl": [1, 3], "ensur": [0, 1], "enter": 0, "error": [1, 2], "exactli": [0, 1], "exampl": [0, 1, 2], "expert": 1, "explan": 2, "explicit": 2, "extent": 1, "extern": 0, "extra": 2, "fact": 0, "fals": 1, "fed": 1, "few": 1, "file": [1, 2], "file_path": 2, "filter": [0, 2], "final": [0, 1, 2], "final_respons": 1, "first": 2, "fix": 2, "florida": 1, "follow": [0, 2], "foreach": 2, "form": 0, "format": 2, "format_previous_respons": [2, 3], "free": 1, "from": [0, 1, 2], "full": [0, 1, 2], "function": [0, 1, 2], "g": 1, "gender": 0, "gener": [0, 1, 2], "generate_and_set_system_instruct": 1, "generate_system_instruct": 1, "geograph": 0, "get": [0, 2], "github": 0, "give": 0, "given": 1, "go": 0, "goal": 1, "goodyb": 0, "govern": 1, "gpt": [0, 1], "graduat": 0, "graph": [1, 3], "group": 1, "ha": 1, "happen": 2, "have": [0, 1, 2], "heartfelt": 0, "hello": 0, "help": 0, "helper": 3, "henc": 2, "here": [0, 1, 2], "high": 0, "highlight": 1, "hispan": [0, 1], "histori": 0, "household": [0, 2], "how": [0, 1], "howev": 1, "http": [0, 1], "human": 2, "i": [0, 1, 2], "idea": 1, "ident": 0, "identifi": 0, "ideo5": 0, "ideolog": 0, "ideologi": 0, "imagin": 1, "implement": 1, "import": 0, "improv": 1, "includ": [0, 1], "inclus": 2, "incorpor": 0, "independ": [0, 1], "index": 3, "indic": 1, "influenc": 0, "info": [0, 1], "inform": [0, 1], "inherit": [0, 1], "initi": [0, 1], "input": [0, 1], "inputst": 0, "insid": 1, "inspect": [0, 1], "instanti": [0, 1], "instead": 0, "instruct": [0, 1], "int": 1, "integ": 1, "interfac": 1, "involv": 1, "its": [0, 1, 2], "itself": 1, "josh": 0, "json": 2, "just": 2, "kahn": 1, "kei": [1, 2], "keyword": [0, 1], "kind": 2, "know": 2, "kwarg": [0, 1, 2], "languag": 0, "last": 1, "last_n": 1, "latter": 0, "left": 1, "level": 0, "leverag": 0, "liber": [0, 1], "libertarian": 1, "like": [0, 2], "list": [0, 1, 2], "litellm": [0, 1], "live": [0, 2], "llm": [0, 1], "load": [0, 2], "load_yaml": [2, 3], "locat": [0, 2], "longer": 2, "mai": 0, "main": 0, "make": 0, "man": [0, 1], "mani": 1, "manual": [0, 1], "map": [0, 2], "match": 0, "max_token": 0, "max_tri": 1, "maxim": 1, "maximum": 1, "meant": [1, 2], "met": 2, "method": [0, 1, 2], "michigan": 0, "mini": 1, "missouri": 1, "mod": 1, "model": [0, 1], "moder": [0, 1, 3], "moderator_task": 1, "modul": 3, "more": [0, 2], "most": 1, "multi": 0, "multipl": 2, "must": [0, 1], "n": 0, "name": [0, 1], "narr": 0, "nation": 0, "need": 1, "neither": 2, "nest": 2, "network": 1, "neutral": 1, "new": 0, "next": 2, "none": [0, 1], "nor": 2, "normal": [0, 2], "northeast": 0, "note": [0, 1, 2], "novelti": 1, "now": 0, "nrespons": 2, "null": 0, "number": 1, "object": [0, 1], "observ": 1, "offer": 1, "oftentim": 2, "okai": 0, "old": 1, "one": [0, 1, 2], "onli": 1, "oper": [0, 1], "option": [0, 1, 2], "order": 1, "origin": [0, 2], "original_task_descript": 0, "other": [0, 1, 2], "otherwis": 0, "output": [1, 2], "outsid": 1, "overli": 0, "overrid": [0, 2], "overse": 1, "own": [0, 1, 2], "page": 3, "pair": 2, "panda": 0, "panel": 1, "pant": 1, "param": 0, "paramet": [0, 1, 2], "part": 0, "particip": 2, "partisan": 0, "pass": [0, 1, 2], "path": 2, "pd": 0, "perform": 0, "period": 2, "persona": [0, 1, 2], "persona_map": 0, "persona_templ": [0, 1], "perspect": 0, "phd": 1, "pick": 0, "pirat": 0, "pirate_ag": 0, "pirate_goodyb": 0, "pirate_hello": 0, "placehold": [0, 1, 2], "plain": 0, "plu": 2, "plural": [0, 1, 2], "polit": 0, "possibl": 1, "potenti": 1, "predict": 0, "prefix": 1, "present": 2, "prevent": 1, "previou": [0, 1, 2], "previous_respons": [0, 1], "print": [0, 1, 2], "print_anes_map": [2, 3], "prior": [0, 1], "priorit": 1, "problem": 2, "process": [0, 1], "prompt": [0, 1], "properti": [0, 1], "provid": [0, 1], "purpos": 2, "python": 2, "queri": [0, 2], "query_str": 0, "question": [0, 2], "queue": 1, "race": 0, "rais": 1, "random": [0, 1], "randomli": 0, "rang": 1, "rather": 1, "re": 1, "readabl": 2, "recod": 2, "record": 0, "regard": 0, "region": 0, "rel": 2, "reli": 0, "remov": [1, 2], "replac": [0, 1, 2], "repres": 0, "republican": 0, "request": 1, "requir": 1, "respect": 1, "respond": [0, 1], "respons": [0, 1, 2], "return": [0, 1, 2], "rhetor": 0, "right": 1, "role": 1, "row": 0, "safe": 2, "safe_substitut": 2, "sai": 0, "said": 1, "same": [0, 1], "sampl": 0, "school": 0, "script": 2, "search": 3, "second": 2, "second_wav": [0, 1], "second_wave_michigan": 0, "see": [0, 1], "sent": 1, "sequenc": 1, "set": [0, 1], "set_task": 0, "sever": [0, 2], "share": 1, "should": [0, 1, 2], "shuffl": 1, "similar": 1, "simul": 0, "simultan": 1, "sinc": 1, "smartstr": [2, 3], "so": [0, 1, 2], "societi": 1, "sole": 0, "solut": 2, "some": 2, "sort": 1, "sourc": [0, 1, 2], "speaker": 1, "specif": [0, 1], "src_agent_nam": 1, "src_idx": 1, "standard": 1, "standout": 1, "state": 0, "statu": 0, "storytel": 0, "str": [0, 1, 2], "string": [0, 1, 2], "strip": 2, "strip_nested_dict": [2, 3], "structur": [0, 1], "studi": 0, "subclass": [1, 2], "subset": 0, "substitut": 2, "suburban": 0, "successor": 1, "summar": 1, "suppli": 0, "support": 0, "suppos": 1, "syntax": 2, "system": [0, 1], "system_instruct": [0, 1], "take": 1, "talk": 0, "task": [0, 1, 2], "temperatur": 0, "templat": [0, 1, 2], "testimoni": 0, "than": 1, "thei": 2, "them": 1, "thi": [0, 1, 2], "thing": 2, "think": 0, "those": 0, "thought": 1, "three": 1, "through": [0, 1], "throw": 2, "time": [0, 1], "togeth": [0, 1], "topolog": 1, "trail": 2, "true": 2, "tupl": 1, "turbo": 1, "turn": [1, 2], "two": [0, 1], "type": [0, 1, 2], "under": [0, 2], "uniqu": 1, "unmodifi": 0, "up": 1, "updat": 0, "upon": [0, 1], "us": [0, 1, 2], "usag": 1, "user": [0, 2], "v": 1, "valid": 1, "valu": [0, 2], "valueerror": 1, "variabl": 2, "variou": 0, "vercel": [0, 1], "veri": 0, "version": 0, "view": 0, "viewpoint": 1, "virginia": 0, "voter": 0, "wai": [0, 1], "want": [0, 1, 2], "we": [0, 1, 2], "weight": 0, "welfar": 1, "west": 0, "what": [0, 1, 2], "whatev": 0, "when": [0, 1, 2], "where": [0, 1], "whether": [1, 2], "which": [0, 1], "while": 1, "whitespac": 2, "who": [0, 1], "wish": 1, "within": 1, "without": [0, 2], "woman": 1, "word": 1, "work": 0, "would": [0, 2], "write": 0, "yaml": [0, 1, 2], "ye": 2, "year": 1, "york": 0, "you": [0, 1, 2], "your": [0, 1, 2]}, "titles": ["Agent Module", "Deliberation Module", "Helpers Module", "Welcome to Plurals\u2019s documentation!"], "titleterms": {"": 3, "agent": 0, "content": 3, "deliber": 1, "document": 3, "helper": 2, "indic": 3, "modul": [0, 1, 2], "plural": 3, "tabl": 3, "welcom": 3}}) \ No newline at end of file +Search.setIndex({"alltitles": {"Agent Module": [[0, "module-plurals.agent"]], "Contents:": [[3, null]], "Deliberation Module": [[1, "module-plurals.deliberation"]], "Helpers Module": [[2, "module-plurals.helpers"]], "Indices and tables": [[3, "indices-and-tables"]], "Welcome to Plurals\u2019s documentation!": [[3, "welcome-to-plurals-s-documentation"]]}, "docnames": ["agent", "deliberation", "helpers", "index"], "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"], "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]], "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, "id1", false]], "info (plurals.deliberation.abstractstructure property)": [[1, "plurals.deliberation.AbstractStructure.info", 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]], "responses (plurals.agent.agent attribute)": [[0, "plurals.agent.Agent.responses", false]], "responses (plurals.agent.agent property)": [[0, "id2", 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, "id0", "history"], [0, 3, 1, "id1", "info"], [0, 2, 1, "", "original_task_description"], [0, 2, 1, "", "persona_mapping"], [0, 4, 1, "", "process"], [0, 3, 1, "id2", "responses"], [0, 4, 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, 3, 1, "", "info"], [1, 2, 1, "", "last_n"], [1, 2, 1, "", "moderated"], [1, 2, 1, "", "moderator"], [1, 4, 1, "", "process"], [1, 2, 1, "", "responses"], [1, 2, 1, "", "shuffle"], [1, 2, 1, "", "task"]], "plurals.deliberation.Chain": [[1, 4, 1, "", "process"]], "plurals.deliberation.Debate": [[1, 4, 1, "", "process"]], "plurals.deliberation.Ensemble": [[1, 4, 1, "", "process"]], "plurals.deliberation.Graph": [[1, 4, 1, "", "process"]], "plurals.deliberation.Moderator": [[1, 2, 1, "", "combination_instructions"], [1, 4, 1, "", "generate_and_set_system_instructions"], [1, 4, 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, 4, 1, "", "format"]]}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "class", "Python class"], "2": ["py", "attribute", "Python attribute"], "3": ["py", "property", "Python property"], "4": ["py", "method", "Python method"], "5": ["py", "function", "Python function"]}, "objtypes": {"0": "py:module", "1": "py:class", "2": "py:attribute", "3": "py:property", "4": "py:method", "5": "py:function"}, "terms": {"": [0, 1, 2], "0": [0, 1, 2], "1": [0, 1, 2], "10": 1, "1000": 1, "18": [0, 2], "2": 1, "20": 1, "200": 0, "24": 1, "3": 1, "4o": [0, 1], "5": 1, "500": 0, "57": 0, "A": [0, 1, 2], "AND": 2, "As": 1, "Be": 0, "By": 1, "For": 1, "If": [0, 1, 2], "In": [1, 2], "It": [0, 1, 2], "No": [0, 2], "The": [0, 1, 2], "Then": 1, "These": [0, 1], "To": 1, "a1": 1, "a2": 1, "abc": 1, "about": 1, "abstract": 1, "abstractstructur": [1, 3], "access": [0, 1], "accord": [0, 1], "acycl": 1, "add": 1, "addit": [0, 1], "adopt": 0, "after": 1, "ag": 0, "again": [0, 1], "agent": [1, 3], "agent1": 1, "agent2": 1, "agent3": 1, "algorithm": [1, 2], "all": [0, 1, 2], "allow": 0, "alon": 0, "alreadi": 2, "also": [0, 1, 2], "altern": 1, "alwai": 0, "america": 1, "american": 0, "an": [0, 1, 2], "ani": [0, 1, 2], "answer": [0, 1], "app": [0, 1], "append": 1, "appropri": 0, "ar": [0, 1, 2], "area": 0, "argument": [0, 1], "ashkinaz": 0, "ask": 2, "assum": 2, "async": 1, "attempt": 1, "attribut": [0, 1], "auto": 1, "autom": 0, "automat": [0, 1], "avoid": 2, "avoid_double_period": 2, "awar": 1, "b": [1, 2], "base": [0, 1, 2], "base_path": 2, "becom": 1, "been": [0, 1], "befor": 1, "below": [0, 1], "between": 1, "blank": 1, "blob": 0, "bool": [1, 2], "both": [1, 2], "brace": 2, "brainstorm": 1, "break": 2, "build": [0, 1], "c": 2, "call": 1, "can": [0, 1, 2], "cannot": 1, "captur": 1, "case": [1, 2], "certain": 2, "chain": [1, 3], "chang": 1, "characterist": 0, "check": 2, "child18": 2, "children": [0, 2], "choic": 2, "chronolog": 0, "citizen": [0, 1], "class": [0, 1, 2], "climat": 1, "codebook": 2, "com": 0, "combat": 1, "combin": [0, 1, 2], "combination_instruct": [0, 1], "come": 1, "common": 1, "commun": 0, "compassion": 0, "complet": [0, 1, 2], "comprehens": 0, "concept": 1, "conclus": 1, "concret": 1, "condit": 2, "conduct": 2, "configur": 0, "conjunct": 0, "conserv": [0, 1], "constraint": 0, "construct": [0, 1, 2], "consult": 2, "contain": 2, "content": 2, "control": 1, "correct": 0, "correspond": 1, "creat": [0, 1], "creation": 0, "creativ": 1, "criteria": 0, "curli": 2, "current": [0, 2], "current_task_descript": 0, "custom": [0, 2], "customiz": 0, "cycl": 1, "d": 2, "dag": 1, "data": [0, 2], "datafram": 0, "dataset": [0, 2], "debat": [1, 3], "declar": 1, "decreas": 1, "default": [0, 1, 2], "degre": 1, "deliber": 3, "demograph": 0, "depend": 1, "descript": [0, 1, 2], "design": 1, "detail": 0, "detect": 1, "determin": 1, "deviat": 0, "dict": [0, 1, 2], "dictat": 0, "dictionari": [0, 1, 2], "differ": 1, "difficult": 2, "direct": [0, 1], "directli": [0, 1], "directori": 2, "disclos": 0, "discuss": 1, "divers": 1, "do": [0, 2], "doc": [0, 1], "doe": 2, "doubl": 2, "dst_agent_nam": 1, "dst_idx": 1, "duplic": 1, "dure": 0, "dynam": 0, "e": [0, 1], "each": 1, "edg": 1, "educ": 0, "eg": 0, "either": 0, "elderli": 1, "elect": 0, "els": 1, "emot": 0, "empathet": 0, "employ": 0, "empti": 1, "enact": 0, "end": [1, 2], "ensembl": [1, 3], "ensur": [0, 1], "enter": 0, "error": [1, 2], "exactli": [0, 1], "exampl": [0, 1, 2], "expert": 1, "explan": 2, "explicit": 2, "extent": 1, "extern": 0, "extra": 2, "fact": 0, "fals": 1, "fed": 1, "few": 1, "file": [1, 2], "file_path": 2, "filter": [0, 2], "final": [0, 1, 2], "final_respons": 1, "first": 2, "fix": 2, "florida": 1, "follow": [0, 2], "foreach": 2, "form": 0, "format": 2, "format_previous_respons": [2, 3], "free": 1, "from": [0, 1, 2], "full": [0, 1, 2], "function": [0, 1, 2], "g": 1, "gender": 0, "gener": [0, 1, 2], "generate_and_set_system_instruct": 1, "generate_system_instruct": 1, "geograph": 0, "get": [0, 2], "github": 0, "give": 0, "given": 1, "go": 0, "goal": 1, "goodyb": 0, "govern": 1, "gpt": [0, 1], "graduat": 0, "graph": [1, 3], "group": 1, "ha": 1, "happen": 2, "have": [0, 1, 2], "heartfelt": 0, "hello": 0, "help": 0, "helper": 3, "henc": 2, "here": [0, 1, 2], "high": 0, "highlight": 1, "hispan": [0, 1], "histori": 0, "household": [0, 2], "how": [0, 1], "howev": 1, "http": [0, 1], "human": 2, "i": [0, 1, 2], "idea": 1, "ident": 0, "identifi": 0, "ideo5": 0, "ideolog": 0, "ideologi": 0, "imagin": 1, "implement": 1, "import": 0, "improv": 1, "includ": [0, 1], "inclus": 2, "incorpor": 0, "independ": [0, 1], "index": 3, "indic": 1, "influenc": 0, "info": [0, 1], "inform": [0, 1], "inherit": [0, 1], "initi": [0, 1], "input": [0, 1], "inputst": 0, "insid": 1, "inspect": [0, 1], "instanti": [0, 1], "instead": 0, "instruct": [0, 1], "int": 1, "integ": 1, "interfac": 1, "involv": 1, "its": [0, 1, 2], "itself": 1, "josh": 0, "json": 2, "just": 2, "kahn": 1, "kei": [1, 2], "keyword": [0, 1], "kind": 2, "know": 2, "kwarg": [0, 1, 2], "languag": 0, "last": 1, "last_n": 1, "latter": 0, "left": 1, "level": 0, "leverag": 0, "liber": [0, 1], "libertarian": 1, "like": [0, 2], "list": [0, 1, 2], "litellm": [0, 1], "live": [0, 2], "llm": [0, 1], "load": [0, 2], "load_yaml": [2, 3], "locat": [0, 2], "longer": 2, "mai": 0, "main": 0, "make": 0, "man": [0, 1], "mani": 1, "manual": [0, 1], "map": [0, 2], "match": 0, "max_token": 0, "max_tri": 1, "maxim": 1, "maximum": 1, "meant": [1, 2], "met": 2, "method": [0, 1, 2], "michigan": 0, "mini": 1, "missouri": 1, "mod": 1, "model": [0, 1], "moder": [0, 1, 3], "moderator_task": 1, "modul": 3, "more": [0, 2], "most": 1, "multi": 0, "multipl": 2, "must": [0, 1], "n": 0, "name": [0, 1], "narr": 0, "nation": 0, "need": 1, "neither": 2, "nest": 2, "network": 1, "neutral": 1, "new": 0, "next": 2, "none": [0, 1], "nor": 2, "normal": [0, 2], "northeast": 0, "note": [0, 1, 2], "novelti": 1, "now": 0, "nrespons": 2, "null": 0, "number": 1, "object": [0, 1], "observ": 1, "offer": 1, "oftentim": 2, "okai": 0, "old": 1, "one": [0, 1, 2], "onli": 1, "oper": [0, 1], "option": [0, 1, 2], "order": 1, "origin": [0, 2], "original_task_descript": 0, "other": [0, 1, 2], "otherwis": 0, "output": [1, 2], "outsid": 1, "overli": 0, "overrid": [0, 2], "overse": 1, "own": [0, 1, 2], "page": 3, "pair": 2, "panda": 0, "panel": 1, "pant": 1, "param": 0, "paramet": [0, 1, 2], "part": 0, "particip": [1, 2], "partisan": 0, "pass": [0, 1, 2], "path": 2, "pd": 0, "perform": 0, "period": 2, "persona": [0, 1, 2], "persona_map": 0, "persona_templ": [0, 1], "perspect": 0, "phd": 1, "pick": 0, "pirat": 0, "pirate_ag": 0, "pirate_goodyb": 0, "pirate_hello": 0, "placehold": [0, 1, 2], "plain": 0, "plu": 2, "plural": [0, 1, 2], "polit": 0, "possibl": 1, "potenti": 1, "predict": 0, "prefix": 1, "present": 2, "prevent": 1, "previou": [0, 1, 2], "previous_respons": [0, 1], "print": [0, 1, 2], "print_anes_map": [2, 3], "prior": [0, 1], "priorit": 1, "problem": 2, "process": [0, 1], "prompt": [0, 1], "properti": [0, 1], "provid": [0, 1], "purpos": 2, "python": 2, "queri": [0, 2], "query_str": 0, "question": [0, 2], "queue": 1, "race": 0, "rais": 1, "random": [0, 1], "randomli": 0, "rang": 1, "rather": 1, "re": 1, "readabl": 2, "recod": 2, "record": 0, "regard": 0, "region": 0, "rel": 2, "reli": 0, "remov": [1, 2], "replac": [0, 1, 2], "repres": 0, "republican": 0, "request": 1, "requir": 1, "respect": 1, "respond": [0, 1], "respons": [0, 1, 2], "return": [0, 1, 2], "rhetor": 0, "right": 1, "role": 1, "row": 0, "safe": 2, "safe_substitut": 2, "sai": 0, "said": 1, "same": [0, 1], "sampl": 0, "school": 0, "script": 2, "search": 3, "second": 2, "second_wav": [0, 1], "second_wave_michigan": 0, "see": [0, 1], "sent": 1, "sequenc": 1, "set": [0, 1], "set_task": 0, "sever": [0, 2], "share": 1, "should": [0, 1, 2], "shuffl": 1, "similar": 1, "simul": 0, "simultan": 1, "sinc": 1, "smartstr": [2, 3], "so": [0, 1, 2], "societi": 1, "sole": 0, "solut": 2, "some": 2, "sort": 1, "sourc": [0, 1, 2], "speaker": 1, "specif": [0, 1], "src_agent_nam": 1, "src_idx": 1, "standard": 1, "standout": 1, "state": 0, "statu": 0, "storytel": 0, "str": [0, 1, 2], "string": [0, 1, 2], "strip": 2, "strip_nested_dict": [2, 3], "structur": [0, 1], "studi": 0, "subclass": [1, 2], "subset": 0, "substitut": 2, "suburban": 0, "successor": 1, "summar": 1, "suppli": 0, "support": 0, "suppos": 1, "syntax": 2, "system": [0, 1], "system_instruct": [0, 1], "take": 1, "talk": 0, "task": [0, 1, 2], "temperatur": 0, "templat": [0, 1, 2], "testimoni": 0, "than": 1, "thei": 2, "them": 1, "thi": [0, 1, 2], "thing": 2, "think": 0, "those": 0, "thought": 1, "three": 1, "through": [0, 1], "throw": 2, "time": [0, 1], "togeth": [0, 1], "topolog": 1, "trail": 2, "true": 2, "tupl": 1, "turbo": 1, "turn": [1, 2], "two": [0, 1], "type": [0, 1, 2], "under": [0, 2], "uniqu": 1, "unmodifi": 0, "up": 1, "updat": 0, "upon": [0, 1], "us": [0, 1, 2], "usag": 1, "user": [0, 2], "v": 1, "valid": 1, "valu": [0, 2], "valueerror": 1, "variabl": 2, "variou": 0, "vercel": [0, 1], "veri": 0, "version": 0, "view": 0, "viewpoint": 1, "virginia": 0, "voter": 0, "wai": [0, 1], "want": [0, 1, 2], "we": [0, 1, 2], "weight": 0, "welfar": 1, "west": 0, "what": [0, 1, 2], "whatev": 0, "when": [0, 1, 2], "where": [0, 1], "whether": [1, 2], "which": [0, 1], "while": 1, "whitespac": 2, "who": [0, 1], "wish": 1, "within": 1, "without": [0, 2], "woman": 1, "word": 1, "work": 0, "would": [0, 2], "write": 0, "yaml": [0, 1, 2], "ye": 2, "year": 1, "york": 0, "you": [0, 1, 2], "your": [0, 1, 2]}, "titles": ["Agent Module", "Deliberation Module", "Helpers Module", "Welcome to Plurals\u2019s documentation!"], "titleterms": {"": 3, "agent": 0, "content": 3, "deliber": 1, "document": 3, "helper": 2, "indic": 3, "modul": [0, 1, 2], "plural": 3, "tabl": 3, "welcom": 3}}) \ No newline at end of file