Skip to content

isabeljohnson001/Document-Ask-GPT

Repository files navigation

Question Answering with LangChain and Chroma DB

This repository contains a Jupyter notebook demonstrating how to perform question answering over documents using LangChain and Chroma DB.For a demonstration of how to perform question answering over documents using Chroma and LangChain, refer to this notebook. For utilizing a persistent database with Chroma and LangChain, see this notebook.

Setup

  1. Install the required packages using
pip install langchain langchain-openai chromadb llama-index.
  1. Set Up Environment Variables:

To authenticate your API requests, you need to set up your environment variables for your OpenAI and Langchain API keys. Replace "API_KEY_HERE" with your actual API keys:

OPEN_AI_API_KEY = "API_KEY_HERE"
LANGCHAIN_API_KEY = "API_KEY_HERE"
  1. Ensure you have a text file (input.txt) with the documents you want to use for question answering.

Example Questions


About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published