Tencent Cloud VectorDB is a fully managed, self-developed, enterprise-level distributed database service designed for storing, retrieving, and analyzing multi-dimensional vector data. The database supports multiple index types and similarity calculation methods. A single index can support a vector scale of up to 1 billion and can support millions of QPS and millisecond-level query latency. Tencent Cloud Vector Database can not only provide an external knowledge base for large models to improve the accuracy of large model responses but can also be widely used in AI fields such as recommendation systems, NLP services, computer vision, and intelligent customer service.This notebook shows how to use functionality related to the Tencent vector database. To run, you should have a Database instance..
Basic Usage
- Use any Embeddings models compatible with LangChain Embeddings.
- Specify the Embedding model name of the Tencent VectorStore DB, choices are:
bge-base-zh, dimension: 768m3e-base, dimension: 768text2vec-large-chinese, dimension: 1024e5-large-v2, dimension: 1024multilingual-e5-base, dimension: 768
embeddings or t_vdb_embedding parameters. if both are provided, the embeddings parameter will be used:
Metadata and filtering
Tencent VectorDB supports metadata and filtering. You can add metadata to the documents and filter the search results based on the metadata. now we will create a new TencentVectorDB collection with metadata and demonstrate how to filter the search results based on the metadata:Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.