Spaces:
Runtime error
Runtime error
Commit History
-
migrate to pinecone and show graph color
Aryan Jain411c555
-
add openai_api_key
Aryan Jainb48254e
-
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 DataExtractorService with table model mapping and schema extraction; integrate PydanticAgent and ChromaClient for data processing
Aryan Jain12ed030 -
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 .env.example with additional configuration variables; add text_splitter method to ChromaClient for text processing
Aryan Jain2c15d8e
-
feat: add ChromaClient for managing embeddings with ChromaDB
Aryan Jain- Updated pyproject.toml to include chromadb as a dependency. - Implemented ChromaClient class for handling text embeddings and interactions with ChromaDB. - Added methods for upserting texts and querying embeddings. - Integrated OpenAI's embedding model for generating text embeddings.e9024b0 -
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 -
feat: Initialize FastAPI project with database configuration and CRUD structure
Aryan Jain- Added pyproject.toml for project metadata and dependencies. - Created main application file (app.py) with FastAPI setup and CORS middleware. - Implemented database configuration using SQLAlchemy with async support. - Established base controller, service, repository, and model classes for CRUD operations. - Set up Pydantic schemas for data validation. - Included health check endpoint in the FastAPI application. - Organized project structure with separate directories for entities, controllers, and services.047d92b