From 654a1cc81b43e60db4effab5ea1d63bc06f3dd71 Mon Sep 17 00:00:00 2001 From: AbdallaMourad Date: Fri, 7 Jul 2023 21:07:25 +0800 Subject: [PATCH] fix typos in the structured file --- .gitignore | 3 ++- outputparser/structured.go | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 3c15b60b..86b7dbac 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,5 @@ coverage.out .vscode # dev -.env \ No newline at end of file +.env +vendor/* diff --git a/outputparser/structured.go b/outputparser/structured.go index 8ecc784f..7f68285a 100644 --- a/outputparser/structured.go +++ b/outputparser/structured.go @@ -31,7 +31,7 @@ const ( ) // ResponseSchema is struct used in the structured output parser to describe -// how the llm should format it's response. Name is a key in the parsed +// how the llm should format its response. Name is a key in the parsed // output map. Description is a description of what the value should contain. type ResponseSchema struct { Name string @@ -53,7 +53,7 @@ func NewStructured(schema []ResponseSchema) Structured { } } -// Statically assert that CommaSeparatedList implement the OutputParser interface. +// Statically assert that Structured implement the OutputParser interface. var _ schema.OutputParser[map[string]string] = Structured{} // Parse parses the output of an llm into a map. If the output of the llm doesn't @@ -105,7 +105,7 @@ func (p Structured) ParseWithPrompt(text string, _ schema.PromptValue) (map[stri } // GetFormatInstructions returns a string explaining how the llm should format -// it's response. +// its response. func (p Structured) GetFormatInstructions() string { jsonLines := "" for _, rs := range p.ResponseSchemas {