{"openapi":"3.1.0","info":{"title":"AIAdvisor","description":"AIAdvisor API on gpt-4o-mini (ChromaDB persistent)","version":"dev"},"paths":{"/question_case/":{"get":{"summary":"Ask AIAdvisor about your case (ChromaDB)","operationId":"ask_question_question_case__get","parameters":[{"name":"question","in":"query","required":true,"schema":{"type":"string","title":"Question"}},{"name":"case_id","in":"query","required":true,"schema":{"type":"string","title":"Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/question_cases/":{"get":{"summary":"Ask AIAdvisor about multiple cases (ChromaDB)","operationId":"ask_question_multi_question_cases__get","parameters":[{"name":"question","in":"query","required":true,"schema":{"type":"string","title":"Question"}},{"name":"case_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"title":"Case Ids"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clean_case_index/":{"post":{"summary":"Clean up an index for a case (ChromaDB)","operationId":"clean_case_index_clean_case_index__post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_clean_case_index_clean_case_index__post"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/store_document/":{"post":{"summary":"Store a document for a case (ChromaDB)","operationId":"store_document_store_document__post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_store_document_store_document__post"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/store_content/":{"post":{"summary":"Store document content for a case (ChromaDB)","operationId":"store_content_store_content__post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_store_content_store_content__post"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/store_zip_texts/":{"post":{"summary":"Store all text files from ZIP/text folder into a case (ChromaDB)","operationId":"store_zip_texts_store_zip_texts__post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_store_zip_texts_store_zip_texts__post"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/describe_index/":{"get":{"summary":"Describe Chroma collections / case collection","operationId":"describe_index_describe_index__get","parameters":[{"name":"case_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"Body_clean_case_index_clean_case_index__post":{"properties":{"case_id":{"type":"string","title":"Case Id"}},"type":"object","required":["case_id"],"title":"Body_clean_case_index_clean_case_index__post"},"Body_store_content_store_content__post":{"properties":{"case_id":{"type":"string","title":"Case Id"},"content":{"type":"string","title":"Content"},"source":{"type":"string","title":"Source"}},"type":"object","required":["case_id","content","source"],"title":"Body_store_content_store_content__post"},"Body_store_document_store_document__post":{"properties":{"case_id":{"type":"string","title":"Case Id"},"document":{"type":"string","format":"binary","title":"Document"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"}},"type":"object","required":["case_id","document"],"title":"Body_store_document_store_document__post"},"Body_store_zip_texts_store_zip_texts__post":{"properties":{"case_id":{"type":"string","title":"Case Id"},"zip_file":{"type":"string","format":"binary","title":"Zip File"}},"type":"object","required":["case_id","zip_file"],"title":"Body_store_zip_texts_store_zip_texts__post"},"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"}}}}