kubebb / core

A declarative component lifecycle management platform
https://kubebb.github.io/website
Apache License 2.0
8 stars 9 forks source link

optimize evaluator's output format with langchaingo `PromptTemplate`/`PromptChain` #346

Open bjwswang opened 11 months ago

bjwswang commented 11 months ago

We need the output more structured/readable like

type Output struct {
    Score int
    Problems []string
   Suggestions []string
}

We can use langchain's output parser https://github.com/tmc/langchaingo/tree/main/outputparser