Closed josh-ashkinaze closed 4 months ago
Seperate things:
Chain: Each agent sees the previous agent's responses in a `chain' Ensemble: Each agent completes the task indepently using asynchronous requests Debate: Two agents respond to each other
For each of these we can add a moderator at the end
It's using LiteLLM as a backend to make API calls. So the list of supported models is from LiteLLM and the way to set enviornment variables can be seen in LiteLLM's documentation (maybe link to it). Examples:
Example of setting API keys in your enviornment
import os
os.environ["OPENAI_API_KEY"] = "placeholder"
os.environ["ANTHROPIC_API_KEY"] = "placeholder"
@narenedara I am actually closing this since I started it and Emily can finish using some outputs she had. I should note a few name changes (that I thought makes it easier for uses)....only the first would affect end-users btw.
However, if you already started this please commit to a branch and I can integrate in the README. You can never really have too many examples for users!
But, it would be helpful if you worked on the unit test stuff we talked about! You will see I also updated the unit tests:
query_str: add to tests and this
query_str method: It does a search through a pandas dataframe When you say
ideology==liberal
.... if ideology == 'liberal': return data[data['ideo5'].isin([1, 2])]query_str is like "ideo5 in @[1,2]"