- Upload a document
- Create vector embeddings from a file
- Create a chatbot app with the ability to display sources used to generate an answer
Prerequisites
This example has extra dependencies. You can install them with:The state of the union file is available
here
Conversational Document QA with LangChain
qa.py
Try it out
.txt
file to the UI and ask questions about it.
If you are using state_of_the_union.txt
you can ask questions like What did the president say about Ketanji Brown Jackson?
.
