Skip to content
Merged
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,6 +1,7 @@
"""Postgres vector store."""

import logging
import os
from dataclasses import dataclass, field
from typing import Any, List, Optional

Expand Down Expand Up @@ -99,8 +100,10 @@ def __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
self.collection_name = name

Expand Down