/vacation_plan_llamaindex

Combining text-to-SQL structured analysis and semantic search for a vacation plan

Primary LanguagePythonApache License 2.0Apache-2.0

vacation_plan_llamaindex

We explore LlamaIndex’s SQLAutoVectorQueryEngine in this repo. We introduce a national park travel plan use case, where we need to do structured analysis through SQL database, semantic search through three YouTube videos, and the combination of queries over structured and unstructured data.

Please refer to my Medium article Querying Both Structured and Unstructured Data with LlamaIndex and OpenAI for details.

Application Setup

python -m venv venv
.\venv\Scripts\activate
pip install -r requirements.txt

Add .env file at the project root and replace placeholder with your OpenAI API key:

OPENAI_API_KEY=<YOUR-API-KEY>

Run the app by kicking off this command:

python .\national-parks.py