banko-ai-assistant 1.0.10__py3-none-any.whl → 1.0.11__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -263,11 +263,11 @@ class EnhancedExpenseGenerator:
263
263
 
264
264
  while retry_count < max_retries:
265
265
  try:
266
- with self.engine.connect() as conn:
266
+ with self.engine.begin() as conn:
267
267
  # Use pandas to insert the batch
268
268
  df = pd.DataFrame(batch)
269
269
  df.to_sql('expenses', conn, if_exists='append', index=False, method='multi')
270
- conn.commit()
270
+ # Transaction is automatically committed when exiting the context
271
271
  total_inserted += len(batch)
272
272
  batch_num = i//batch_size + 1
273
273
  print(f"✅ Batch {batch_num}/{total_batches}: {len(batch)} records inserted (Total: {total_inserted})")
@@ -311,9 +311,9 @@ class EnhancedExpenseGenerator:
311
311
 
312
312
  while retry_count < max_retries:
313
313
  try:
314
- with self.engine.connect() as conn:
314
+ with self.engine.begin() as conn:
315
315
  conn.execute(text("DELETE FROM expenses"))
316
- conn.commit()
316
+ # Transaction is automatically committed when exiting the context
317
317
  return True
318
318
 
319
319
  except OperationalError as e:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: banko-ai-assistant
3
- Version: 1.0.10
3
+ Version: 1.0.11
4
4
  Summary: AI-powered expense analysis and RAG system with CockroachDB vector search and multi-provider AI support
5
5
  Author-email: Virag Tripathi <virag.tripathi@gmail.com>
6
6
  License-Expression: MIT
@@ -151,14 +151,14 @@ banko_ai/utils/database.py,sha256=sJYAFTApkWReEJuMbbBDiz7XfgiiEd6lPSSyF6BQDpk,77
151
151
  banko_ai/utils/migration.py,sha256=j1lYUVZyYMcMvxZUOFymoK19QTPqkDZFXD-iysVCnQo,4764
152
152
  banko_ai/vector_search/__init__.py,sha256=vYksnkUU4FA8XBNzYZIH4FoGjXCx9oIbrDeapSzrNuE,621
153
153
  banko_ai/vector_search/enrichment.py,sha256=sRnFLNG9WGfq8j44T7krxHI-Lc2RSH68mt0IT0GTHBA,10203
154
- banko_ai/vector_search/generator.py,sha256=vEM-t6FYxcbOlpPTZ3t0oZFI9-4Hkto7YsRq81peT5M,16812
154
+ banko_ai/vector_search/generator.py,sha256=BAs26Uwt-8VP9xPsTdooxznLnr674uX_jr41_oKZKL8,16912
155
155
  banko_ai/vector_search/search.py,sha256=k3wo3zFJH9o-kBc-vAS-bdmM3LGX2vIk3u4cRA5QPXo,16915
156
156
  banko_ai/web/__init__.py,sha256=hjWVVxYpIZhOAN1qBf4xTd36a5AUHM03Q8BF8pykhJQ,363
157
157
  banko_ai/web/app.py,sha256=9xBe6RsyEUQvpDhsRckJ4pzk5x2RZWEhVs8DiJg4zqs,27675
158
158
  banko_ai/web/auth.py,sha256=js6qIixSFHyLbETDm8GNLCPrDkCDcaQZPFOrqtZP1uw,2125
159
- banko_ai_assistant-1.0.10.dist-info/licenses/LICENSE,sha256=skG0LkywIClj8fgSIXiG6o9vUDJ678BKBObIyJ19OMw,1075
160
- banko_ai_assistant-1.0.10.dist-info/METADATA,sha256=Ugkk7LSgJQLwWCadl80MttT6tI4pnAswJGmmmTzNnUE,13244
161
- banko_ai_assistant-1.0.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
162
- banko_ai_assistant-1.0.10.dist-info/entry_points.txt,sha256=IxPjBjMvbpCp-ikCA43bOSbYboTGPX4HYcZlvu2_vcA,47
163
- banko_ai_assistant-1.0.10.dist-info/top_level.txt,sha256=xNMa9Z67UssefOQ2ubFObtqUYIfYmCIclfz0xdo5OPE,9
164
- banko_ai_assistant-1.0.10.dist-info/RECORD,,
159
+ banko_ai_assistant-1.0.11.dist-info/licenses/LICENSE,sha256=skG0LkywIClj8fgSIXiG6o9vUDJ678BKBObIyJ19OMw,1075
160
+ banko_ai_assistant-1.0.11.dist-info/METADATA,sha256=FSL0Rqnj0OMpI_pM6mxE0VReiQblRa3tT5AZ-1QpLQA,13244
161
+ banko_ai_assistant-1.0.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
162
+ banko_ai_assistant-1.0.11.dist-info/entry_points.txt,sha256=IxPjBjMvbpCp-ikCA43bOSbYboTGPX4HYcZlvu2_vcA,47
163
+ banko_ai_assistant-1.0.11.dist-info/top_level.txt,sha256=xNMa9Z67UssefOQ2ubFObtqUYIfYmCIclfz0xdo5OPE,9
164
+ banko_ai_assistant-1.0.11.dist-info/RECORD,,