Find answers from the community

Updated 2 years ago

hey Logan M 8260 can the OR mechanism in

At a glance
hey @Logan M , can the OR mechanism in CustomRetriever be considered as a Langchain agent where the tool selected is always one?
S
L
4 comments
please correct me if I am wong,
CutomeRetriever is for only for selecting particular nodes.
from what I see in CustomRetriever (https://github.com/jerryjliu/llama_index/blob/main/examples/query/CustomRetrievers.ipynb)
in CustomRetriever we need to implement
init method and _retrieve method
the _retrieve returns back the node id overwhich the query is to be done.
but the mechanism to decide which nodes to select is not intelligenly selected. it is rule based as far as I see. so how can it replace langchain agents. πŸ€”
cc: @jerryjliu0
@Siddhant Saurabh the _retrieve method returns nodes, not node ids.

In the example, it combines a keyword index and a vector index into a hybrid search.

I'm not sure what you mean by replacing an agent though. But you can do anything you want in the retrieve function as long as you return nodes πŸ‘
hey, we were working on a langchain implementation
where the agents would select b/w Pinecone index query and a direct call.
can CustomRetriever help in solving the above, without use of Langchain.
Add a reply
Sign up and join the conversation on Discord