-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eng 217 local path #220
Eng 217 local path #220
Conversation
This is great! One consideration, what do you think about using Jinja syntax for Template variables? I.e. query = """You are a proposal writter for the given Request for Proposal (RFP) specialized in {{specialization}}. It should formatted as a markdown file.
RFP: {{rfp}}
Improve the given proposal given the following guidelines. Guideline: {{feedback}}
Proposal: {{proposal}}
Output just the improved proposal and nothing else."""
content = {
"rfp": "rfp.txt",
"specialization": "specialization.txt",
"feedback": "feedback.txt",
"proposal": "proposal.txt",
}
agent = AgentFactory.get("...")
agent.run(query=query, content=content) |
@thiago-aixplain, I agree with @tim-nelson that the depicted format using prompt_template = """Given the context, generate the continuation:
Context: <<context>>
Continuation: <<continuation>>""" |
query += f"\n{input_link}" | ||
|
||
if isinstance(content, list): | ||
assert len(content) <= 3, "The maximum number of content inputs is 3." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tim-nelson, we need to set this max number of content in the documentation.
Treating dictionaries as content local paths as well (related to task https://aixplain.atlassian.net/browse/ENG-108)