Azure-Samples / llama-index-python

This sample shows how to quickly get started with LlamaIndex.ai on Azure🚀
MIT License
46 stars 31 forks source link

Error: Cannot find the Related documents when execute `poetry run generate` #12

Closed faynef closed 3 months ago

faynef commented 4 months ago

Describe the issue: Running poetry run generate reports an error: Poetry could not find a pyproject.toml. image

Repro Steps:

  1. azd init --template llama-index-python
  2. azd auth login
  3. Create a python virtual environment and install the python dependencies:
    
    cd backend
    python3 -m venv venv
    source venv/bin/activate
    poetry install```
  4. Install the frontend dependencies:
    
    cd ..
    cd frontend
    npm install```
  5. azd up
  6. azd env get-values > .env
  7. poetry run generate

Environment:

Suggestions: Refer to the dev container test steps in the readme. It is recommended to put poetry run generate before step 4.

Expected Behavior: poetry run generate runs successfully .

@marlenezw and @hemarina for notification.

marlenezw commented 3 months ago

This error was caused by moving into the frontend directory which doesn't have poetry in it. I've updated the Readme in the PR mentioned