{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/without_login":{"post":{"tags":["Product_Search_APIS"],"summary":"Without Login","operationId":"without_login_without_login_post","parameters":[{"name":"userId","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"User ID","title":"Userid"},"description":"User ID"},{"name":"showroomId","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Showroom ID","title":"Showroomid"},"description":"Showroom ID"},{"name":"platform","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Platform (web / ios / android)","title":"Platform"},"description":"Platform (web / ios / android)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/history/session/{sessionId}":{"get":{"tags":["Product_Search_APIS"],"summary":"Get History By Session","operationId":"get_history_by_session_history_session__sessionId__get","parameters":[{"name":"sessionId","in":"path","required":true,"schema":{"type":"string","title":"Sessionid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Product_Search_APIS"],"summary":"Delete Session History","operationId":"delete_session_history_history_session__sessionId__delete","parameters":[{"name":"sessionId","in":"path","required":true,"schema":{"type":"string","title":"Sessionid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/history/session/{sessionId}":{"get":{"tags":["Product_Search_APIS"],"summary":"Get History By Session V2","operationId":"get_history_by_session_v2_v2_history_session__sessionId__get","parameters":[{"name":"sessionId","in":"path","required":true,"schema":{"type":"string","title":"Sessionid"}},{"name":"offset","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page"}},{"name":"perPage","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Perpage"}},{"name":"term","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Term"}},{"name":"isLastSelectedHistory","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Islastselectedhistory"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/history/{sessionId}/{conversationId}":{"get":{"tags":["Product_Search_APIS"],"summary":"Get History By Session And Conversation","operationId":"get_history_by_session_and_conversation_history__sessionId___conversationId__get","parameters":[{"name":"sessionId","in":"path","required":true,"schema":{"type":"string","title":"Sessionid"}},{"name":"conversationId","in":"path","required":true,"schema":{"type":"string","title":"Conversationid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/history/{sessionId}/{conversationId}":{"get":{"tags":["Product_Search_APIS"],"summary":"Get History By Session And Conversation V2","operationId":"get_history_by_session_and_conversation_v2_v2_history__sessionId___conversationId__get","parameters":[{"name":"sessionId","in":"path","required":true,"schema":{"type":"string","title":"Sessionid"}},{"name":"conversationId","in":"path","required":true,"schema":{"type":"string","title":"Conversationid"}},{"name":"offset","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page"}},{"name":"perPage","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Perpage"}},{"name":"isLastSelectedHistory","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Islastselectedhistory"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/history/session/{sessionId}/{conversationId}":{"delete":{"tags":["Product_Search_APIS"],"summary":"Delete Session And Conversation History","operationId":"delete_session_and_conversation_history_history_session__sessionId___conversationId__delete","parameters":[{"name":"sessionId","in":"path","required":true,"schema":{"type":"string","title":"Sessionid"}},{"name":"conversationId","in":"path","required":true,"schema":{"type":"string","title":"Conversationid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cache/clear":{"delete":{"tags":["Product_Search_APIS"],"summary":"Clear Cache","operationId":"clear_cache_cache_clear_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/chat/feedback":{"post":{"tags":["Product_Search_APIS"],"summary":"Submit Chat Feedback","operationId":"submit_chat_feedback_api_v1_chat_feedback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lense_chatter/new_feedback":{"post":{"tags":["Product_Search_APIS"],"summary":"Submit Lense And Chatter Feedback","operationId":"submit_lense_and_chatter_feedback_lense_chatter_new_feedback_post","parameters":[{"name":"userId","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"User ID","title":"Userid"},"description":"User ID"},{"name":"showroomId","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Showroom ID","title":"Showroomid"},"description":"Showroom ID"},{"name":"platform","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Platform (web / ios / android)","title":"Platform"},"description":"Platform (web / ios / android)"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_submit_lense_and_chatter_feedback_lense_chatter_new_feedback_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/create-embeddings-cosmos":{"post":{"tags":["Product_Search_APIS"],"summary":"Create Embeddings Cosmos","description":"Create embeddings from CosmosDB container and store in Azure AI Search.\nUses Azure OpenAI for embeddings instead of OpenAI.","operationId":"create_embeddings_cosmos_create_embeddings_cosmos_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/create-spec-sheet-embeddings":{"post":{"tags":["Product_Search_APIS"],"summary":"Create Spec Sheet Embeddings","description":"Triggers the spec sheet embedding pipeline as a background task.","operationId":"create_spec_sheet_embeddings_create_spec_sheet_embeddings_post","parameters":[{"name":"force_reindex","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Reindex"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Spec Sheet Embeddings Create Spec Sheet Embeddings Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/incremental-data-pipeline":{"post":{"tags":["Product_Search_APIS"],"summary":"Incremental Data Pipeline","description":"Triggers the complete incremental data pipeline sequentially in the background:\n  Step 1: Backup search indexes(Disabled)\n  Step 2: Load data from Cosmos DB (filtered by latest Load_Date)\n  Step 3: Extract text via Document Intelligence → store as markdown in Blob Storage\n  Step 4: Delete existing spec & installation search indexes\n  Step 5: Generate spec & installation embeddings (34k+ products)\n  Step 6: Generate main product search embeddings & update search index","operationId":"incremental_data_pipeline_incremental_data_pipeline_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/send-report":{"post":{"tags":["Product_Search_APIS"],"summary":"Send Feedback Report","description":"Trigger the VCC Lens and Chatter Feedback Report email.\n\n- Runs in background so the API returns immediately.\n- `days`: number of days to look back (default 1)\n- `only_dislike`: if true, only negative feedback is included","operationId":"send_feedback_report_send_report_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackReportResponse"}}}}}}},"/copy-prod-indexes":{"post":{"tags":["Product_Search_APIS"],"summary":"Copy Prod Indexes","description":"Copy 3 production Azure Search indexes to both UAT and Dev environments.\nCreates target indexes (cloned from source schema) if they don't exist.\n\nIndexes copied:\n  - product-search-embedding-prod  → product-search-embedding-uat, product-search-embedding-dev\n  - specsheet-search-index-prod    → specsheet-search-index-uat, specsheet-search-index-dev\n  - installation-guide-search-index-prod → installation-guide-search-index-uat, installation-guide-search-index-dev","operationId":"copy_prod_indexes_copy_prod_indexes_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/structured_tool_actions/":{"post":{"tags":["Config_APIS"],"summary":"Structured Tool Actions","operationId":"structured_tool_actions_structured_tool_actions__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/tool_actions_request"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/unstructured_tool_actions/":{"post":{"tags":["Config_APIS"],"summary":"Unstructured Tool Actions","operationId":"unstructured_tool_actions_unstructured_tool_actions__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/unstructure_tool_actions_request"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connection_input/":{"post":{"tags":["Config_APIS"],"summary":"User Credentials","operationId":"user_credentials_connection_input__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/db_connection_cred"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Body_submit_lense_and_chatter_feedback_lense_chatter_new_feedback_post":{"properties":{"session_id":{"type":"string","title":"Session Id"},"conversationId":{"type":"string","title":"Conversationid"},"response_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Id"},"Product_Id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Id"},"rating":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rating"},"feedback_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feedback Type"},"feedback":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feedback"},"Lens_FeedbackType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lens Feedbacktype"},"project_type":{"type":"string","title":"Project Type"},"detected_image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detected Image"},"feedback_product_image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feedback Product Image"},"crop_image_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crop Image Path"},"allProductDetails":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Allproductdetails"},"input_image":{"anyOf":[{"type":"string","format":"binary"},{"type":"null"}],"title":"Input Image"}},"type":"object","required":["session_id","conversationId","project_type"],"title":"Body_submit_lense_and_chatter_feedback_lense_chatter_new_feedback_post"},"ChatRequest":{"properties":{"sessionId":{"type":"string","title":"Sessionid"},"message":{"type":"string","title":"Message"},"context":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Context"},"conversationId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversationid"}},"type":"object","required":["sessionId","message"],"title":"ChatRequest"},"FeedbackReportResponse":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"}},"type":"object","required":["status","message"],"title":"FeedbackReportResponse"},"FeedbackRequest":{"properties":{"session_id":{"type":"string","title":"Session Id"},"conversationId":{"type":"string","title":"Conversationid"},"response_id":{"type":"string","title":"Response Id"},"rating":{"type":"integer","title":"Rating"},"feedback_type":{"type":"string","title":"Feedback Type"},"feedback":{"type":"string","title":"Feedback"}},"type":"object","required":["session_id","conversationId","response_id","rating","feedback_type","feedback"],"title":"FeedbackRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"db_connection_cred":{"properties":{"client_env":{"type":"string","title":"Client Env"},"user_name":{"type":"string","title":"User Name"},"database_product_dialect":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Database Product Dialect"},"host_product":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host Product"},"user_product":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Product"},"password_product":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password Product"},"port_product":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Port Product"},"database_product":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Database Product"}},"type":"object","required":["client_env","user_name"],"title":"db_connection_cred"},"tool_actions_request":{"properties":{"client_env":{"type":"string","title":"Client Env"},"user_name":{"type":"string","title":"User Name"},"product_search_tool":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Search Tool"},"product_recommendation_tool":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Recommendation Tool"},"get_orders_by_customer_email_tool":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Get Orders By Customer Email Tool"},"get_order_by_order_id_tool":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Get Order By Order Id Tool"},"cancel_order_tool":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancel Order Tool"},"add_to_cart_tool":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Add To Cart Tool"},"compare_tool":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Compare Tool"},"product_table_names":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Product Table Names"},"top_n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Top N"},"feature_column_list_input":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Feature Column List Input","default":"[\"productid,productname,imagelink,price,productdetails,category,subcategory,brand,color,gender,size\"]"},"feature_column_list_output":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Feature Column List Output","default":"[\"productid,productname,imagelink,price,productdetails,category,subcategory,brand,rating,no_of_rating,no_of_reviews,color,gender,size\"]"},"acceptance_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Acceptance Threshold"},"personalities":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Personalities"},"voice":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Voice"},"tone":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tone"},"traits":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Traits"}},"type":"object","required":["user_name"],"title":"tool_actions_request"},"unstructure_tool_actions_request":{"properties":{"client_env":{"type":"string","title":"Client Env"},"user_name":{"type":"string","title":"User Name"},"product_page_chat_tool_desc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Page Chat Tool Desc"},"return_policy_tool":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return Policy Tool"},"faq_tool":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Faq Tool"}},"type":"object","required":["client_env","user_name"],"title":"unstructure_tool_actions_request"}}}}