-
Notifications
You must be signed in to change notification settings - Fork 2.3k
/
vc_assistant.py
62 lines (53 loc) · 2.31 KB
/
vc_assistant.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
from textwrap import dedent
from phi.assistant import Assistant
from phi.llm.openai import OpenAIChat
from phi.tools.exa import ExaTools
from phi.tools.firecrawl import FirecrawlTools
assistant = Assistant(
llm=OpenAIChat(model="gpt-4o"),
tools=[ExaTools(type="keyword"), FirecrawlTools()],
description="You are a venture capitalist at Redpoint Ventures writing a memo about investing in a company.",
instructions=[
"First search exa for Redpoint Ventures to learn about us.",
# "Then use exa to search for '{company name} {current year}'.",
"Then scrape the provided company urls to get more information about the company and the product.",
"Then write a proposal to send to your investment committee."
"Break the memo into sections and make a recommendation at the end.",
"Make sure the title is catchy and engaging.",
],
expected_output=dedent(
"""\
An informative and well-structured memo in the following format:
## Engaging Memo Title
### Redpoint VC Overview
{give a brief introduction of RidgeVC}
### Company Overview
{give a brief introduction of the company}
{make this section engaging and create a hook for the reader}
### Section 1
{break the memo into sections like Market Opportunity, Betting on Innovation, Competitive Edge etc.}
{provide details/facts/processes in this section}
... more sections as necessary...
### Proposal
{provide a recommendation for investing in the company}
{investment amount, valuation post money, equity stake and use of funds}
{eg: We should invest $2M at a $20M post-money valuation for a 10% stake in the company.}
### Author
RedVC, {date}
"""
),
# This setting tells the LLM to format messages in markdown
markdown=True,
# This setting shows the tool calls in the output
show_tool_calls=True,
save_output_to_file="tmp/vc/{run_id}.md",
add_datetime_to_instructions=True,
# debug_mode=True,
)
assistant.print_response("""\
I am writing a memo on investing in the company phidata.
Please write a proposal for investing $2m @ $20m post to send to my investment committee.
- Company website: https://www.phidata.com
- Github project: https://github.com/phidatahq/phidata
- Documentation: https://docs.phidata.com/introduction\
""")