Skip to content
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

PGVector Support in SAML #919

Merged
merged 2 commits into from
Mar 28, 2024
Merged
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
1 change: 1 addition & 0 deletions libs/superagent/app/api/workflow_configs/saml_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class SuperragDatabaseProvider(str, Enum):
pinecone = "pinecone"
weaviate = "weaviate"
qdrant = "qdrant"
pgvector = "pgvector"


class SuperragIndex(BaseModel):
Expand Down
2 changes: 2 additions & 0 deletions libs/superagent/app/utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ def get_superrag_compatible_credentials(credentials: dict):
# weaviate
"WEAVIATE_API_KEY": "api_key",
"WEAVIATE_URL": "host",
# PGVector
"SUPABASE_DB_URL": "database_uri",
}

superrag_credentials = {}
Expand Down
2 changes: 2 additions & 0 deletions libs/superagent/app/vectorstores/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"astra": "ASTRA_DB",
"weaviate": "WEAVIATE",
"supabase": "SUPABASE",
# NOTE: we used "supabase" name initially for the pgvector databases in our database
"pgvector": "SUPABASE",
}

REVERSE_VECTOR_DB_MAPPING = {v: k for k, v in VECTOR_DB_MAPPING.items()}
Expand Down
8 changes: 4 additions & 4 deletions libs/ui/config/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,16 +610,16 @@ export const siteConfig = {
name: "Supabase",
logo: "/supabase.png",
description:
"The pgvector extension is particularly useful for tasks such as vector similarity search, retrieval, generation, and clustering",
formDescription: "Please enter your Supabase Pgvector credentials.",
"The PGVector extension is particularly useful for tasks such as vector similarity search, retrieval, generation, and clustering",
formDescription: "Please enter your Supabase PGVector credentials.",
metadata: [
{
key: "SUPABASE_DB_URL",
type: "input",
label: "Database Connection URL",
label: "Database Connection URI",
placeholder: "postgres://postgres:postgres@localhost:5432/postgres",
helpText:
"The connection URL for your database. You can find this in your Supabase dashboard.",
"The connection URI for your database. You can find this in your Supabase dashboard.",
},
{
key: "SUPABASE_TABLE_NAME",
Expand Down