Find answers from the community

Updated 2 months ago

Retrieving Pdf Page Images Using ChatEngine

At a glance
Hello everyone,

I am using index.as_chat_engine() with OAI models. I use TextNode of PDF page texts with id_ attributes that point to pdf file pages. When user queries something I want this ChatEngine to perform retrieval on embedding of that textual page but when this engine sends retrieved nodes to the model I want it to send them as images of these pdf pages.

Is it somehow possible to alter/extend this ChatEngine behaviour so that it works as descirbed?
L
2 comments
You might need to make your own chat engine using the llm and retriever directly
This is a fun use case for workflows, but you can totally do it without too
Add a reply
Sign up and join the conversation on Discord