Skip to content

Vector Store

Example Code: examples/knowledge/vectorstores

Vector store is the core component of the Knowledge system, responsible for storing and retrieving vector representations of documents.

Supported Vector Stores

trpc-agent-go supports multiple vector store implementations:

Vector Store Description
Memory In-memory vector store
PGVector PostgreSQL + pgvector extension
TcVector Tencent Cloud vector database
Elasticsearch Supports v7/v8/v9 versions
Qdrant High-performance vector database
Milvus High-performance vector database

Filter Support

All vector stores support filter functionality, including ID filtering, metadata filtering, and complex condition filtering (FilterCondition).

More Content

  • Memory - In-memory vector store configuration
  • PGVector - PostgreSQL + pgvector configuration
  • TcVector - Tencent Cloud vector database configuration
  • Elasticsearch - Elasticsearch configuration
  • Qdrant - Qdrant configuration
  • Milvus - Milvus configuration