Metadata-Version: 2.4
Name: curie-backend
Version: 0.2.5
Summary: Text2SQL Assistant Backend
License: MIT License
        
        Copyright (c) 2026 Curie contributors
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of the original Curie backend software and associated documentation files
        (the "Software"), to deal in the Software without restriction, including
        without limitation the rights to use, copy, modify, merge, publish,
        distribute, sublicense, and/or sell copies of the Software, and to permit
        persons to whom the Software is furnished to do so, subject to the following
        conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
        This license covers only original Curie backend code distributed in the
        curie-backend package. It does not cover the Qwen model or adapter, the Spider
        dataset, or other third-party components, which remain under their respective
        licenses.
        
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: extension/backend/LICENSE
License-File: extension/backend/THIRD_PARTY_NOTICES.md
License-File: ml/models/qwen-2.5-3b-it-spider-lora-second-training-run/QWEN_RESEARCH_LICENSE.txt
License-File: ml/models/qwen-2.5-3b-it-spider-lora-second-training-run/NOTICE
License-File: ml/models/qwen-2.5-3b-it-spider-lora-second-training-run/ADAPTER_LICENSING.md
License-File: ml/models/QWEN_APACHE_2_LICENSE.txt
License-File: ml/models/qwen2.5-0.5b-instruct__spider__schema-strict__1epoch-bs4/ADAPTER_LICENSING.md
Requires-Dist: fastapi[standard]>=0.110.0
Requires-Dist: uvicorn>=0.28.0
Requires-Dist: torch>=2.1.0
Requires-Dist: transformers>=4.38.0
Requires-Dist: peft>=0.19.1
Requires-Dist: accelerate>=0.27.0
Requires-Dist: SQLAlchemy>=2.0.0
Requires-Dist: psycopg[binary]>=3.1.0
Requires-Dist: huggingface-hub>=0.21.0
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: sqlparse>=0.5.0
Dynamic: license-file

# curie-backend

Text2SQL Assistant Backend. This package provides the model inference and database connectivity endpoints for the Curie Text2SQL VS Code extension.

The package includes two selectable Spider fine-tuned Qwen2.5 adapters:

- Qwen2.5-3B-Instruct (default)
- Qwen2.5-0.5B-Instruct, schema-strict

The bundled adapters use about 95 MB of disk space. Their public Qwen base
models are downloaded separately on first use and cached by Hugging Face.
