Skip to content

NAVANEETHELITE/Document_Q_and_A-Groq_LLM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DOCUMENT Q&A APP

DESCRIPTION

This Q&A application leverages Langchain, Groq, Hugging Face, and Streamlit to provide intelligent document-based question answering. Users can upload PDF files, and the application uses RAG to answer the user queries based on the attachment.

TOOLS AND MODELS

  • LANGCHAIN
  • GROQ : (llama-3.1-70b-versatile LLM)
  • HUGGING-FACE
  • FAISS (VectorDB)
  • STREAMLIT

INSTALLING REQUIREMENTS:

pip install -r requirements.txt

GENERATING API KEYS

Generate API keys for

  • Groq for inferencing hosted LLM models here.
  • Hugging-face embeddings for embedding the documents here.

RUNNING THE APPLICATION

streamlit run app.py

Once the application is running, navigate to localhost to interact with the Document Q&A system.

FUNCTIONALITY

  1. Upload a PDF file: Select a PDF document using the file uploader in the sidebar. The app will split the document into manageable chunks for efficient search and retrieval.
  2. Ask a question: Once the PDF is processed, type your query in the chat input field. The app will generate a response based on the document's content and chat history.

INTERFACE

HOME:

HOME

INPUT:

INPUT

RESPONSE:

RESPONSE

About

Document Q&A application with Langchain and Groq's LLM.

Topics

Resources

Stars

Watchers

Forks

Languages