Taken largely from this example, the script app_pidantic.py demonstrates the method shown in pydantic-chatcompletion, but points to a private Phi-2 LLM, running locally on jan.ai server. The results were successfull after a couple attempts. The LLM returned a summary of the user supplied unstructured text, according to the proper json schema, as dictated by the user supplied pidantic class. The initial attempts yielded error messages, which the code adds to the LLM chat context. Given the additional error message hint, the LLM then successfully output according to the stipulated schema. The example and schema were taken from the pydantic-chatcompletion project.
-
Notifications
You must be signed in to change notification settings - Fork 0
License
dtylor/DIY_LocalLLM
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published