This project provides a powerful chatbot that allows users to interact with their PDF documents by asking questions and receiving accurate answers. Additionally, it can generate relevant questions from the content of the PDFs. This chatbot can be easily integrated into Python-based frameworks like Flask.
robotiXe.1.mp4
- Interactive Q&A: Chat with your documents
- Automatic Question Generation: Create quizzes.
- Smart Context Retrieval: Get accurate answers
- Easy Integration: Python frameworks like Flask
- Prompt Engineering: Prompt to guide the AI.
- LLM Integration: Leverage OpenAI's GPT models.
- Context Chunking: Efficiently process.
- Embeddings: Vector representations
- Semantic Search: Relevant context
- Conversational Memory: Chat session
- Focused Responses: Strictly based on document content
Let's start talking about what we expect from these conversation bots. We don't want them to give non-sense, unrelated answers. To avoid that we can either use prompts or conversation chains. In this case, we will be using chains.
- I gave this text which was in the document.
- This doesnt entirely proves that only answers from the document so I had to be sure and I asked one more question.
- Overall, I'm convinced that this set-up only answers from the document.
- Whenever I ask non-sense question. It says "I don't know" which is what we expect.
git clone https://github.com/AtakanG7/robotiXe.git
Create virtual envirement (required!) Trust me :)
python -m venv your_env_name
Now, the envirement is supposed to be added to your directory. You need to activate it.
.your_env_name\Scripts\activate
Congratulations, you are half way there. Now install the dependencies.
pip install -r requirements.txt
This will take some time. After all things set up, you need to run the project
streamlit run main.py
- langchain
- openai
- PyPDF2
- streamlit
- InstructorEmbedding
- sentence_transformers
- faiss-cpu
- If you have any questions you can e-mail me [email protected] 😊👋
- Good Luck!