You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pgvectors_config.py 1.1KB

123456789101112131415161718192021222324252627282930313233
  1. from pydantic import Field, PositiveInt
  2. from pydantic_settings import BaseSettings
  3. class PGVectoRSConfig(BaseSettings):
  4. """
  5. Configuration settings for PGVecto.RS (Rust-based vector extension for PostgreSQL)
  6. """
  7. PGVECTO_RS_HOST: str | None = Field(
  8. description="Hostname or IP address of the PostgreSQL server with PGVecto.RS extension (e.g., 'localhost')",
  9. default=None,
  10. )
  11. PGVECTO_RS_PORT: PositiveInt = Field(
  12. description="Port number on which the PostgreSQL server with PGVecto.RS is listening (default is 5431)",
  13. default=5431,
  14. )
  15. PGVECTO_RS_USER: str | None = Field(
  16. description="Username for authenticating with the PostgreSQL database using PGVecto.RS",
  17. default=None,
  18. )
  19. PGVECTO_RS_PASSWORD: str | None = Field(
  20. description="Password for authenticating with the PostgreSQL database using PGVecto.RS",
  21. default=None,
  22. )
  23. PGVECTO_RS_DATABASE: str | None = Field(
  24. description="Name of the PostgreSQL database with PGVecto.RS extension to connect to",
  25. default=None,
  26. )