Skip to content

Commit c4d529f

Browse files
fpagnyjcirinosclwy
andauthored
Update tutorials/how-to-implement-rag-generativeapis/index.mdx
Co-authored-by: Jessica <[email protected]>
1 parent 01d76f1 commit c4d529f

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ Then, we will embed them as vectors and store these vectors in your PostgreSQL d
239239
for r in rag_chain.stream("Provide the CLI command to shut down a scaleway instance. Its instance-uuid is example-28f3-4e91-b2af-4c3502562d72"):
240240
print(r, end="", flush=True)
241241
```
242+
242243
- `hub.pull("rlm/rag-prompt")` uses a standard RAG template. This ensures documents content retrieved will be passed as context along your prompt to the LLM using a compatible format.
243244
- `vector_store.as_retriever()` configures your vector store as additional context to retrieve before calling the LLM. By default, the 4 closest document chunks are retrieved using vector `similarity` score.
244245
- `rag_chain` defines a workflow performing the following steps in order: Retrieve relevant documents, Prompt LLM with document as context, and final output parsing.

0 commit comments

Comments
 (0)