redpanda-ai / Meerkat

Used for the Meerkat project
Other
1 stars 1 forks source link

Meerkat Changes #951

Open vnagarajY opened 8 years ago

vnagarajY commented 8 years ago

Definition of Done: Update Meerkat service in the data_deal branch to allow acceptance of City, state, country, postal code and Phone # as optional attributes for a transaction. Integrate the flow with changes to RNN and search functionality. Search is only for US -

1) Execute CNN 2) Execute RNN 3) If transaction is for a CNN merchant and is available in AGG to CNN mapping - Execute Agg_search using merchant_name =Agg_name from mapping file and city, state, postal code, Phone # - as available in input and Store # (from RNN) 4) Else - Execute Factual Search Merchant name= CNN_merchant name or RNN Merchant name and city, state, postal code, Phone # - as available in input

CNN_Agg.txt

diwu001 commented 8 years ago

We have a new web service for datadeal project, and its route is "/meerkat_datadeal/"

Transaction Input fields:

Transaction Output fields:

required_fields: row_id, input_description, merchant_name, description_substring, address, city, state, zip_code, phone, longitude, latitude, website_url, store_number

In debug mode, besides the above required fields, we add the following fields:

Web service Work flow:

Run a json sample

Code is at branch issue_951 To run a json sample through the meerkat_datadeal web service:

[~/git/Meerkat @ issue_951] ./web_service_tester/single_post_datadeal.sh sample.json