Skip to content

Commit 4d67584

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

File tree

1 file changed

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

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -290,15 +290,15 @@ for r in rag_chain.stream("Your question"):
290290
print(r, end="", flush=True)
291291
time.sleep(0.1)
292292
```
293-
- LLM initialization: We initialize the ChatOpenAI instance using the endpoint and API key from the environment variables, along with the specified model name.
293+
- LLM initialization: we initialize the ChatOpenAI instance using the endpoint and API key from the environment variables, along with the specified model name.
294294

295-
- Prompt setup: The prompt is pulled from the hub using a pre-defined template, ensuring consistent query formatting.
295+
- Prompt setup: the prompt is pulled from the hub using a predefined template, ensuring consistent query formatting.
296296

297-
- Retriever configuration: We set up the retriever to access the vector store, allowing the RAG system to retrieve relevant information based on the query.
297+
- Retriever configuration: we set up the retriever to access the vector store, allowing the RAG system to retrieve relevant information based on the query.
298298

299-
- RAG chain construction: We create the RAG chain, which connects the retriever, prompt, LLM, and output parser in a streamlined workflow.
299+
- RAG chain construction: we create the RAG chain, which connects the retriever, prompt, LLM, and output parser in a streamlined workflow.
300300

301-
- Query execution: Finally, we stream the output of the RAG chain for a specified question, printing each response with a slight delay for better readability.
301+
- Query execution: finally, we stream the output of the RAG chain for a specified question, printing each response with a slight delay for better readability.
302302

303303
### Query the RAG system with your own prompt template
304304

0 commit comments

Comments
 (0)