From fed72f1a7ef6b6e7dc8564332b46d6e5aca43296 Mon Sep 17 00:00:00 2001 From: Haihao Shen Date: Wed, 5 Jun 2024 10:38:54 +0800 Subject: [PATCH] Revert "PGvector service (#86)" This reverts commit 1b700108d67b59ff8f83bd16f917e18fab0f7e62. --- comps/vectorstores/README.md | 4 ---- .../vectorstores/langchain/pgvector/README.md | 21 ------------------- .../langchain/pgvector/__init__.py | 13 ------------ .../langchain/pgvector/docker-compose.yml | 17 --------------- .../vectorstores/langchain/pgvector/init.sql | 1 - 5 files changed, 56 deletions(-) delete mode 100644 comps/vectorstores/langchain/pgvector/README.md delete mode 100644 comps/vectorstores/langchain/pgvector/__init__.py delete mode 100644 comps/vectorstores/langchain/pgvector/docker-compose.yml delete mode 100644 comps/vectorstores/langchain/pgvector/init.sql diff --git a/comps/vectorstores/README.md b/comps/vectorstores/README.md index 6b30b150b..c7d75ef80 100644 --- a/comps/vectorstores/README.md +++ b/comps/vectorstores/README.md @@ -9,7 +9,3 @@ For details, please refer to this [readme](langchain/redis/README.md) # Vectorstores Microservice with Qdrant For details, please refer to this [readme](langchain/qdrant/README.md) - -# Vectorstores Microservice with PGVector - -For details, please refer to this [readme](langchain/pgvector/README.md) diff --git a/comps/vectorstores/langchain/pgvector/README.md b/comps/vectorstores/langchain/pgvector/README.md deleted file mode 100644 index 7d13ee312..000000000 --- a/comps/vectorstores/langchain/pgvector/README.md +++ /dev/null @@ -1,21 +0,0 @@ -# Start PGVector server - -## 1. Download Pgvector image - -```bash -docker pull pgvector/pgvector:0.7.0-pg16 -``` - -## 2. Configure the username, password and dbname - -```bash -export POSTGRES_USER=testuser -export POSTGRES_PASSWORD=testpwd -export POSTGRES_DB=vectordb -``` - -## 3. Run Pgvector service - -```bash -docker run --name vectorstore-postgres -e POSTGRES_USER=${POSTGRES_USER} -e POSTGRES_HOST_AUTH_METHOD=trust -e POSTGRES_DB=${POSTGRES_DB} -e POSTGRES_PASSWORD=${POSTGRES_PASSWORD} -d -v ./init.sql:/docker-entrypoint-initdb.d/init.sql pgvector/pgvector:0.7.0-pg16 -``` diff --git a/comps/vectorstores/langchain/pgvector/__init__.py b/comps/vectorstores/langchain/pgvector/__init__.py deleted file mode 100644 index 28f108cb6..000000000 --- a/comps/vectorstores/langchain/pgvector/__init__.py +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright (c) 2024 Intel Corporation -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. diff --git a/comps/vectorstores/langchain/pgvector/docker-compose.yml b/comps/vectorstores/langchain/pgvector/docker-compose.yml deleted file mode 100644 index e497390c4..000000000 --- a/comps/vectorstores/langchain/pgvector/docker-compose.yml +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright (C) 2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 - -services: - db: - hostname: db - image: pgvector/pgvector:0.7.0-pg16 - ports: - - 5432:5432 - restart: always - environment: - - POSTGRES_DB=vectordb - - POSTGRES_USER=testuser - - POSTGRES_PASSWORD=testpwd - - POSTGRES_HOST_AUTH_METHOD=trust - volumes: - - ./init.sql:/docker-entrypoint-initdb.d/init.sql diff --git a/comps/vectorstores/langchain/pgvector/init.sql b/comps/vectorstores/langchain/pgvector/init.sql deleted file mode 100644 index 0aa0fc225..000000000 --- a/comps/vectorstores/langchain/pgvector/init.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE EXTENSION IF NOT EXISTS vector;