This project allows you to chat with multiple PDF documents using Streamlit and various natural language processing libraries.
-
Clone the repository:
git clone https://github.com/yourusername/your-repository.git cd your-repository -
Install dependencies:
pip install -r requirements.txt
-
Run the application:
streamlit run application.py
-
Upload your PDF documents in the sidebar.
-
Enter your question in the text input box.
-
Click the "Process" button to generate a response.
- Chat with Multiple PDFs: Engage in a conversation about the contents of uploaded PDF documents.
- Natural Language Processing: Utilizes advanced NLP models to understand and respond to user queries.
- Interactive Interface: Built with Streamlit, providing a user-friendly interface for interaction.
- Document Processing: Automatically processes uploaded PDF documents, extracting text and creating a searchable database.
-
Document Processing: Upon uploading PDF documents, the application automatically extracts text from them using the Langchain Community library's
PyPDFDirectoryLoaderandRecursiveCharacterTextSplitter. -
Vectorization: The extracted text is chunked and converted into vectors using the Hugging Face
transformerslibrary, specifically theHuggingFaceInferenceAPIEmbeddings. -
Conversation Setup: A conversational chain is established using Langchain Community's
ConversationalRetrievalChainandChatOpenAIto facilitate user interaction. -
User Interaction: Users can enter questions about the uploaded documents in the text input box. The application then utilizes the conversational chain to generate responses based on the content of the documents.
.png)
.png)
.png)