canary icon indicating copy to clipboard operation
canary copied to clipboard

Use json_schema for summary generation

Open yujonglee opened this issue 1 year ago • 0 comments

    schema = %{
      type: "object",
      properties: %{
        keywords: %{
          type: "array",
          description: "List of extracted keywords. Upto 20 keywords are allowed",
          items: %{
            type: "object",
            description:
              "Extracted keyword. Keyword must be domain specific, or frequently used words in the document. If the document is defining new terms, that must be extracted.",
            properties: %{
              value: %{
                type: "string",
                description: "Keyword itself(one or two words)"
              },
              description: %{
                type: "string",
                description: "Short description of the keyword"
              }
            },
            required: ["value", "description"]
          }
        }
      },
      required: ["keywords"]
    }

The blocker is Azure version. (we need 2024-08-06)

yujonglee avatar Aug 20 '24 05:08 yujonglee