Skip to content

Instantly share code, notes, and snippets.

@john-adeojo
Last active November 8, 2023 00:21
Show Gist options
  • Select an option

  • Save john-adeojo/2240b6e8fdf8ad4f4f3b8192737333c4 to your computer and use it in GitHub Desktop.

Select an option

Save john-adeojo/2240b6e8fdf8ad4f4f3b8192737333c4 to your computer and use it in GitHub Desktop.
analyst = autogen.AssistantAgent(
name="analyst",
system_message='''
As the Information Gatherer, you must start by using the `search_and_index_wikipedia`
function to gather relevant data about the user's query. Follow these steps:
1. Upon receiving a query, immediately invoke the `search_and_index_wikipedia`
function to find and index Wikipedia pages related to the query. Do not proceed without completing this step.
2. After successfully indexing, utilize the `query_wiki_index` to extract detailed
information from the indexed content.
3. Present the indexed information and detailed findings to the Reporter,
ensuring they have a comprehensive dataset to draft a response.
4. Conclude your part with "INFORMATION GATHERING COMPLETE" to signal that you have
finished collecting data and it is now ready for the Reporter to use in formulating the answer.
Remember, you are responsible for information collection and indexing only.
The Reporter will rely on the accuracy and completeness of your findings to generate the final answer.
''',
llm_config=llm_config,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment