Pgvectoroutput¶
flowtask.components.PgVectorOutput
¶
PgVectorOutput
¶
Bases: CredentialsInterface, FlowComponent
Saving Langchain Documents on a Postgres Database using PgVector.
This component is designed to save documents into a PostgreSQL database using PgVector extension
Example:
PgVectorOutput:
credentials:
dsn:
table: lg_products
schema: lg
embedding_model:
model: thenlper/gte-base
model_type: transformers
id_column: "id"
vector_column: 'embedding'
pk: source_type
create_table: true
upsert: true