Hey all, i'm trying to use llama_index from main since it contains a fix for a breaking llama-cpp change, but I can't seem to figure out how.
I set up poetry to pull from the llama_index github, but when I try importing
ServiceContext
I'm met with this error
>>> from llama_index import ServiceContext
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/benbot/.cache/pypoetry/virtualenvs/llamaindex-learn-LAh3hCYO-py3.11/lib/python3.11/site-packages/llama_index/__init__.py", line 41, in <module>
from llama_index.indices.struct_store.sql import (
File "/home/benbot/.cache/pypoetry/virtualenvs/llamaindex-learn-LAh3hCYO-py3.11/lib/python3.11/site-packages/llama_index/indices/struct_store/__init__.py", line 5, in <module>
from llama_index.indices.struct_store.sql import (
File "/home/benbot/.cache/pypoetry/virtualenvs/llamaindex-learn-LAh3hCYO-py3.11/lib/python3.11/site-packages/llama_index/indices/struct_store/sql.py", line 9, in <module>
from llama_index.indices.common.struct_store.sql import SQLStructDatapointExtractor
File "/home/benbot/.cache/pypoetry/virtualenvs/llamaindex-learn-LAh3hCYO-py3.11/lib/python3.11/site-packages/llama_index/indices/common/struct_store/sql.py", line 8, in <module>
from llama_index.indices.common.struct_store.base import (
File "/home/benbot/.cache/pypoetry/virtualenvs/llamaindex-learn-LAh3hCYO-py3.11/lib/python3.11/site-packages/llama_index/indices/common/struct_store/base.py", line 10, in <module>
from llama_index.utilities.sql_wrapper import SQLDatabase
ModuleNotFoundError: No module named 'llama_index.utilities'
I'm not really an expert in the python packaging system and I can't find any instructions for running llama_index from main, so if anyone knows how it'd be a big help π