Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 531 Bytes

File metadata and controls

16 lines (12 loc) · 531 Bytes

Schema Hierarchy

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

Target models

Works with gpt-35-turbo and gpt-4.

Usage

Example prompts can be found in input.txt.