Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 814 Bytes

RECOMMENDATION.md

File metadata and controls

35 lines (25 loc) · 814 Bytes

Recommendation System

OpenAI can be used to develop recommendation systems that can suggest products, services, or content to users based on their preferences and behavior.

flowchart LR
  A((Start))-->B{From curated<br/>content}
  B--No-->O([OpenAI])
  B--Yes-->D([Add curated<br/>content as context])
  D-->O
  classDef blue fill:blue,color:#fefefe
  class A,B,O,D blue
Loading

Jupyter notebook:

Examples:

  • Without context
prompt = "List the best restaurants in Miami, FL."
  • With context
target_text=""
for restaurant in mock_get_restaurant_list("MIA"):
    target_text += f"{restaurant}\n"

prompt = f'List two top restaurants in Miami, FL\n{target_text}'