This project is a question-answering system that uses a pipeline of components to process a user's query, search for relevant documents, and generate a response. Powered by Haystack 2.0 and Hugging Face Transformers.
The component that searches on the web uses the googlesearch
library, which has will return 429 errors if used too much in a short period of time (related issue: here)
- Clone this repository.
- Install the required Python packages by running
pip install -r requirements.txt
. - Set your
OPENAI_API_KEY
environment variable to your OpenAI API key.
Run the main script with a query as an argument:
python main.py "your query here"