Store 使用 pgvector 实现的 VectorStore。
| 39 | |
| 40 | // Store 使用 pgvector 实现的 VectorStore。 |
| 41 | type Store struct { |
| 42 | pool *pgxpool.Pool |
| 43 | table string |
| 44 | metric string |
| 45 | dim int |
| 46 | } |
| 47 | |
| 48 | // New 创建 PgVector 向量存储。 |
| 49 | func New(cfg *Config) (*Store, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected