fleet-ai / context

A CLI tool & API over the top 1221 Python libraries.
https://fleet.so/context
MIT License
539 stars 43 forks source link

Error on python program #37

Open jamesyao54 opened 6 months ago

jamesyao54 commented 6 months ago

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 commented 3 months ago

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