PGVectorStore(
self,
key: object,
engine: PGEngine,
vs: AsyncPGVectorStore
)| Name | Type |
|---|---|
| key | object |
| engine | PGEngine |
| vs | AsyncPGVectorStore |
Postgres Vector Store class
Create an PGVectorStore instance.
Create an PGVectorStore instance.
Add data along with embeddings to the table.
Embed texts and add to the table.
Embed documents and add to the table.
Add data along with embeddings to the table.
Embed texts and add to the table.
Embed documents and add to the table.
Delete records from the table.
Delete records from the table.
Create an PGVectorStore instance from texts.
Create an PGVectorStore instance from documents.
Create an PGVectorStore instance from texts.
Create an PGVectorStore instance from documents.
Return docs selected by similarity search on query.
Return docs selected by similarity search on query.
Return docs and distance scores selected by similarity search on query.
Return docs selected by vector similarity search.
Return docs and distance scores selected by vector similarity search.
Return docs selected using the maximal marginal relevance.
Return docs selected using the maximal marginal relevance.
Return docs and distance scores selected using the maximal marginal relevance.
Return docs and distance scores selected by similarity search on query.
Return docs selected by vector similarity search.
Return docs and distance scores selected by similarity search on vector.
Return docs selected using the maximal marginal relevance.
Return docs selected using the maximal marginal relevance.
Return docs and distance scores selected using the maximal marginal relevance.
Creates a TSV index in the vector store table if possible.
Creates a TSV index in the vector store table if possible.
Create an index on the vector store table.
Create an index on the vector store table.
Re-index the vector store table.
Re-index the vector store table.
Drop the vector index.
Drop the vector index.
Check if index exists in the table.
Check if index exists in the table.
Get documents by ids.
Get documents by ids.
Retrieve documents from the collection using filters and parameters.
Retrieve documents from the collection using filters and parameters.