Skip to content

Commit

Permalink
updates to our default BigQuery SearchProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
erikspears committed Oct 16, 2024
1 parent 53f0460 commit 5b9ce11
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 28 deletions.
31 changes: 31 additions & 0 deletions SearchProviders/company_data_bigquery.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "Company Data - BigQuery",
"active": false,
"default": false,
"connector": "BigQuery",
"url": "",
"query_template": "select {fields} from `{table}` where search({field1}, '{query_string}') or search({field2}, '{query_string}') or search({field3}, '{query_string}');",
"query_template_json": {},
"post_query_template": {},
"http_request_headers": {},
"page_fetch_config_json": {},
"query_processors": [
"AdaptiveQueryProcessor"
],
"query_mappings": "fields=*,sort_by_date=year_founded,table=company_dataset.company,field1=name,field2=domain,field3=locality",
"result_grouping_field": "",
"result_processors": [
"MappingResultProcessor",
"CosineRelevancyResultProcessor"
],
"response_mappings": "",
"result_mappings": "title=name,body='{name} was founded in {year_founded} and serves the {industry} industry. The company is located in {locality} and has approximately {current_employee_estimate} employees. The registered domain for this organization is: {domain}',url='https://www.{linkedin_url}',NO_PAYLOAD",
"results_per_query": 10,
"credentials": "/path/to/bigquery/token.json",
"eval_credentials": "",
"tags": [
"Company",
"BigQuery",
"Internal"
]
}
22 changes: 0 additions & 22 deletions SearchProviders/funding_db_bigquery.json

This file was deleted.

18 changes: 12 additions & 6 deletions SearchProviders/preloaded.json
Original file line number Diff line number Diff line change
Expand Up @@ -326,28 +326,34 @@
]
},
{
"name": "Company Funding Records - BigQuery",
"name": "Company Data - BigQuery",
"description": "Searches info on 7 million companies worldwide ncluding Linkedin URL, company size, location, and number of employees. Search only with company name, domain or location. Supports many languages. Does not support NOT operator.",
"active": false,
"default": false,
"connector": "BigQuery",
"url": "",
"query_template": "select {fields} from `{table}` where search({field1}, '{query_string}') or search({field2}, '{query_string}');",
"query_template": "select {fields} from `{table}` where search({field1}, '{query_string}') or search({field2}, '{query_string}') or search({field3}, '{query_string}');",
"query_template_json": {},
"post_query_template": {},
"http_request_headers": {},
"page_fetch_config_json": {},
"query_processors": [
"AdaptiveQueryProcessor"
],
"query_mappings": "fields=*,sort_by_date=fundedDate,table=funding.funding,field1=company,field2=city",
"query_mappings": "fields=*,sort_by_date=year_founded,table=company_dataset.company,field1=name,field2=domain,field3=locality",
"result_grouping_field": "",
"result_processors": [
"MappingResultProcessor",
"CosineRelevancyResultProcessor"
],
"response_mappings": "",
"result_mappings": "title='{company}',body='{company} raised ${raisedamt} series {round} on {fundeddate}. The company is located in {city} {state} and has {numemps} employees.',url=id,date_published=fundeddate,NO_PAYLOAD",
"result_mappings": "title=name,body='{name} was founded in {year_founded} and serves the {industry} industry. The company is located in {locality} and has approximately {current_employee_estimate} employees. The registered domain for this organization is: {domain}',url='https://www.{linkedin_url}',NO_PAYLOAD",
"results_per_query": 10,
"credentials": "/path/to/bigquery/token.json",
"eval_credentials": "",
"tags": [
"Company",
"BigQuery",
"Internal"
"BigQuery"
]
},
{
Expand Down

0 comments on commit 5b9ce11

Please sign in to comment.