Skip to content

Commit

Permalink
Type Descriptors: Update docs (#6)
Browse files Browse the repository at this point in the history
Update documentation string in types descriptors
  • Loading branch information
eyurtsev authored Mar 9, 2023
1 parent df5e296 commit ba360b7
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions kor/type_descriptors.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,12 @@
"""Code that takes a object_input and outputs a string that describes its schema.
Without fine-tuning the LLM, the quality of the response may end up depending
on details such as the object_inputat of the schema.
on details such as the schema description in the prompt.
As a result, creating a dedicated module to allow experimenting with different
ways of describing the schema.
REWRITE in terms of visitors.
Designing the code here to make it easier to experiment with different ways
of describing the schema.
"""
from kor.nodes import (
Selection,
Text,
AbstractInput,
Object,
AbstractVisitor,
Number,
)


def _auto_type_name(element: AbstractInput) -> str:
"""Automatically assign a type name."""
return element.__class__.__name__.removesuffix("Input").lower()
from kor.nodes import AbstractInput, AbstractVisitor, Number, Object, Selection, Text


class BulletPointTypeGenerator(AbstractVisitor[None]):
Expand Down

0 comments on commit ba360b7

Please sign in to comment.