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

Error on python program #37

Open
jamesyao54 opened this issue Mar 30, 2024 · 1 comment
Open

Error on python program #37

jamesyao54 opened this issue Mar 30, 2024 · 1 comment

Comments

@jamesyao54
Copy link

Traceback (most recent call last):
File "/Users/user/Code/server/app/services/intelligence/components/retriever.py", line 59, in
from context import download_embeddings
File "/Users/user/Code/server/.venv/lib/python3.10/site-packages/context.py", line 6, in
from utils.ai import retrieve
ModuleNotFoundError: No module named 'utils.ai'

@maxvonhippel
Copy link

I've reproduced the same error on Mac OS 14.5 (23F79).

from context import query

results = query("How do I set up Langchain?")
for result in results:
    print(f"{result['metadata']['text']}\n{result['metadata']['text']}")

Traceback (most recent call last):
File [ removed file path for privacy ...], line 1, in
from context import query
File "/Users/maxvonhippel/Library/Python/3.9/lib/python/site-packages/context.py", line 6, in
from utils.ai import retrieve
ModuleNotFoundError: No module named 'utils.ai'; 'utils' is not a package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants