Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -10,3 +10,55 @@ pinned: false
|
|
| 10 |
---
|
| 11 |
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
|
| 13 |
+
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# Chat With Documents π€π
|
| 17 |
+
|
| 18 |
+
Welcome to the **Chat with Documents** app! π This Streamlit app allows you to upload PDF and PPT files, extract their content, store the extracted text in a vector store, and interact with it using natural language queries! π€π¬
|
| 19 |
+
|
| 20 |
+
Built with **LangChain**, **OpenAI**, **Streamlit**, and **Astra DB**, this project leverages the power of LLMs (Large Language Models) to allow users to chat with their documents like never before. π§
|
| 21 |
+
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
### π **Features**
|
| 25 |
+
|
| 26 |
+
- **PDF & PPT Extraction**: Upload PDF and PowerPoint files to extract text! πβ‘οΈπ
|
| 27 |
+
- **Vector Store**: Automatically stores extracted text in a **Cassandra** vector store. ππ
|
| 28 |
+
- **Ask Anything**: Ask questions about the document and get answers powered by **OpenAI**! π€β
|
| 29 |
+
|
| 30 |
+
---
|
| 31 |
+
|
| 32 |
+
### π οΈ **Tech Stack**
|
| 33 |
+
- **Streamlit**: Frontend framework to interact with the app.
|
| 34 |
+
- **LangChain**: For seamless document processing and querying.
|
| 35 |
+
- **OpenAI**: For LLM integration to provide intelligent responses.
|
| 36 |
+
- **Astra DB**: Database for storing and managing vectorized text data.
|
| 37 |
+
- **Python Libraries**: PyPDF2, python-pptx, cassio, and more.
|
| 38 |
+
|
| 39 |
+
---
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
### π‘ **How It Works**
|
| 44 |
+
|
| 45 |
+
- Upload a **PDF** or **PPT** file using the file uploader. π€
|
| 46 |
+
- The app will extract text from the file using **PyPDF2** (for PDFs) or **python-pptx** (for PPTs). πβ‘οΈπ
|
| 47 |
+
- The extracted text is split into manageable chunks using **LangChain's CharacterTextSplitter**. βοΈ
|
| 48 |
+
- The chunks are then added to **Cassandra** as vectorized data using **OpenAI embeddings**. π
|
| 49 |
+
- Ask any query about the content of your document, and the app will respond using the power of **OpenAI**! π€π¬
|
| 50 |
+
|
| 51 |
+
---
|
| 52 |
+
|
| 53 |
+
### π― **Why Use This?**
|
| 54 |
+
|
| 55 |
+
- **Make documents interactive**: Easily explore the content of your documents by asking questions.
|
| 56 |
+
- **Quick retrieval**: With the text stored in a vector store, you can query the content efficiently.
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
---
|
| 60 |
+
|
| 61 |
+
### β¨ **Enjoy the App!** β¨
|
| 62 |
+
Now, go ahead and chat with your documents! π
|
| 63 |
+
|
| 64 |
+
---
|