diff --git a/libs/chatchat-server/chatchat/server/file_rag/document_loaders/FilteredCSVloader.py b/libs/chatchat-server/chatchat/server/file_rag/document_loaders/FilteredCSVloader.py index c1cc6b6bd7..0340619e5f 100644 --- a/libs/chatchat-server/chatchat/server/file_rag/document_loaders/FilteredCSVloader.py +++ b/libs/chatchat-server/chatchat/server/file_rag/document_loaders/FilteredCSVloader.py @@ -66,7 +66,7 @@ def __read_file(self, csvfile: TextIOWrapper) -> List[Document]: content.append(f"{col}:{str(row[col])}") else: raise ValueError( - f"Column '{self.columns_to_read[0]}' not found in CSV file." + f"Column '{col}' not found in CSV file." ) content = "\n".join(content) # Extract the source if available