Skip to content

Commit

Permalink
docs: update readme codeblocks (#124)
Browse files Browse the repository at this point in the history
Co-authored-by: Tabby <tabathal@google.com>
  • Loading branch information
averikitsch and tabbyl21 committed May 2, 2024
1 parent b490c81 commit 1c59d6b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Vector Store Usage

Use a Vector Store to store embedded data and perform vector search.

.. code-block::
.. code-block:: python
from langchain_google_cloud_sql_pg import PostgresVectorstore, PostgresEngine
from langchain.embeddings import VertexAIEmbeddings
Expand All @@ -96,7 +96,7 @@ Use a Vector Store to store embedded data and perform vector search.
table_name="my-table",
vector_size=768, # Vector size for `VertexAIEmbeddings()`
)
embeddings_service = VertexAIEmbeddings()
embeddings_service = VertexAIEmbeddings(model_name="textembedding-gecko@003")
vectorstore = PostgresVectorStore.create_sync(
engine,
table_name="my-table",
Expand All @@ -112,7 +112,7 @@ Document Loader Usage

Use a document loader to load data as Documents.

.. code-block::
.. code-block:: python
from langchain_google_cloud_sql_pg import PostgresEngine, PostgresLoader
Expand All @@ -133,7 +133,7 @@ Chat Message History Usage

Use Chat Message History to store messages and provide conversation history to LLMs.

.. code-block::
.. code-block:: python
from langchain_google_cloud_sql_pg import PostgresChatMessageHistory, PostgresEngine
Expand Down

0 comments on commit 1c59d6b

Please sign in to comment.