Skip to content

migration of xo10 to xo11 of faqs json#50

Open
reshmayarraguntla wants to merge 1 commit into
masterfrom
reshma-kore
Open

migration of xo10 to xo11 of faqs json#50
reshmayarraguntla wants to merge 1 commit into
masterfrom
reshma-kore

Conversation

@reshmayarraguntla

@reshmayarraguntla reshmayarraguntla commented Aug 28, 2025

Copy link
Copy Markdown

Implemented a HTTP server for JSON file uploads and conversion.

  • Accepts file uploads via POST (multipart/form-data).
  • Validates that the uploaded file is a valid JSON containing "faqs".
  • Extracts FAQ question, answers, conditional answers, and alternate questions.
  • Converts the structure into a simplified JSON format with fields:
    • chunkText (answer text)
    • chunkTitle (question)
    • recordUrl ("faq")
    • cfa1 (conditional answers, if any)
    • cfa2 (alternate questions, if any)
  • Saves the converted file as <original_filename>-converted.json inside outputs/.
  • Responds with a JSON containing a URL to access the converted file.
  • Provides a GET endpoint to download the converted files.
  • Runs on port 5000 (http://localhost:5000).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants