Filter Product Search
The search_intent_fetch
method uses natural language understanding to process user prompts and execute intent-based actions like searching for specific products. It filters and retrieves data based on the provided action intent and criteria.
# Initialize CatalogLake
cl = CatalogLake()
# Define the payload
search_intent_fetch_payload = {
"prompt": "show me chiffon polka dot green saree under Rs 1000",
"language": "en-us",
"action_intent": "search",
"model": "openai",
"num_items": 1
}
# Fetch search intent results
try:
search_results = cl.search_intent_fetch(search_intent_fetch_payload)
print(search_results)
except Exception as e:
print("Error:", str(e))
Last updated