Find answers from the community

Updated last year

Hey guys

At a glance

The community member is unable to load the VectorStoreIndex and is getting an ImportError related to the llana_index.constants module. Other community members suggest reinstalling the llama-index package or checking if the issue is related to the incorrect package name. The community member later confirms that the issue is resolved.

Another community member is facing an issue with SSLCertVerificationError and ApiConnectionError when trying to create a VectorStoreIndex, GPTVectorStoreIndex, or SimpleVetorIndex. The suggested solution is that this issue is usually caused by using a VPN or related to the user's ISP.

Finally, a community member is receiving an error when trying to create a KnowledgeGraphIndex and is asking for help to fix it.

Useful resources
Hey guys

I'm unable to load VectorStoreIndex

Getting this error
ImportError: cannot import name 'DATA KEY' from 'Ilama_index.constants (C:\Users\2772727\venv\Lib\site-packages\llana_index\constants.py)

I saw constant.py file

It is

Set of constants."""

MAX CHUNK SIZE 3900 MAX CHUNK OVERLAP 200

NUM OUTPUTS 256

INDEX STRUCT KEY "index struct"

DOCSTORE KEY "docatore"

VECTOR STORE CONFIG_DICT KEY "vector_store"

TYPE KEY

type DATA KEY-data

Pls help me out
1
L
r
P
7 comments
Maybe reinstall llama-index? The import is definitely there πŸ€·β€β™‚οΈ
https://github.com/run-llama/llama_index/blob/41710721d23a35093963573128b18ccf20c5d757/llama_index/constants.py#L24
@Prince Kumar why is it llana_index and not llama_index? Not sure if this could be causing your issue
Thank you guys now working
Hey guys
While doing this
Index=VectorStoreIndex.from_documents(documents)

Pls help me out

Following error I'm getting
SSLCertVerificationError
ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certify verify failed: unable to get local issuer certificate( _ssl.c: 992)
ApiConnectionError: connection error.

I have tried other indexes like GPTVectorStoreIndex, SimpleVetorIndex getting same error here also
this is usually due to using a VPN (and if not using a VPN, it's releated your ISP most likely)
Thanks Logan will check it and let u know
I am receiving this error when i try to indexing with index = KnowledgeGraphIndex.from_documents(
documents,
max_triplets_per_chunk=2,
storage_context=storage_context,
)
how can i fix it
Attachment
image.png
Add a reply
Sign up and join the conversation on Discord