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

ImportError: cannot import name 'Document' from 'llama_index.core' (unknown location) #14

Open
Huanuanx opened this issue Apr 15, 2024 · 0 comments

Comments

@Huanuanx
Copy link

Traceback (most recent call last):
File "/opt/lvhx/project/agent/MemGPT-AutoGEN-LLM/app.py", line 5, in
import memgpt.autogen.memgpt_agent as memgpt_autogen
File "/opt/miniconda3/envs/lhx_agent/lib/python3.10/site-packages/memgpt/autogen/memgpt_agent.py", line 8, in
from memgpt.agent import Agent as MemGPTAgent
File "/opt/miniconda3/envs/lhx_agent/lib/python3.10/site-packages/memgpt/agent.py", line 15, in
from memgpt.persistence_manager import LocalStateManager
File "/opt/miniconda3/envs/lhx_agent/lib/python3.10/site-packages/memgpt/persistence_manager.py", line 4, in
from memgpt.memory import (
File "/opt/miniconda3/envs/lhx_agent/lib/python3.10/site-packages/memgpt/memory.py", line 11, in
from memgpt.embeddings import embedding_model, query_embedding, parse_and_chunk_text
File "/opt/miniconda3/envs/lhx_agent/lib/python3.10/site-packages/memgpt/embeddings.py", line 14, in
from llama_index.core import Document as LlamaIndexDocument
ImportError: cannot import name 'Document' from 'llama_index.core' (unknown location)

Name: llama-index
Version: 0.10.29
Summary: Interface between LLMs and your data
Home-page: https://llamaindex.ai
Author: Jerry Liu
Author-email: [email protected]
License: MIT
Location: /opt/miniconda3/envs/lhx_agent/lib/python3.10/site-packages
Requires: llama-index-agent-openai, llama-index-cli, llama-index-core, llama-index-embeddings-openai, llama-index-indices-managed-llama-cloud, llama-index-legacy, llama-index-llms-openai, llama-index-multi-modal-llms-openai, llama-index-program-openai, llama-index-question-gen-openai, llama-index-readers-file, llama-index-readers-llama-parse
Required-by: pymemgpt

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

1 participant