Skip to content

Commit

Permalink
fix import for llama_index 0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
epinzur committed Feb 12, 2024
1 parent 8db1439 commit 595fda6
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@
from langchain_community.chat_message_histories import AstraDBChatMessageHistory
from langchain_community.vectorstores.astradb import AstraDB
from langchain_core.chat_history import BaseChatMessageHistory
from llama_index.vector_stores import AstraDBVectorStore

try:
from llama_index.vector_stores import AstraDBVectorStore
except ImportError:
# change made with llama_index 0.10.0
from llama_index.vector_stores.astra import AstraDBVectorStore

from e2e_tests.test_utils import get_required_env, random_string
from e2e_tests.test_utils.vector_store_handler import (
Expand Down

0 comments on commit 595fda6

Please sign in to comment.