feat: add upstash as a new vector database provider (#9644)

This commit is contained in:
Zven
2024-10-23 09:16:35 +08:00
committed by GitHub
parent 999d3f1539
commit 8e7a752b2a
16 changed files with 365 additions and 4 deletions

View File

@@ -0,0 +1,20 @@
from typing import Optional
from pydantic import Field
from pydantic_settings import BaseSettings
class UpstashConfig(BaseSettings):
"""
Configuration settings for Upstash vector database
"""
UPSTASH_VECTOR_URL: Optional[str] = Field(
description="URL of the upstash server (e.g., 'https://vector.upstash.io')",
default=None,
)
UPSTASH_VECTOR_TOKEN: Optional[str] = Field(
description="Token for authenticating with the upstash server",
default=None,
)