llama_index
package? It seems to be able to import stuff from llama_cloud
like TextNode, but it has absolutely no idea what is exported from the llama_index package. Thanks so much for the help, I've spent a rediculous 3 hours on this issue today π€¦ββοΈ "python.analysis.autoImportCompletions": true,
pip install llama-index
Configure extraPaths in settings.json: You can help VSCode find your packages by adding their paths to the python.analysis.extraPaths setting: VSCode settings.json configuration { "python.analysis.extraPaths": [ "${workspaceFolder}/.venv/lib/python3.x/site-packages/llama_index/core", "${workspaceFolder}/.venv/lib/python3.x/site-packages/llama_index/llms/openai", ... ] }
{ "python.testing.pytestArgs": [ "tests" ], "python.analysis.autoImportCompletions": true, "python.defaultInterpreterPath": "./.venv", "python.testing.pytestEnabled": true, "python.analysis.typeCheckingMode": "basic", "python.analysis.extraPaths": [ "${workspaceFolder}/new-venv/lib/python3.11/site-packages/llama_index/core" ], "python.languageServer": "Pylance", }
extra_info
under the hood, both params set the same attributepoetry
and just point my Python interpreter to the results of virtual env executable poetry env info
:ο Ή οΌ ~/s/camp_researcher ο ο¦ main wip !1 ?4 β― poetry env info ξΌ camp-researcher-py3.12 Virtualenv Python: 3.12.5 Implementation: CPython Path: /Users/jason/Library/Caches/pypoetry/virtualenvs/myproject-YsZBHIU0-py3.12 Executable: /Users/jason/Library/Caches/pypoetry/virtualenvs/myproject-YsZBHIU0-py3.12/bin/python Valid: True
poetry add needed-package
and it instantly resolves.