Skip to content

Commit f783796

Browse files
John Blumtzolov
authored andcommitted
Correct grammar in RAG and Function Calling sections
Resolves #1060
1 parent feb036d commit f783796

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

spring-ai-docs/src/main/antora/modules/ROOT/pages/concepts.adoc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ Initially starting as simple strings, prompts have evolved to include multiple m
7070

7171
== Embeddings
7272

73-
Embeddings are numerical representations of text, images, or videos that capture relationships between inputs.
73+
Embeddings are numerical representations of text, images, or videos that capture relationships between inputs.
7474

75-
Embeddings work by converting text, image, and video into arrays of floating point numbers, called vectors.
76-
These vectors are designed to capture the meaning of the text, images, and videos.
77-
The length of the embedding array is called the vector's dimensionality.
75+
Embeddings work by converting text, image, and video into arrays of floating point numbers, called vectors.
76+
These vectors are designed to capture the meaning of the text, images, and videos.
77+
The length of the embedding array is called the vector's dimensionality.
7878

7979
By calculating the numerical distance between the vector representations of two pieces of text, an application can determine the similarity between the objects used to generate the embedding vectors.
8080

@@ -169,13 +169,13 @@ This is the reason to use a vector database. It is very good at finding similar
169169

170170
image::spring-ai-rag.jpg[Spring AI RAG, width=1000, align="center"]
171171

172-
* The xref::api/etl-pipeline.adoc[ETL pipeline] provides further information about orchestrating the flow of extracting data from the data sources and store it in a structured vector store, ensuring data is in the optimal format for retrieval by the AI model.
173-
* The xref::api/chatclient.adoc#_retrieval_augmented_generation[ChatClient - RAG] explains how to use the `QuestionAnswerAdvisor` advisor to enable the RAG capability to your application.
172+
* The xref::api/etl-pipeline.adoc[ETL pipeline] provides further information about orchestrating the flow of extracting data from data sources and storing it in a structured vector store, ensuring data is in the optimal format for retrieval when passing it to the AI model.
173+
* The xref::api/chatclient.adoc#_retrieval_augmented_generation[ChatClient - RAG] explains how to use the `QuestionAnswerAdvisor` advisor to enable the RAG capability in your application.
174174

175175
[[concept-fc]]
176176
=== Function Calling
177177

178-
Large Language Models (LLMs) are frozen after training, leading to stale knowledge and they are unable to access or modify external data.
178+
Large Language Models (LLMs) are frozen after training, leading to stale knowledge, and they are unable to access or modify external data.
179179

180180
The xref::api/functions.adoc[Function Calling] mechanism addresses these shortcomings.
181181
It allows you to register your own functions to connect the large language models to the APIs of external systems.
@@ -188,8 +188,8 @@ Additionally, you can define and reference multiple functions in a single prompt
188188

189189
image::function-calling-basic-flow.jpg[Function calling, width=700, align="center"]
190190

191-
* (1) perform a chat request along with a function definition information.
192-
Later provides the `name`, `description` (e.g. explaining when the Model should call the function), and `input parameters` (e.g. the function's input parameters schema).
191+
* (1) perform a chat request sending along function definition information.
192+
The later provides the `name`, `description` (e.g. explaining when the Model should call the function), and `input parameters` (e.g. the function's input parameters schema).
193193
* (2) when the Model decides to call the function, it will call the function with the input parameters and return the output to the model.
194194
* (3) Spring AI handles this conversation for you.
195195
It dispatches the function call to the appropriate function and returns the result to the model.

0 commit comments

Comments
 (0)