Skip to content

Commit f3623ff

Browse files
danpgopherbot
authored andcommitted
ragserver: fix typos
Change-Id: Ibbaf613d84b76e78eaf001d082b505e24885d4d6 Reviewed-on: https://go-review.googlesource.com/c/example/+/613276 Reviewed-by: Ian Lance Taylor <[email protected]> TryBot-Bypass: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Eli Bendersky <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Dan Peterson <[email protected]>
1 parent 4e46ff5 commit f3623ff

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ragserver/ragserver-genkit/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func (rs *ragServer) queryHandler(w http.ResponseWriter, req *http.Request) {
142142
docsContents = append(docsContents, d.Content[0].Text)
143143
}
144144

145-
// Creata a RAG query for the LLM with the most relevant documents as
145+
// Create a RAG query for the LLM with the most relevant documents as
146146
// context.
147147
ragQuery := fmt.Sprintf(ragTemplateStr, qr.Content, strings.Join(docsContents, "\n"))
148148
genResp, err := ai.Generate(rs.ctx, rs.model, ai.WithTextPrompt(ragQuery))

ragserver/ragserver-langchaingo/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func (rs *ragServer) queryHandler(w http.ResponseWriter, req *http.Request) {
125125
docsContents = append(docsContents, doc.PageContent)
126126
}
127127

128-
// Creata a RAG query for the LLM with the most relevant documents as
128+
// Create a RAG query for the LLM with the most relevant documents as
129129
// context.
130130
ragQuery := fmt.Sprintf(ragTemplateStr, qr.Content, strings.Join(docsContents, "\n"))
131131
respText, err := llms.GenerateFromSinglePrompt(rs.ctx, rs.geminiClient, ragQuery, llms.WithModel(generativeModelName))

ragserver/ragserver/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ func (rs *ragServer) queryHandler(w http.ResponseWriter, req *http.Request) {
161161
return
162162
}
163163

164-
// Creata a RAG query for the LLM with the most relevant documents as
164+
// Create a RAG query for the LLM with the most relevant documents as
165165
// context.
166166
ragQuery := fmt.Sprintf(ragTemplateStr, qr.Content, strings.Join(contents, "\n"))
167167
resp, err := rs.genModel.GenerateContent(rs.ctx, genai.Text(ragQuery))

0 commit comments

Comments
 (0)