This Q&A bot will allow you to query your own documentation easily using questions. We'll also demonstrate the use of LangChain and LanceDB using the OpenAI API. In this example we'll use Numpy 1.26 documentation, but, this could be replaced for your own docs as well. Colab walkthrough -
Run the script
OPENAI_API_KEY=... python main.py --query "what is a vectordb?"
default query = What are the major differences in pandas 2.0?
Argument | Default Value | Description |
---|---|---|
query | "What are the major ..." | query to search |
openai-key | OpenAI API Key, not required if OPENAI_API_KEY env var is set |
Run the script
OPENAI_API_KEY=... node index.js