ragserver: fix typos
Change-Id: Ibbaf613d84b76e78eaf001d082b505e24885d4d6
Reviewed-on: https://go-review.googlesource.com/c/example/+/613276
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Bypass: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Eli Bendersky <eliben@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Dan Peterson <danp@danp.net>
diff --git a/ragserver/ragserver-genkit/main.go b/ragserver/ragserver-genkit/main.go
index fdddb63..db6fb0d 100644
--- a/ragserver/ragserver-genkit/main.go
+++ b/ragserver/ragserver-genkit/main.go
@@ -142,7 +142,7 @@
docsContents = append(docsContents, d.Content[0].Text)
}
- // Creata a RAG query for the LLM with the most relevant documents as
+ // Create a RAG query for the LLM with the most relevant documents as
// context.
ragQuery := fmt.Sprintf(ragTemplateStr, qr.Content, strings.Join(docsContents, "\n"))
genResp, err := ai.Generate(rs.ctx, rs.model, ai.WithTextPrompt(ragQuery))
diff --git a/ragserver/ragserver-langchaingo/main.go b/ragserver/ragserver-langchaingo/main.go
index f679c44..6cbcf88 100644
--- a/ragserver/ragserver-langchaingo/main.go
+++ b/ragserver/ragserver-langchaingo/main.go
@@ -125,7 +125,7 @@
docsContents = append(docsContents, doc.PageContent)
}
- // Creata a RAG query for the LLM with the most relevant documents as
+ // Create a RAG query for the LLM with the most relevant documents as
// context.
ragQuery := fmt.Sprintf(ragTemplateStr, qr.Content, strings.Join(docsContents, "\n"))
respText, err := llms.GenerateFromSinglePrompt(rs.ctx, rs.geminiClient, ragQuery, llms.WithModel(generativeModelName))
diff --git a/ragserver/ragserver/main.go b/ragserver/ragserver/main.go
index f1a21f8..3e2d80a 100644
--- a/ragserver/ragserver/main.go
+++ b/ragserver/ragserver/main.go
@@ -161,7 +161,7 @@
return
}
- // Creata a RAG query for the LLM with the most relevant documents as
+ // Create a RAG query for the LLM with the most relevant documents as
// context.
ragQuery := fmt.Sprintf(ragTemplateStr, qr.Content, strings.Join(contents, "\n"))
resp, err := rs.genModel.GenerateContent(rs.ctx, genai.Text(ragQuery))