Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected ImportError: Reference to VectorStore Despite Not Importing It #87

Open
aniketjha-26 opened this issue Jan 9, 2025 · 0 comments
Labels
question Further information is requested

Comments

@aniketjha-26
Copy link

.I am encountering an ImportError related to VectorStore in ''pathway.xpacks.llm.vector_store'', even though my code does not attempt to import VectorStore but error is showing that I'm importing VectorStore. Below are the details:
This is the error:
Traceback (most recent call last):
File "/root/test1/program1.py", line 11, in
from pathway.xpacks.llm.vector_store import VectorStore
ImportError: cannot import name 'VectorStore' from 'pathway.xpacks.llm.vector_store' (/usr/local/lib/python3.10/dist-packages/pathway/xpacks/llm/vector_store.py)

My code:
import pathway as pw
import numpy as np
import sys

Update the system path to include the repository location

sys.path.append('/path/to/cloned/repository/python/pathway/xpacks/llm')
from pathway.xpacks.llm.vector_store import VectorStoreClient, VectorStoreServer

Please help me

@aniketjha-26 aniketjha-26 added the question Further information is requested label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant