/askdoc

In this tutorial we will see 💡 How to get answers from documents using Chroma vector database, PaLM LLM by Google, and a question answering chain from LangChain. And finally, use Streamlit to develop and host the web application. You will need to use your google_api_key (you can get one from Google).

Primary LanguagePython

🦜🔗 LangChain - Ask the Doc

Build a Document Question Answering app using LangChain and Streamlit.

Get an OpenAI API key

You can get your own OpenAI API key by following the following instructions:

  1. Go to https://platform.openai.com/account/api-keys.
  2. Click on the + Create new secret key button.
  3. Next, enter an identifier name (optional) and click on the Create secret key button.

Try out the app

Once the app is loaded, go ahead and enter your OpenAI API key and type a question in the text box and wait for a generated response.