Giter Club home page Giter Club logo

Comments (5)

dosubot avatar dosubot commented on September 17, 2024 2

The error you're encountering, AttributeError: 'NoneType' object has no attribute 'search', suggests that the retriever object is None. This typically occurs if the QueryFusionRetriever fails to properly instantiate, which might be due to issues with the initialization of vector_retriever, bm25_retriever, or the parameters passed to QueryFusionRetriever.

To address this, ensure that both vector_retriever and bm25_retriever are correctly initialized and are instances of BaseRetriever or its subclasses. Verify the parameters you're passing to QueryFusionRetriever match what is expected by the library, focusing on required and optional parameters such as retrievers, mode, similarity_top_k, num_queries, and others as applicable.

If after checking these aspects the issue persists, it would be helpful to have more details on how vector_retriever and bm25_retriever are being initialized. This additional context can provide clues to the root cause of the problem.

Details

Sources


About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

from llama_index.

logan-markewich avatar logan-markewich commented on September 17, 2024

You are using qdrant I'm guessing? Provide the async client

QdrantVectorStore(..., client=QdrantClient(...), aclient=AsyncQdrantClient(...))

Note that if using :memory: mode, these clients do not share data in qdrant

from llama_index.

Amiya-Lahiri-AI avatar Amiya-Lahiri-AI commented on September 17, 2024

Hi @logan-markewich
thanks for your reply. I am indeed using QdrantVectorStore

import qdrant_client
from llama_index.vector_stores.qdrant import QdrantVectorStore
client = qdrant_client.QdrantClient(
url= "xxx",
api_key= "xxxxx",
)
asynclient = qdrant_client.AsyncQdrantClient(
url="xxxx",
api_key="xxxx"
)
vector_store = QdrantVectorStore(client=client, collection_name="xxxxxx", aclient=asynclient)

however can you please tell me why I was getting the error in the first place.
also after integrating your solution I am getting this warning message
WARNING:llama_index.vector_stores.qdrant.base:Both client and aclient are provided. If using :memory: mode, the data between clients is not synced.
can't I just use QdrantClient without using the AsyncQdrantClient?

from llama_index.

logan-markewich avatar logan-markewich commented on September 17, 2024

That warning is fine

Qdrant supports both async and sync operations. Some features use async, and need the async client

from llama_index.

Amiya-Lahiri-AI avatar Amiya-Lahiri-AI commented on September 17, 2024

ok thank you @logan-markewich

from llama_index.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.