Find answers from the community

Updated last year

i'm having this error in qdrant after

At a glance

The community member is experiencing an error with Qdrant after upgrading to the latest version of llama_index. They have set enable_hybrid=True but are still encountering issues at query time. The community members discuss the problem, and it is suggested that the issue may be due to mixing legacy and new imports. The solution is to update the imports to use the latest version consistently, without any legacy imports. Additionally, the community member encounters a ValueError related to the LLM setup, which they are able to resolve by upgrading their bedrock abstraction to the latest version.

i'm having this error in qdrant after upgrading to the latest version, anyone having the same issue with qdrant ? happening at query time
Attachment
Screenshot_2024-02-16_at_3.10.57_PM.png
L
l
21 comments
did you set QdrantVectorStore(...., enable_hybrid=True)
Hey @Logan M , oh yeah this was a fully working code and i pushed it to my cloud as well for business testing. i upgraded llama_index and i'm seeing two errors with the exact same code (upgrading the imports to the latest) and the config error at query time
Attachment
Screenshot_2024-02-16_at_3.47.57_PM.png
to answer your question, i did set enable_hybrid=True as well
Attachment
Screenshot_2024-02-16_at_3.49.40_PM.png
the assertion error is new
Attachment
Screenshot_2024-02-16_at_3.50.16_PM.png
Ah, you can't mix legacy imports with new imports
need 100% legacy or 100% new
in your case, update that first import

from llama_index.legacy import StorageContext, VectorStoreIndex
This is very similar to how pydantic did their migration with v1 imports vs v2 (if you had to deal with that haha)
ouch, thx @Logan M , in the docs, i see the imports as "from llama_index.vector_stores.qdrant import QdrantVectorStore" but i dont see an import as llama_index.vector_store any reason why that would be ?
my libs screenshot
Attachment
Screenshot_2024-02-16_at_4.07.37_PM.png
got it. now i have install all the integrations as pip
sorry abt that bud. whewww lots of re-learning
yea the main hurdle is every integration is a pip package. But that package uses namespacing, so the imports are similar (i.e. all under llama-index)

But namespacing means you cant have shortcut imports
A small price to pay for a more manageable repo.

Now we can have actual tests for integrations, as well as version them independently from the actual core package
right, makes total sense, it helps long term. 🫑
I know its a huge change, thanks for sticking by πŸ™
no sir, thx for making this happen, its a small price we have to pay to get an awesome product.
@Logan M sorry to bother you again, i'm at the last step, the code works great as retriever but its failing for the query_engine, any help on this pls
Attachment
Screenshot_2024-02-16_at_4.45.31_PM.png
ValueError: Cannot use llm_chat_callback on an instance without a callback_manager attribute.
How did you setup your LLM?
thank you very much for the tip, found out the issue, in my bedrock abstraction i'm using legacy imports again, have to upgrade it to the latest. I think that should fix it. Appreciate the help on this.
Add a reply
Sign up and join the conversation on Discord