https://discord.gg/botpress logo
How chatbot can return images and/or text from my ...
# 🤝help
l
Hello, I am trying to create AI chatbot with all my data in PDF. Those PDF file are full of images and text. I inserted in vector database, and when I query them, it shows me only the text from PDF, not the corresponding images or figure. How to embed the images from PDF, insert them in vector data base and the query them together with text? I want the answer from chatbot to be both image and text . Thanks a lot!
@User it will be very helpful if anyone help me with this.
c
Hey there Ashik, for retrieving images you would need a different approach as all PDF content is extracted to text. Extracting images is actually really hard to do and an industry problem for which there are some (potential) work-arounds in Botpress: - you would need to manually extract the images and place them in a table with some labels (meta-data: chapter, page, subject etc.) . Than after you do your query search you can use an AI node to restructure your question and find the matching images. There are more advanced solutions out there that you can look into called "multi-modal RAG" applications but this requires extensive knowledge of Python to hook it up as your back-end.