WeKnowRAG is an AI-powered question-answering system that combines web search capabilities with advanced language models. It uses the Perplexity API for web searches and OpenAI's GPT model for generating answers.
- Web search integration using Perplexity API
- Answer generation using OpenAI's GPT model
- Custom evaluation metric for answer quality
- Token usage tracking
- Interactive question-answering interface
- Clone the repository
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables:
OPENAI_API_KEY
: Your OpenAI API keyPERPLEXITY_API_KEY
: Your Perplexity API key
Run the main script:
python main.py
Follow the prompts to enter your questions and receive AI-generated answers.
This project is for educational purposes. Ensure you comply with the terms of service for all APIs used.