From b41002c7c3654e89a466f8b8c0ea7bda20700d44 Mon Sep 17 00:00:00 2001 From: Benedikt Rollik Date: Fri, 4 Oct 2024 13:50:55 +0200 Subject: [PATCH 1/2] fix(tuto): fix minor typos --- tutorials/how-to-implement-rag/index.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tutorials/how-to-implement-rag/index.mdx b/tutorials/how-to-implement-rag/index.mdx index 38ca4ba4a1..3339e2112d 100644 --- a/tutorials/how-to-implement-rag/index.mdx +++ b/tutorials/how-to-implement-rag/index.mdx @@ -40,7 +40,7 @@ Run the following command to install the required packages: ```sh pip install langchain psycopg2 python-dotenv ``` -### Step 2: Create a .env file +### Create a .env file Create a .env file and add the following variables. These will store your API keys, database connection details, and other configuration values. @@ -117,9 +117,9 @@ conn = psycopg2.connect( cur = conn.cursor() ``` -## Embeddings and Vector Store Setup +## Embeddings and Vector store setup -### Import Required Modules +### Import required modules ```python # rag.py @@ -130,7 +130,7 @@ from langchain_postgres import PGVector ### Configure OpenAI Embeddings -We will utilize the [OpenAIEmbeddings](https://api.python.langchain.com/en/latest/embeddings/langchain_openai.embeddings.base.OpenAIEmbeddings.html) class from LangChain and store the embeddings in PostgreSQL using the PGVector integration. +We will use the [OpenAIEmbeddings](https://api.python.langchain.com/en/latest/embeddings/langchain_openai.embeddings.base.OpenAIEmbeddings.html) class from LangChain and store the embeddings in PostgreSQL using the PGVector integration. ```python # rag.py From 824a5debc1c12178a09b5cd588ab3071fed681f3 Mon Sep 17 00:00:00 2001 From: Benedikt Rollik Date: Fri, 4 Oct 2024 13:52:00 +0200 Subject: [PATCH 2/2] fix(tuto): fix tuto --- tutorials/how-to-implement-rag/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/how-to-implement-rag/index.mdx b/tutorials/how-to-implement-rag/index.mdx index 3339e2112d..95f1c5fca9 100644 --- a/tutorials/how-to-implement-rag/index.mdx +++ b/tutorials/how-to-implement-rag/index.mdx @@ -117,7 +117,7 @@ conn = psycopg2.connect( cur = conn.cursor() ``` -## Embeddings and Vector store setup +## Embeddings and vector store setup ### Import required modules