Skip to content

Commit f35a5a8

Browse files
committed
Switch to generating flights at agent boot time
1 parent f8533e2 commit f35a5a8

File tree

7 files changed

+197
-221
lines changed

7 files changed

+197
-221
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@ This repository contains an example of a production-grade AI Agent that is integ
3232
```console
3333
$ hatch run create-vector-database
3434
```
35-
7. Generate flight schedule data:
36-
```console
37-
$ hatch run generate-flights
38-
```
39-
8. Install frontend dependencies:
35+
7. Install frontend dependencies:
4036
```console
4137
$ cd frontend
4238
$ npm install

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ create-demo-project = "python -m airline_agent.cleanlab_utils.create_new_demo_pr
3232
open-project = "python -m airline_agent.cleanlab_utils.open_project {args}"
3333
fetch-pages = "python -m airline_agent.data_preparation.fetch_pages {args}"
3434
create-vector-database = "python -m airline_agent.preprocessing.create_vector_database {args}"
35-
generate-flights = "python scripts/generate_flights.py {args}"
3635
backend-server = "python -m airline_agent.backend.app {args}"
3736

3837

src/airline_agent/backend/services/airline_chat.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,7 @@ def get_cleanlab_project() -> Project:
106106
kb_path=str(pathlib.Path(__file__).parents[4] / "data/kb.json"),
107107
vector_index_path=str(pathlib.Path(__file__).parents[4] / "data/vector-db"),
108108
)
109-
booking = BookingTools(
110-
flights_path=str(pathlib.Path(__file__).parents[4] / "data/flights.json"),
111-
)
109+
booking = BookingTools()
112110
project = get_cleanlab_project()
113111
agent = create_agent(kb, booking)
114112

src/airline_agent/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
DEMO_DATE = date(2025, 11, 5)
88
DEMO_DATETIME = datetime(2025, 11, 5, 14, 0, 0, tzinfo=ZoneInfo("America/Los_Angeles"))
99
FLIGHT_DATA_DATE = DEMO_DATE + timedelta(days=7)
10+
FLIGHT_DATA_NUM_DAYS = 8
1011

1112
OFFICIAL_DEMO_PROJECT_ID = "3aae1f96-2dda-492f-8c86-17d453d3c298" # to copy configuration from
1213
STAGING_DEMO_PROJECT_ID = "6de236e4-c6e7-456c-b248-872236010992"

src/airline_agent/data_generation/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)