Skip to content

dtylor/DIY_LocalLLM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

DIY_LocalLLM

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages