Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions 6-README-retrieval-augmented-generation.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Spring AI - Retrieval Augmented Generation
# Spring AI - Retrieval Augmented Generation

The code for this example is in the package `com.xkcd.ai.rag`.

Expand Down Expand Up @@ -42,7 +42,7 @@ Create embeddings for the documents. This calls the Azure OpenAI embedding endp

### Create a Prompt

The `Prompt` is created from a System message and a User message. The System message contains the similar documents retrieved from the `VectorStore`. The User message is the user's input to the `RagController` request parameter `message`
The `Prompt` is created from a System message and a User message. The System message contains similar documents retrieved from the `VectorStore`. The User message is the user's input to the `RagController` request parameter `message`

```java
Message systemMessage = getSystemMessage(similarDocuments);
Expand Down Expand Up @@ -86,7 +86,7 @@ A sample response is
}
```

Now using the `message` request parameter to ask about a specific bike.
Now use the `message` request parameter to ask about a specific bike.

```shell
$ http GET localhost:8080/ai/rag message=="Tell me some details about the SwiftRide Hybrid"
Expand Down