Enhance PostgreSQL vector storage with chunk_id support

- Updated SQL templates for entity and relationship upsert to include chunk_id
- Modified PGVectorStorage methods to add chunk_id when inserting or updating records
- Expanded database schema to track chunk-level metadata
This commit is contained in:
Roy
2025-03-07 20:18:01 +00:00
parent 0ec61d6407
commit bbe139cfeb
2 changed files with 14 additions and 11 deletions

View File

@@ -38,16 +38,16 @@ class McpError(Exception):
DEFAULT_CONFIG = {
"server": {
"host": "localhost",
"port": 9621,
"model": "lightrag:latest",
"host": "host.docker.internal",
"port": 11434,
"model": "llama3.2:latest",
"timeout": 300,
"max_retries": 1,
"retry_delay": 1,
},
"test_cases": {
"basic": {"query": "唐僧有几个徒弟"},
"generate": {"query": "电视剧西游记导演是谁"},
"basic": {"query": "How many disciples did Tang Seng have?"},
"generate": {"query": "Who directed the TV series Journey to the West?"},
},
}
@@ -763,8 +763,8 @@ def parse_args() -> argparse.Namespace:
Configuration file (config.json):
{
"server": {
"host": "localhost", # Server address
"port": 9621, # Server port
"host": "host.docker.internal", # Server address
"port": 11434, # Server port
"model": "lightrag:latest" # Default model name
},
"test_cases": {