langchain-chat is a powerful AI-driven Q&A system that leverages OpenAI's GPT-4 model to provide relevant and accurate answers to user queries. The system indexes documents from websites or PDF files using FAISS (Facebook AI Similarity Search) and offers a convenient interface for interacting with the data.
- Load and split documents from websites or PDF files
- Index documents using FAISS for efficient similarity search
- Utilize OpenAI's GPT-4 to generate human-like responses
- Remember previous conversations and provide context-aware answers
- Easy to set up and extend
- Clone the repository
- Create a virtual environment
python -m venv venv
- Activate the virtual environment
source venv/Scripts/activate
- Install the dependencies
pip install -r requirements.txt
- Copy the
.env.example
file to.env
and fill in the required valuescp .env.example .env
OPEN_AI_KEY = "sk-" WEBSITE_URLS="https://website1, https://website2"
- Run the application
python with_faiss.py