{"id":24401605,"url":"https://github.com/harsh-vardhhan/ai-agent-flight-scanner","last_synced_at":"2025-04-11T19:41:11.331Z","repository":{"id":272306806,"uuid":"911203586","full_name":"harsh-vardhhan/ai-agent-flight-scanner","owner":"harsh-vardhhan","description":"AI agent to search Google Flights data","archived":false,"fork":false,"pushed_at":"2025-02-19T17:45:14.000Z","size":760,"stargazers_count":46,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T15:34:55.621Z","etag":null,"topics":["agentic-ai","chromadb","deepseek-r1","langchain","llm","rag","sqlite"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/harsh-vardhhan.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-02T13:28:29.000Z","updated_at":"2025-03-22T00:19:39.000Z","dependencies_parsed_at":"2025-02-02T14:25:05.894Z","dependency_job_id":"1640d310-0a9d-45fc-9137-436ef357949a","html_url":"https://github.com/harsh-vardhhan/ai-agent-flight-scanner","commit_stats":null,"previous_names":["harsh-vardhhan/query-google-flights","harsh-vardhhan/ai-agent-flight-scanner"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harsh-vardhhan%2Fai-agent-flight-scanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harsh-vardhhan%2Fai-agent-flight-scanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harsh-vardhhan%2Fai-agent-flight-scanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harsh-vardhhan%2Fai-agent-flight-scanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harsh-vardhhan","download_url":"https://codeload.github.com/harsh-vardhhan/ai-agent-flight-scanner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248468328,"owners_count":21108793,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agentic-ai","chromadb","deepseek-r1","langchain","llm","rag","sqlite"],"created_at":"2025-01-20T00:32:21.626Z","updated_at":"2025-04-11T19:41:11.322Z","avatar_url":"https://github.com/harsh-vardhhan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RAG on Flight Data\n\n![demo](https://github.com/user-attachments/assets/9a2a8256-adf2-4841-96e6-3c37981b70ab)\n\n## Frontend Repo\n\n[https://github.com/harsh-vardhhan/ai-agent-flight-scanner-frontend](https://github.com/harsh-vardhhan/ai-agent-flight-scanner-frontend)\n\n## Technical spec\n\n| Spec                                     |           |\n|----------------------------------------- |-----------|\n| Platform to run large LLM                | Groq      |\n| Platform to run small LLM                | Ollama    |\n| LLM for SQL                              | deepseek-r1-distill-llama-70b |\n| LLM for Vector Database                  | Llama 3.2:3B |\n| AI agent framework                       | LangChain |\n| SQL Database                             | SQLite    |\n| Vector Database                          | Chroma    |\n| REST framework                           | FastAPI   |\n\n## Application architecture\n\n\u003cimg width=\"640\" alt=\"application_architecture\" src=\"https://github.com/user-attachments/assets/07ec6397-ac72-4be1-a19f-ba6809ce57da\" /\u003e\n\n\n## Create `.env` file and set environment variables \n\n```python\nGROQ_API_KEY=your_groq_api_key_here\nOPENAI_API_KEY=your_openai_api_key_here\nDEEPSEEK_API_KEY=your_deepseek_api_key_here\n```\n\n## Running application\n\n```\npython3 app/main.py\n```\n\n## Prompt testing\n\n### Basic Price Queries (India to Vietnam)\n\n| Prompt                                                                                       |\n|---------------------------------------------------------------------------------------------|\n| What is the cheapest flight from New Delhi to Hanoi?                                        |\n| Find the lowest price flight from Mumbai to Ho Chi Minh City                                |\n| Show me the cheapest flight from New Delhi to Da Nang                                       |\n| What is the lowest fare from Mumbai to Phu Quoc?                                            |\n\n### Basic Price Queries (Vietnam to India)\n\n| Prompt                                                                                       |\n|---------------------------------------------------------------------------------------------|\n| What is the cheapest flight from Hanoi to New Delhi?                                        |\n| Find the lowest price flight from Ho Chi Minh City to Mumbai                                |\n| Show me the cheapest flight from Da Nang to New Delhi                                       |\n| What is the lowest fare from Phu Quoc to Mumbai?                                            |\n\n### Price Range Queries (Generic)\n\n| Prompt                                                                                       |\n|---------------------------------------------------------------------------------------------|\n| Show me flights from New Delhi to Hanoi ordered by price                                    |\n| List all flights from Ho Chi Minh City to Mumbai from lowest to highest price              |\n| What are the available flights from Mumbai to Da Nang sorted by fare?                      |\n| Find flights from Phu Quoc to New Delhi ordered by cost                                    |\n\n### Flight Type Specific\n\n| Prompt                                                                                       |\n|---------------------------------------------------------------------------------------------|\n| Show me all direct flights from New Delhi to Ho Chi Minh City                              |\n| List connecting flights from Hanoi to Mumbai                                               |\n| What types of flights are available from New Delhi to Da Nang?                             |\n| Find direct flights from Phu Quoc to Mumbai                                               |\n\n### Comparative Queries\n\n| Prompt                                                                                       |\n|---------------------------------------------------------------------------------------------|\n| Compare prices of flights from New Delhi to all Vietnamese cities                          |\n| Show me the cheapest routes from Mumbai to Vietnam                                         |\n| List all flight options from Hanoi to Indian cities                                        |\n| Compare fares from Ho Chi Minh City to Indian destinations                                 |\n\n### Round Trip Queries\n\n| Prompt                                                                                       |\n|---------------------------------------------------------------------------------------------|\n| Find the cheapest round trip from New Delhi to Hanoi                                       |\n| Show me round trip options between Mumbai and Ho Chi Minh City                             |\n| What are the most affordable round trip flights from New Delhi to Da Nang?                |\n| List round trip flights between Mumbai and Phu Quoc                                        |\n| List cheapest round trip flights between Mumbai and Phu Quoc                               |\n| Find the cheapest return flight between New Delhi and Hanoi with at least 7 days gap       |\n| Show exactly one cheapest flight from New Delhi to Hanoi and exactly one from Hanoi to New Delhi, which should be at least 7 days later |\n\n### Statistical Analysis\n\n| Prompt                                                                                       |\n|---------------------------------------------------------------------------------------------|\n| What's the average price of flights from New Delhi to Vietnamese cities?                   |\n| Compare fares between all India-Vietnam routes                                             |\n| Show me the price distribution of flights from Vietnamese cities to Mumbai                 |\n| Which Vietnam-India route has the most varying fares?                                      |\n\n### Combination Queries\n\n| Prompt                                                                                       |\n|---------------------------------------------------------------------------------------------|\n| Find the cheapest direct flight from New Delhi to any Vietnamese city                      |\n| List the most affordable flights from Vietnamese cities to Mumbai                          |\n| Show me the top 5 best-value routes between India and Vietnam                              |\n| What are the most economical flights from Hanoi to Indian cities?                          |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharsh-vardhhan%2Fai-agent-flight-scanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharsh-vardhhan%2Fai-agent-flight-scanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharsh-vardhhan%2Fai-agent-flight-scanner/lists"}