Spaces:
Runtime error
Runtime error
Commit History
-
migrate to pinecone and show graph color
Aryan Jain411c555
-
fix: rename sql_query to sqlite_query for consistency in SQLQueryExtractor and update references in DataExtractorService and PydanticAgent
Aryan Jaincdcf836 -
fix: correct method signature for _model_schema_to_text; update OpenAI model name and fix parameter naming in PydanticAgent; enhance SQL query verification with logging and error handling
Aryan Jain71dcc32 -
feat: refactor PydanticAgent to accept user_input and message_history as parameters in run method; update DataExtractorService to match new signature
Aryan Jainf9fd577 -
feat: update SQL query execution to use text() for improved safety and consistency
Aryan Jain3bdece0 -
feat: enhance SQL query generation and validation; add detailed descriptions to Pydantic models and enforce SELECT-only rule in query verification
Aryan Jain53d3e55 -
feat: rename QueryExtractor to SQLQueryExtractor and update related imports; introduce SQL_QUERY_EXTRACTOR_PROMPT in PydanticAgent
Aryan Jain83e6c59
-
feat: Update DataExtractorController and DataExtractorService to use Optional for message_history; add __init__.py for prompts module; modify Pydantic models to use Optional for list fields; raise exceptions in PydanticAgent
Aryan Jain8e073b5 -
feat: Add Pydantic models for query extraction and implement PydanticAgent for SQL query verification
Aryan Jain- Updated pyproject.toml to include dependencies for pydantic-ai-slim and openai. - Created new Pydantic models in _pydantic_agent.py for handling messages, table details, join conditions, filter conditions, order conditions, and query extraction. - Implemented validation logic in QueryExtractor to ensure SQL queries are verified and marked as safe. - Introduced PydanticAgent class to interact with OpenAI API and verify SQL queries against the database. - Added utility functions for handling asynchronous operations and error management.5f22dc5