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
fix: Compatible with special characters in pg full-text search. (#8921)
Aurelius Huang4585cffce1af
diff --git a/api/core/rag/datasource/vdb/pgvector/pgvector.py b/api/core/rag/datasource/vdb/pgvector/pgvector.pyindex d90707ebcd5..25a10a1e480 100644--- a/api/core/rag/datasource/vdb/pgvector/pgvector.py+++ b/api/core/rag/datasource/vdb/pgvector/pgvector.py@@ -166,7 +166,7 @@ class PGVector(BaseVector):with self._get_cursor() as cur:cur.execute(- f"""SELECT meta, text, ts_rank(to_tsvector(coalesce(text, '')), to_tsquery(%s)) AS score+ f"""SELECT meta, text, ts_rank(to_tsvector(coalesce(text, '')), plainto_tsquery(%s)) AS scoreFROM {self.table_name}WHERE to_tsvector(text) @@ plainto_tsquery(%s)ORDER BY score DESC