Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
add meta.doc_id index for tidb (#4963)
Jyong237b8fe3d93c
diff --git a/api/core/rag/datasource/vdb/tidb_vector/tidb_vector.py b/api/core/rag/datasource/vdb/tidb_vector/tidb_vector.pyindex 00b929f67a3..107d17bb478 100644--- a/api/core/rag/datasource/vdb/tidb_vector/tidb_vector.py+++ b/api/core/rag/datasource/vdb/tidb_vector/tidb_vector.py@@ -84,6 +84,8 @@ class TiDBVector(BaseVector):id CHAR(36) PRIMARY KEY,text TEXT NOT NULL,meta JSON NOT NULL,+ doc_id VARCHAR(64) AS (JSON_UNQUOTE(JSON_EXTRACT(meta, '$.doc_id'))) STORED,+ KEY (doc_id),vector VECTOR<FLOAT>({dimension}) NOT NULL COMMENT "hnsw(distance={self._distance_func})",create_time DATETIME DEFAULT CURRENT_TIMESTAMP,update_time DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP