Find answers from the community

Updated 5 months ago

Retriever

At a glance
the hi,
I am building a chatbot
if I use below code to get index,how do I set my retriever value?
Attachments
2023-07-07_11.34.24.png
2023-07-07_11.31.18.png
L
a
9 comments
The retriever is setup automatically when you do index.as_query_engine()
Or are you asking how to use a langchain retriever in llama index? That's not easily possible
yeah i want to use llama index to store the index and use langchain to read the index and then build a chatbot with memory history, so i cant use index.as_query_engine()( i think it's doenst remeber the previous conversation?), that 's not easily possible?
Yea that's not easily possible I think, it would take some hacking to get it to work lol
Usually you would make llama index a tool in a langchain agent
at least that's the easiest approach I think
If you need memory though, you could also use a llama index agent
Add a reply
Sign up and join the conversation on Discord