Skip to content

Commit

Permalink
docs: explain different connection string formats in the docstring (#…
Browse files Browse the repository at this point in the history
…1132)

* feat: specify individual connection parameters

* style: fix excessive line length

* test: correct env variables

* docs: update PgvectorDocumentStore docstring

Co-authored-by: David S. Batista <[email protected]>

* style: reorder parameters

* style: reorder parameters

* revert: remove individual connection params

* docs: update postgres connection string docs

---------

Co-authored-by: David S. Batista <[email protected]>
  • Loading branch information
kanenorman and davidsbatista authored Oct 15, 2024
1 parent 518cf27 commit a223e6f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ def __init__(
A specific table to store Haystack documents will be created if it doesn't exist yet.
:param connection_string: The connection string to use to connect to the PostgreSQL database, defined as an
environment variable, e.g.: `PG_CONN_STR="postgresql://USER:PASSWORD@HOST:PORT/DB_NAME"`
environment variable. It can be provided in either URI format
e.g.: `PG_CONN_STR="postgresql://USER:PASSWORD@HOST:PORT/DB_NAME"`, or keyword/value format
e.g.: `PG_CONN_STR="host=HOST port=PORT dbname=DBNAME user=USER password=PASSWORD"`
See [PostgreSQL Documentation](https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING)
for more details.
:param table_name: The name of the table to use to store Haystack documents.
:param language: The language to be used to parse query and document content in keyword retrieval.
To see the list of available languages, you can run the following SQL query in your PostgreSQL database:
Expand Down

0 comments on commit a223e6f

Please sign in to comment.