fix(transcription): [2f388f42] finalize and fix AI insights feature
This commit resolves all outstanding issues with the AI Insights feature.
- Corrects the transcript formatting logic in to properly handle the database JSON structure, ensuring the AI receives the correct context.
- Fixes the Gemini API client by using the correct model name ('gemini-2.0-flash') and the proper client initialization.
- Updates to securely pass the API key as an environment variable to the container.
- Cleans up the codebase by removing temporary debugging endpoints.
- Adds script for programmatic updates.
- Updates documentation with troubleshooting insights from the implementation process.
This commit is contained in:
21
check_tables.py
Normal file
21
check_tables.py
Normal file
@@ -0,0 +1,21 @@
|
||||
import sqlite3
|
||||
|
||||
db_path = "/app/company-explorer/companies_v3_fixed_2.db"
|
||||
conn = sqlite3.connect(db_path)
|
||||
cursor = conn.cursor()
|
||||
|
||||
cursor.execute("SELECT name FROM sqlite_master WHERE type='table';")
|
||||
tables = cursor.fetchall()
|
||||
print(f"Tables in {db_path}: {tables}")
|
||||
|
||||
# Check content of 'signals' if it exists
|
||||
if ('signals',) in tables:
|
||||
print("\nChecking 'signals' table for Wolfra (id=12)...")
|
||||
cursor.execute("SELECT * FROM signals WHERE account_id=12")
|
||||
columns = [desc[0] for desc in cursor.description]
|
||||
rows = cursor.fetchall()
|
||||
for row in rows:
|
||||
print(dict(zip(columns, row)))
|
||||
|
||||
conn.close()
|
||||
|
||||
Reference in New Issue
Block a user