Refactor investor similarity search to utilize AI for improved query generation; adjust DataFrame parsing to skip initial rows for better data handling.

This commit is contained in:
bolade
2025-09-29 15:58:09 +01:00
parent 6caea96658
commit 17bc5acbc8
5 changed files with 34 additions and 57 deletions
+2 -2
View File
@@ -176,7 +176,7 @@ class InvestorProcessor:
async def parse_investors(self, df, save_to_db: bool = True):
"""Parse investors from DataFrame and optionally save to database"""
investors = []
df = df[20:]
db = None
if save_to_db:
db = get_db_session()
@@ -244,7 +244,7 @@ class InvestorProcessor:
async def parse_companies(self, df, save_to_db: bool = True):
"""Parse companies from DataFrame and optionally save to database"""
companies = []
df = df[20:]
db = None
if save_to_db:
db = get_db_session()