Why this change is needed: Prevent potential errors when embedding_func does not have model_name set, which could cause table naming issues in PostgreSQL. How it solves it: - Check if model_suffix is not empty before appending to table name - Fall back to base table name with a warning if model_suffix is unavailable - Log clear warning message to alert users about missing model isolation Impact: - Prevents crashes when model_name is not configured - Provides clear feedback to users about configuration issues - Maintains backward compatibility with configs that don't set model_name Testing: Existing PostgreSQL tests validate the happy path. This adds defensive handling for edge cases. |
||
|---|---|---|
| .. | ||
| api | ||
| evaluation | ||
| kg | ||
| llm | ||
| tools | ||
| __init__.py | ||
| base.py | ||
| constants.py | ||
| exceptions.py | ||
| lightrag.py | ||
| namespace.py | ||
| operate.py | ||
| prompt.py | ||
| rerank.py | ||
| types.py | ||
| utils.py | ||
| utils_graph.py | ||