hanoch.rahimi@gmail commited on
Commit
a30e3b1
·
1 Parent(s): 5c7c2df

Target customers

Browse files
Files changed (3) hide show
  1. .gitignore +3 -1
  2. app.py +3 -1
  3. utils.py +3 -2
.gitignore CHANGED
@@ -2,4 +2,6 @@ env/
2
  bin/
3
  obj/
4
  *.pyproj.user
5
- .streamlit/secrets.toml
 
 
 
2
  bin/
3
  obj/
4
  *.pyproj.user
5
+ .streamlit/secrets.toml
6
+
7
+ __pycache__/
app.py CHANGED
@@ -62,6 +62,7 @@ def card(company_id, name, description, score, data_type, region, country, metad
62
  description = metadata['Summary']
63
 
64
  customer_problem = metadata['Customer problem'] if 'Customer problem' in metadata else ""
 
65
  business_model = ""
66
  if 'Business model' in metadata:
67
  try:
@@ -69,7 +70,7 @@ def card(company_id, name, description, score, data_type, region, country, metad
69
  #business_model = json.loads(metadata['Business model'])
70
  except Exception as e:
71
  print(f"An error occurred: {str(e)}")
72
-
73
  markdown = f"""
74
  <div class="row align-items-start" style="padding-bottom:10px;">
75
  <div class="col-md-8 col-sm-8">
@@ -78,6 +79,7 @@ def card(company_id, name, description, score, data_type, region, country, metad
78
  </div>
79
  <div class="col-md-1 col-sm-1"><span>{country}</span></div>
80
  <div class="col-md-1 col-sm-1"><span>{customer_problem}</span></div>
 
81
  <div class="col-md-1 col-sm-1"><span>{business_model}</span></div>
82
  """
83
 
 
62
  description = metadata['Summary']
63
 
64
  customer_problem = metadata['Customer problem'] if 'Customer problem' in metadata else ""
65
+ target_customer = metadata['Target customer'] if 'Target customer' in metadata else ""
66
  business_model = ""
67
  if 'Business model' in metadata:
68
  try:
 
70
  #business_model = json.loads(metadata['Business model'])
71
  except Exception as e:
72
  print(f"An error occurred: {str(e)}")
73
+
74
  markdown = f"""
75
  <div class="row align-items-start" style="padding-bottom:10px;">
76
  <div class="col-md-8 col-sm-8">
 
79
  </div>
80
  <div class="col-md-1 col-sm-1"><span>{country}</span></div>
81
  <div class="col-md-1 col-sm-1"><span>{customer_problem}</span></div>
82
+ <div class="col-md-1 col-sm-1"><span>{target_customer}</span></div>
83
  <div class="col-md-1 col-sm-1"><span>{business_model}</span></div>
84
  """
85
 
utils.py CHANGED
@@ -99,10 +99,11 @@ Also name the ranking criteria and suggest how to combine them to best meet the
99
 
100
  default_prompt = """
101
  You are an assistant and your job is to help the user discover and analyze startups companies. You need to create a report with an analysis of companies relevant to the user's query.
102
- Use only information from the explicit list of companies provided!Don 't teach the user about investments and don't provide general information.
103
  Below is the user query followed by a list of company descriptions that match the user query.
104
  First advise the user on ways to improve the query followed by the token '-----'
105
- Then present the report. The report should mention the most important companies and how they compare to each other and contain the following sections
 
106
  - summarize what those companies they are doing (up to 20 words per company)
107
  - name customers and technology if they are mentioned
108
  - compare the companies to each other and point out what they do differently or what is their unique selling proposition
 
99
 
100
  default_prompt = """
101
  You are an assistant and your job is to help the user discover and analyze startups companies. You need to create a report with an analysis of companies relevant to the user's query.
102
+ Use only information from the explicit list of companies provided! Don't teach the user about investments and don't provide general information.
103
  Below is the user query followed by a list of company descriptions that match the user query.
104
  First advise the user on ways to improve the query followed by the token '-----'
105
+ If the user provide instructions, follow them to create a response. If not, create the following report:
106
+ The report should mention the most important companies and how they compare to each other and contain the following sections
107
  - summarize what those companies they are doing (up to 20 words per company)
108
  - name customers and technology if they are mentioned
109
  - compare the companies to each other and point out what they do differently or what is their unique selling proposition