Skip to content

postgresql + pgvector configuration #917

@benqethan

Description

@benqethan

I tried to make txtai to load Application(yml_config), but seems the loaddata doesn't happen even i have the vector in the postgresql.
Below is the the yaml file

# Embeddings index
embeddings:
  # model: thenlper/gte-base
  ann:
    backend: pgvector
  database:
    backend: postgres
  pgvector:
    url: postgresql://pguser:pgpassword@localhost:5432/pgvector_db
    schema: txtai
  content: postgresql://pguser:pgpassword@localhost:5432/pgvector_db

writable: True

Seems it is related to this line in Application class:

if loaddata and Embeddings().exists(self.config.get("path"), self.config.get("cloud")):

Not sure how to make it work. Please help out. Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions