A Python-based application that uses OpenAI's GPT-4 to intelligently modify JSON schemas based on natural language requests.
- Intelligent Section Analysis: Uses GPT-4 to identify which sections of the JSON need modification based on user requests
- JSON Processing: Validates and formats JSON modifications to ensure data integrity
- Multi-Agent System: Employs multiple AI agents for different tasks:
- Section Analyzer: Determines which parts of the JSON need changes
- JSON Processor: Formats and validates JSON modifications
- JSON Modifier: Implements changes while preserving the original structure
So currently we've got two JSON files, the copy one is the full one but I'm using the modified one to work with, it has only hero section - I don't want to burn tokens by sending the full JSON every time. The most important thing is that it works - the modification get written into the input JSON file.
Currently the system only works with the solution-section.json
file. It should be able to work with any JSON file.
Also, it'll overwrite the original file with the modified one and it'll be dynamically linked to the frontend.
And of course all of the other features like image input/output, etc...
install requirements:
pip install -r requirements.txt
create .env
file in the backend
folder and add your OpenAI API key:
OPENAI_API_KEY=<your_openai_api_key>
run the script:
python backend/main.py