Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Postgres vector store."""

import os
import logging
from dataclasses import dataclass, field
from typing import Any, List, Optional
Expand Down Expand Up @@ -98,7 +99,10 @@ def __init__(
super().__init__(
max_chunks_once_load=max_chunks_once_load, max_threads=max_threads
)
self._vector_store_config = vector_store_config
self.connection_string = (
vector_store_config.connection_string
or os.getenv("PGVECTOR_CONNECTION_STRING")
)

self.connection_string = vector_store_config.connection_string
self.embeddings = embedding_fn
Expand Down
Loading