Skip to content

Commit 2c3d0a9

Browse files
Update tutorials/how-to-implement-rag-generativeapis/index.mdx
Co-authored-by: SamyOubouaziz <[email protected]>
1 parent 4d67584 commit 2c3d0a9

File tree

1 file changed

+1
-1
lines changed
  • tutorials/how-to-implement-rag-generativeapis

1 file changed

+1
-1
lines changed

tutorials/how-to-implement-rag-generativeapis/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ for r in custom_rag_chain.stream({"question":"your question", "context": context
329329
time.sleep(0.1)
330330
```
331331

332-
- Prompt template: The prompt template is meticulously crafted to direct the model's responses. It clearly instructs the model on how to leverage the provided context and emphasizes the importance of honesty in cases where it lacks information.
332+
- Prompt template: the prompt template is meticulously crafted to direct the model's responses. It clearly instructs the model on how to leverage the provided context and emphasizes the importance of honesty in cases where it lacks information.
333333
To make the responses more engaging, consider adding a light-hearted conclusion or a personalized touch. For example, you might modify the closing line to say, "Thank you for asking! I'm here to help with anything else you need!"
334334
Retrieving context:
335335
- The retriever.invoke(new_message) method fetches relevant information from your vector store based on the user’s query. It's essential that this step retrieves high-quality context to ensure that the model's responses are accurate and helpful.

0 commit comments

Comments
 (0)