|
|
@@ -24,11 +24,7 @@ This project provides a FastAPI-based backend for extracting structured data fro
|
|
|
|
|
|
3. **Run the Server**:
|
|
|
```bash
|
|
|
- python main.py
|
|
|
- ```
|
|
|
- Or using uvicorn:
|
|
|
- ```bash
|
|
|
- uvicorn main:app --reload
|
|
|
+ uvicorn src.main:app --reload
|
|
|
```
|
|
|
|
|
|
## API Endpoints
|
|
|
@@ -49,9 +45,10 @@ Returns a structured JSON matching the `ExtractionResponse` schema.
|
|
|
|
|
|
## Project Structure
|
|
|
|
|
|
-- `main.py`: Entry point and API endpoints.
|
|
|
-- `schemas.py`: Pydantic models for data validation and structured output.
|
|
|
-- `services/`:
|
|
|
- - `openai_service.py`: Logic for interacting with OpenAI API.
|
|
|
+- `src/`
|
|
|
+ - `main.py`: Entry point and API endpoints.
|
|
|
+ - `schemas.py`: Pydantic models for data validation and structured output.
|
|
|
+ - `services/`:
|
|
|
+ - `openai_service.py`: Logic for interacting with OpenAI API.
|
|
|
- `requirements.txt`: Python dependencies.
|
|
|
- `.env`: Environment variables (not tracked by git).
|