Skip to content

Python: support opengauss vector store #12231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
10 changes: 10 additions & 0 deletions python/semantic_kernel/connectors/memory/opengauss/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright (c) Microsoft. All rights reserved.

from semantic_kernel.connectors.memory.opengauss.opengauss_collection import OpenGaussCollection
from semantic_kernel.connectors.memory.opengauss.opengauss_memory_store import (
OpenGaussMemoryStore,
)
from semantic_kernel.connectors.memory.opengauss.opengauss_settings import OpenGaussSettings
from semantic_kernel.connectors.memory.opengauss.opengauss_store import OpenGaussStore

__all__ = ["OpenGaussCollection", "OpenGaussMemoryStore", "OpenGaussSettings", "OpenGaussStore"]
18 changes: 18 additions & 0 deletions python/semantic_kernel/connectors/memory/opengauss/constants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (c) Microsoft. All rights reserved.

DEFAULT_SCHEMA = "public"

# Limitation based on openGauss documentation https://docs.opengauss.org/zh/docs/latest/docs/DataVec/DataVec-Overview.html
MAX_DIMENSIONALITY = 2000

# The name of the column that returns distance value in the database.
# It is used in the similarity search query. Must not conflict with model property.
DISTANCE_COLUMN_NAME = "sk_gs_distance"

# Environment Variables
GSHOST_ENV_VAR = "GSHOST"
GSPORT_ENV_VAR = "GSPORT"
GSDATABASE_ENV_VAR = "GSDATABASE"
GSUSER_ENV_VAR = "GSUSER"
GSPASSWORD_ENV_VAR = "GSPASSWORD"
GSSSL_MODE_ENV_VAR = "GSSSL_MODE"

Large diffs are not rendered by default.

Loading