This application demonstrates how to implement hierarchical schema using an example HierarchicalJsonTranslator.
The HierarchicalJsonTranslator uses embeddings to automatically picks the best child schema for a request using embedings. Sub-schemas are:
- CoffeeShop
- Restaurant
- Calendar
- Sentiment
- HealthDataResponse
Works with gpt-35-turbo and gpt-4.
Example prompts can be found in input.txt
.